One API. Zero captcha headaches.
API reference
createTask, getTaskResult and a REST API, with the same tasks and the same errors.
Every ZeroCaptcha API operation your code can call: parameters, bodies, responses and error codes, with curl, Node and Python samples.
This reference is generated from the OpenAPI contract the API serves, version 0.1.0, so it always matches what the API does. New to the API? Start with the quickstart.
Basics
Base URL
https://api.zerocaptcha.io
REST and the createTask format speak JSON; the 2Captcha format takes a query or a form. Every format below is served on this one host.
Authentication
- REST v1
Authorization: Bearer YOUR_API_KEY- createTask format
clientKeyin the JSON body- 2Captcha format
keyin the query string, or in the body of a POST toin.php
Keys are made in the dashboard; see API keys.
Errors
A REST failure is a problem document (RFC 9457) with a stable code; the compatible format answers HTTP 200 with errorId 1 and an errorCode. Every code is in the errors reference.
Request IDs
Every reply carries its request's ID in X-Request-Id. Quote it when you write to us.
The contract
The whole contract is at /openapi.json on this site (download it), and at https://api.zerocaptcha.io/openapi.json, for code generators and API tools.
Three formats, one host
- REST v1Resource URLs, bearer keys, an Idempotency-Key header for safe retries, and problem details for every error. Use it for new code.POST /v1/tasksGET /v1/tasks/{id}
- createTask formatcreateTask, getTaskResult and getBalance, the shape existing CAPTCHA-solving clients already speak. Change the base URL and the key, and they work unchanged.POST /createTaskPOST /getTaskResult
- 2Captcha formatin.php and res.php, for clients written for 2Captcha's API v1.GET /in.phpGET /res.php
ZeroCaptcha is not affiliated with 2Captcha, CapSolver or Anti-Captcha; their names appear only to say which API formats it speaks.
Operations
The 29 operations of the reference, in 12 groups. Each opens at its section, with its parameters, body, responses and samples.
Tasks
6 operationsCreate Turnstile tasks, read their results, and follow them live.
API key
Compatible format
8 operationsThe createTask format other providers use, so existing clients work unchanged.
clientKey in the body
- POST Create a task (compatible) /createTask
- POST Report how a token did (CapSolver) /feedbackTask
- POST Get the balance (compatible) /getBalance
- POST Get a task's result (compatible) /getTaskResult
- POST Report a token that worked (2Captcha) /reportCorrect
- POST Report a token that worked (Anti-Captcha) /reportCorrectRecaptcha
- POST Report a refused token (2Captcha) /reportIncorrect
- POST Report a refused token (Anti-Captcha) /reportIncorrectRecaptcha
2Captcha format
3 operations2Captcha's in.php and res.php for Turnstile, so a 2Captcha client works after changing only its base URL and key.
key in the querykey in the body or query
Balance
1 operationThe prepaid balance and what is held for tasks in progress.
API key
Prices
1 operationWhat each task type costs now and the next change scheduled: public, with no key or session, and cacheable.
No key
Status feed
1 operationThe platform's last 24 hours: task success rate, median solve time and API availability.
No key
Site-owner opt-out
1 operationSite owners asking for their domain to be excluded: public, with no key or session.
No key
Abuse reports
1 operationReporting a site ZeroCaptcha was used against: public, with no key or session.
No key
Support messages
2 operationsMessages to support: from the dashboard with a session, or from the public contact form with none.
No keyDashboard session
Demo pages
2 operationsThe public demo and CAPTCHA test pages: checking a token from one of their Cloudflare Turnstile widgets with Cloudflare's siteverify, and whether a request carried a Cloudflare clearance.
No key
Health
2 operationsLiveness and readiness probes for load balancers and orchestrators.
No key
The contract
1 operationDocuments about the API itself, such as this contract.
No key
The dashboard's endpoints
The contract also describes the endpoints the dashboard itself calls, with a signed-in session and its CSRF token: account, session, keys, billing, usage, team, callbacks. They are how the dashboard signs you in and manages your keys and billing, not part of the API your code calls, so this reference leaves them out; an API key is refused by them.