Cloudflare Turnstile solver API
API health
- 24h health
- Normal
- Healthy / normal
- Available
Last 24 hours
Last 30 days
EverySolve's Cloudflare Turnstile API returns a token for your challenge workflow.Cloudflare Turnstile is an embedded widget configured with a Turnstile site key. It may be managed, non-interactive, or invisible. It returns a token for cf-turnstile-response. A Cloudflare challenge page instead blocks navigation and returns clearance cookie data.
Send POST https://api.everyinfra.com/api/v1/captcha with type set to turnstile. Put the parameters in the request body, at the same level as type. $1.53 per 1,000 successful solutions ($0.001528 per successful solve). Failed calls and empty results are not charged.
AI prompt
#Help me write a script that calls the EveryInfra "Cloudflare Turnstile" API.
API contract:
- Request: POST https://api.everyinfra.com/api/v1/captcha with the header Authorization: Bearer <API Key>. Read the key from the EVERYINFRA_API_KEY environment variable; do not put it in the code.
- In the request body, set type to turnstile and put the parameters next to it at the same level.
- Required parameters:
- website_url: The exact page where this challenge appears, including the relevant path rather than only the site home page.
- website_key: The public site or widget key copied from this exact target integration; it is not a secret key.
- Optional parameters:
- action: The action name used by this widget instance; copy it from the target integration instead of inventing a generic action.
- cdata: The widget's custom data value from the same challenge instance, when the page supplies one.
- page_data: The serialized page data attached to this widget instance when the target exposes it.
- Example request body:
{
"type": "turnstile",
"website_url": "https://demo.turnstile.workers.dev/",
"website_key": "1x00000000000000000000AA"
}
- Billing: $1.53 per 1,000 successful solutions ($0.001528 per successful solve). Failed calls and empty results are not charged.
- On 422, fix the parameters using the suggestions and allowed values in the error. On 429 or 503, wait for Retry-After and try again.
Before writing code, ask me how many items I need to process and what format to save the results in, then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
type | body | string | Yes | turnstile | CAPTCHA type, fixed value. |
website_url | body | string | Yes | - | The exact page where this challenge appears, including the relevant path rather than only the site home page. |
website_key | body | string | Yes | - | The public site or widget key copied from this exact target integration; it is not a secret key. |
action | body | string | No | - | The action name used by this widget instance; copy it from the target integration instead of inventing a generic action. |
cdata | body | string | No | - | The widget's custom data value from the same challenge instance, when the page supplies one. |
page_data | body | string | No | - | The serialized page data attached to this widget instance when the target exposes it. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/captcha' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "turnstile",
"website_url": "https://demo.turnstile.workers.dev/",
"website_key": "1x00000000000000000000AA"
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "type": "turnstile", "token": "XXXX.DUMMY.TOKEN.XXXX", "solution": { "token": "XXXX.DUMMY.TOKEN.XXXX" }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Where the Cloudflare Turnstile parameters come from
#Copy website_key from data-sitekey or turnstile.render; action, cdata, and page_data must come from the same widget instance when present.
Code to find these values on the page
<div class="cf-turnstile" data-sitekey="<YOUR-SITE-KEY>" data-theme="light" data-size="normal" data-callback="onSuccess"></div>
const widgetId = turnstile.render("#turnstile-container", { sitekey: "<YOUR-SITE-KEY>", callback: function (token) { … }, });
<input type="hidden" name="cf-turnstile-response" value="TOKEN_VALUE" />How to recognize Cloudflare Turnstile
#Cloudflare Turnstile is an embedded widget configured with a Turnstile site key. It may be managed, non-interactive, or invisible.
What makes Cloudflare Turnstile different
It returns a token for cf-turnstile-response. A Cloudflare challenge page instead blocks navigation and returns clearance cookie data.
How to use the Cloudflare Turnstile API
#The API returns a token. Place it in the hidden cf-turnstile-response field. The token expires after 300 seconds and can be used only once.
- 01Read GET /api/v1/captcha/types and select the
turnstileentry. - 02Send
type: "turnstile"and the required parameters to POST /api/v1/captcha. - 03Read a token from
token. - 04Place the returned token in the hidden
cf-turnstile-responsefield and submit it within its 300-second validity period. The token can be used only once.
Billing and availability EverySolve charges only when a solution is delivered successfully. An unsuccessful attempt is not charged, and any held amount goes back to your balance automatically. Read available and the price fields from GET /api/v1/captcha/types at request time rather than treating them as static page content.
Cloudflare Turnstile integration questions
#How can I identify Cloudflare Turnstile before choosing a type?
Cloudflare Turnstile is an embedded widget configured with a Turnstile site key. It may be managed, non-interactive, or invisible. Use turnstile only after those signals match the target challenge.
Which target-page values belong in Cloudflare Turnstile requests?
Copy website_key from data-sitekey or turnstile.render; action, cdata, and page_data must come from the same widget instance when present. Provide website_url and website_key. Optional parameters are action, cdata, and page_data.
What does Cloudflare Turnstile return, and what is easy to confuse it with?
The Cloudflare Turnstile API returns a token in token. Its solution format is token. It returns a token for cf-turnstile-response. A Cloudflare challenge page instead blocks navigation and returns clearance cookie data.
Which external source explains the Cloudflare Turnstile integration?
Cloudflare documents Turnstile rendering, widget modes, callbacks, and token handling. [Open the Cloudflare Turnstile reference](https://developers.cloudflare.com/turnstile/). EverySolve-specific fields and live availability still come from the type catalog.
Reference for Cloudflare Turnstile
#Related CAPTCHA types
#- Cloudflare challenge page
cloudflare_challenge$1.81 per 1,000 successful solutions - CaptchaFox
captchafox$1.53 per 1,000 successful solutions - Friendly Captcha
friendly_captcha$2.22 per 1,000 successful solutions - Arkose Labs FunCaptcha
funcaptcha$1.67 per 1,000 successful solutions - hCaptcha
hcaptcha$4.58 per 1,000 successful solutions - MTCaptcha
mtcaptcha$2.22 per 1,000 successful solutions
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.