Cloudflare Turnstile Solver
Bypass Cloudflare Turnstile by providing the sitekey and page URL. This is a token task β you submit the task and then poll /getTaskResult until the solution is ready.
Step 1 β Create Task
POST
/createTaskHostapi.captchasonic.com
Content-Typeapplication/json
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "AntiTurnstileTaskProxyLess",
"websiteURL": "https://example.com",
"websiteKey": "0x4AAAAAAABUYP0XeMZjhTSn"
}
}
Response
{
"errorId": 0,
"status": "idle",
"taskId": "antiturnstiletask_b7X9pQ=="
}
Step 2 β Poll for Result
Use the taskId from Step 1. Poll every 3β5 seconds until status is ready.
{
"apiKey": "YOUR_API_KEY",
"taskId": "antiturnstiletask_b7X9pQ=="
}
Response (Ready)
{
"errorId": 0,
"status": "ready",
"solution": {
"token": "0.AbCdEf..."
},
"taskId": "antiturnstiletask_b7X9pQ=="
}
Task Parameters
| Property | Type | Required | Description |
|---|---|---|---|
type | string | β | AntiTurnstileTaskProxyLess or AntiTurnstileTask (with proxy) |
websiteURL | string | β | The page URL where Turnstile is loaded |
websiteKey | string | β | Turnstile sitekey |
proxy | string | No | Proxy URL (only for AntiTurnstileTask) |
metadata | object | No | Additional metadata if required |
API Playground
POST
Log in to auto-fill your API key
Payload
Response
Hit Send to see response
β + Enter
Parameters
Error Codes
terminal