Skip to content

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
clientKey in the JSON body
2Captcha format
key in the query string, or in the body of a POST to in.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.

Download openapi.jsonThe contract operation

Three formats, one host

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 operations

Create Turnstile tasks, read their results, and follow them live.

API key

Compatible format

8 operations

The createTask format other providers use, so existing clients work unchanged.

clientKey in the body

2Captcha format

3 operations

2Captcha'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 operation

The prepaid balance and what is held for tasks in progress.

API key

Prices

1 operation

What each task type costs now and the next change scheduled: public, with no key or session, and cacheable.

No key

Status feed

1 operation

The platform's last 24 hours: task success rate, median solve time and API availability.

No key

Site owners asking for their domain to be excluded: public, with no key or session.

No key

Abuse reports

1 operation

Reporting a site ZeroCaptcha was used against: public, with no key or session.

No key

Support messages

2 operations

Messages to support: from the dashboard with a session, or from the public contact form with none.

No keyDashboard session

Demo pages

2 operations

The 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 operations

Liveness and readiness probes for load balancers and orchestrators.

No key

The contract

1 operation

Documents 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.