Where automation meets zero captchas.
Guides
Guides to Cloudflare Turnstile, challenge pages and the errors around them.
How Cloudflare Turnstile works, and how to solve it from your own code on sites you are allowed to automate: sitekeys and tokens, callbacks and retries, error codes, costs, and moving from another solver.
Start here
- New to Cloudflare Turnstile
What Is Cloudflare Turnstile? The CAPTCHA Widget Explained
Cloudflare Turnstile explained: the widget, the token it issues, how a site verifies it, and what that means when you automate a page that shows it.
Cloudflare Turnstile · 4 min read - Your first API call
createTask and getTaskResult: The Captcha API Format Explained
How the createTask, getTaskResult and getBalance format works: request bodies, replies, errorId, polling, and ZeroCaptcha's Cloudflare Turnstile tasks.
API · 3 min read - Switching solvers
Migrate From 2Captcha: Cloudflare Turnstile in.php and createTask
Move Cloudflare Turnstile solving from 2Captcha to ZeroCaptcha: keep in.php and res.php or createTask, change the host and key, and check what differs.
Migration · 4 min read - When a task fails
Captcha API Error Codes: What Each Means and What It Costs
ERROR_CAPTCHA_UNSOLVABLE, ERROR_ZERO_BALANCE, ERROR_KEY_DOES_NOT_EXIST and the rest: what each captcha API error means, whether to retry, and what it costs.
API · 4 min read
All guides
Cloudflare Turnstile
7The widget, its sitekey, modes, action and cData, and what to do with a token.
- Cloudflare Turnstile action and cData: When a Task Needs Them What Turnstile's action and cData parameters do, where to find them in a page, and how to pass them in createTask, in.php or REST so the token is accepted.
- Cloudflare Turnstile Modes: Managed, Non-Interactive, Invisible Cloudflare Turnstile's three widget modes compared: what visitors see in each, how to tell which one a page uses, and why a solving task is the same for all.
- Cloudflare Turnstile Token Expired? Lifetime and Reuse Explained Cloudflare Turnstile tokens last 300 seconds and work once. Why tokens expire, what timeout-or-duplicate means, and how to use each token before it runs out.
- How to Find a Cloudflare Turnstile Sitekey on Any Page Find a Cloudflare Turnstile sitekey in data-sitekey, in turnstile.render() or in the network log, and check you have the right one before you send a task.
- Scraping a Site With Cloudflare Turnstile: An Authorized Pipeline Collect data you are allowed to collect from pages behind Cloudflare Turnstile: when a solver fits, how to add it to a pipeline, and when to ask first.
- Submit a Cloudflare Turnstile Token: Form Fields and Callbacks Where a solved Turnstile token goes: the cf-turnstile-response field, the widget's callback, or a JSON body. With examples for forms, fetch and browsers.
- What Is Cloudflare Turnstile? The CAPTCHA Widget Explained Cloudflare Turnstile explained: the widget, the token it issues, how a site verifies it, and what that means when you automate a page that shows it.
Cloudflare
2Challenge pages and the cf_clearance cookie they set.
- Cloudflare Challenge Page vs Cloudflare Turnstile: Which Is It? The "Just a moment..." page and the Cloudflare Turnstile widget are different features. How each works, what it produces, and how to tell which you face.
- The cf_clearance Cookie Explained: User Agent, IP and Lifetime What Cloudflare's cf_clearance cookie is, what it is tied to, how long it lasts, and how to reuse it correctly with the same user agent through the same proxy.
API
6createTask and getTaskResult, proxies, callbacks, idempotency, limits and error codes.
- Captcha API Error Codes: What Each Means and What It Costs ERROR_CAPTCHA_UNSOLVABLE, ERROR_ZERO_BALANCE, ERROR_KEY_DOES_NOT_EXIST and the rest: what each captcha API error means, whether to retry, and what it costs.
- Captcha Solver Callbacks: pingback and callbackUrl, No Polling Get Cloudflare Turnstile results pushed to your server instead of polling: callbackUrl and pingback, what each call contains, retries, and how to answer.
- Captcha Solver Concurrency, 429s and Retry-After Run many Cloudflare Turnstile tasks at once: how ZeroCaptcha paces calls, what 429, ERROR_RATE_LIMIT and ERROR_NO_SLOT_AVAILABLE mean, and how to back off.
- createTask and getTaskResult: The Captcha API Format Explained How the createTask, getTaskResult and getBalance format works: request bodies, replies, errorId, polling, and ZeroCaptcha's Cloudflare Turnstile tasks.
- Idempotency Keys: Retry Captcha Tasks Without Paying Twice Use an Idempotency-Key header so a retried createTask never makes a second task: how keys work for 24 hours, the two key errors, and finding a lost task.
- Solve Cloudflare Turnstile With a Proxy: TurnstileTask Explained When to solve Turnstile through your own proxy, how to pass it in createTask, in.php or REST, which proxy types work, and what a bad proxy costs you.
Testing
1Cloudflare Turnstile in your own CI, with Cloudflare's test sitekeys.
Security
3Keys, webhook signatures, and automating only what you are allowed to.
- Responsible Captcha Automation: Acceptable Use and Opt-outs When using a captcha solver is appropriate, what ZeroCaptcha's Acceptable Use Policy allows, and how site owners opt out or report abuse, all handled by people.
- Secure Captcha API Keys: IP Allowlists, Rotation, Spend Caps Protect a captcha API key and your balance: scopes, IP allowlists, daily spend caps, rotation with an overlap, instant revocation, and spotting a leaked key.
- Verify a Webhook's HMAC-SHA256 Signature, With Replay Protection Check a ZeroCaptcha callback's HMAC-SHA256 signature in Node, Python or Go: the raw body, a constant-time compare, the timestamp window and secret rotation.
Billing
2What a solve costs, and paying with crypto.
- Captcha Solving Cost: Price per 1,000 and What You Really Pay How captcha solving is priced per 1,000, why the real cost differs from the list price, and how to estimate a month of Cloudflare Turnstile tasks.
- Pay for a Captcha API With Crypto: Top-ups, Receipts, Limits How crypto top-ups work on ZeroCaptcha: invoices in US dollars, the hosted checkout, confirmations, under- and overpayments, receipts, and final top-ups.
Migration
3Moving a working client over from another solver.
- Migrate From 2Captcha: Cloudflare Turnstile in.php and createTask Move Cloudflare Turnstile solving from 2Captcha to ZeroCaptcha: keep in.php and res.php or createTask, change the host and key, and check what differs.
- Migrate From Anti-Captcha: TurnstileTask on ZeroCaptcha Move Cloudflare Turnstile tasks from Anti-Captcha to ZeroCaptcha: the same task types, calls and field names, cData included, and what to check first.
- Migrate From CapSolver: AntiTurnstileTaskProxyLess on ZeroCaptcha Move Cloudflare Turnstile tasks from CapSolver to ZeroCaptcha: AntiTurnstileTaskProxyLess and its metadata fields work as they are. Change host and key.
Try one word, or an error code such as ERROR_ZERO_BALANCE. The docs cover every API field.
ZeroCaptcha You build. We solve.
Read the quickstart next
Create an account, add $10 and run your first task.