Prices API
What each task type costs now and the next change scheduled: public, with no key or session, and cacheable.
Every operation of the API reference is generated from the contract the API serves, version 0.1.0. Replace YOUR_API_KEY in the samples with your key; each response shows an example in the contract's shape.
List prices
/v1/pricesAuthentication. None: anyone may call it, within a budget per client address where the description says so.
What each task type costs: the price a task created now is charged if it succeeds, and the next change already scheduled. It needs no key or session. Production lists approved prices only; a task type without one is listed with no price in effect, and its tasks are refused until it has one. A task is always charged the price in effect when it was created. Every caller gets the same reply, which caches may keep for up to five minutes; send the ETag of a reply you hold as If-None-Match to get 304 while it is current. Requests have a budget per client address.
Parameters
| Field | What it is |
|---|---|
If-None-Match | The |
Responses
| Status | What it means |
|---|---|
| 200 OK | The prices. PriceList (application/json) |
| 304 Not Modified | The prices are those of the reply whose No body |
| 429 Too Many Requests | Over the budget of this client address ( Problem (application/problem+json) |
| 503 Service Unavailable | The prices cannot be read now ( Problem (application/problem+json) |
| Any other status | An error, as RFC 9457 problem details. Problem (application/problem+json) |
Error codes
The errors reference says what each means, whether a retry helps and what it costs.
Request
curl https://api.zerocaptcha.io/v1/pricesconst response = await fetch("https://api.zerocaptcha.io/v1/prices");console.log(response.status, await response.text());import requests
response = requests.get( "https://api.zerocaptcha.io/v1/prices", timeout=30,)print(response.status_code, response.text)Response
The price list in force. The pricing page shows this reply, read when the site was built.
No body.
rate_limited
{
"type": "https://zerocaptcha.io/docs/reference/errors/#rate_limited",
"title": "Too many requests",
"status": 429,
"instance": "/v1/prices",
"code": "rate_limited",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}service_unavailable
{
"type": "https://zerocaptcha.io/docs/reference/errors/#service_unavailable",
"title": "Service unavailable",
"status": 503,
"instance": "/v1/prices",
"code": "service_unavailable",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}bad_request
{
"type": "https://zerocaptcha.io/docs/reference/errors/#bad_request",
"title": "Bad request",
"status": 400,
"instance": "/v1/prices",
"code": "bad_request",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}Example values in the contract's shape, version 0.1.0.