Solve Turnstile Task

Python ExamplesUpdated 12/25/2025

Use this task type to solve Cloudflare Turnstile challenges if your task does not have action and cdata please remove these lines.

Create a Turnstile task

turnstile_task_id = api.solve_turnstile(
  site_url="https://me.miniclip.com/login",
  site_key="0x4AAAAAAABFlgIgsFUIYITx",
  action="submitAction",     # optional if website does not require action remove this line
  cdata="example_cdata"      # optional if website does not require cdata remove this line
)

print(f"Turnstile Task ID: {turnstile_task_id}")

Parameters

  • site_url — Full URL where the Turnstile challenge is loaded
  • site_key — Cloudflare Turnstile site key
  • action — Turnstile action value (optional)
  • cdata — Custom data value (optional)

Get Turnstile task result

result = api.get_task_result("fee39b73-bacb-4180-b31a-945f517204b3")

print(f"Task Result: {result}")

Example response

{
  "errorId": 0,
  "status": "completed",
  "solution": {
    "value": "dce6748725944f29b43b64a5eaad3a"
  }
}