Skip to Content
AnySolver logo
AnySolver
Token

TurnstileTokenProxyLess

Solve a standalone Cloudflare Turnstile widget without a proxy and get the token to submit with your form. With the schema, an example and provider prices.

TurnstileTokenProxyLess solves a Cloudflare Turnstile widget from the provider's own network and returns the token you submit with the form. Turnstile is the widget Cloudflare places in forms, as a checkbox or a short "Verifying..." box.

A Turnstile widget on Cloudflare's dummy login demo

Use this task when the widget is embedded in a page you can already load. If the site rejects tokens that were solved from another address, use TurnstileToken with the proxy you submit the form through.

Which Cloudflare task do I need?

What you seeTask
A widget in a form on a page that loads normallyTurnstileTokenProxyLess (this task)
The same, and the site ties the token to your IPTurnstileToken
"Just a moment..." instead of the pageCloudflareChallengeCookie
The page loads, and cf_clearance is set silently in the backgroundCloudflareJsdCookie
A queue page saying you are in lineCloudflareWaitingRoom

Find the sitekey

Open DevTools and look at the widget container:

<div class="cf-turnstile" data-sitekey="YOUR_SITE_KEY"></div>

data-sitekey is your websiteKey. Production sitekeys start with 0x. Cloudflare's published test sitekeys such as 1x00000000000000000000AA (always passes) and 3x00000000000000000000FF (forces an interactive challenge) start with 1x, 2x or 3x. Cloudflare's dummy login demo uses 1x00000000000000000000AA.

If the page has no cf-turnstile element, it renders the widget from JavaScript and the sitekey is the sitekey option of turnstile.render():

turnstile.render('#container', { sitekey: 'YOUR_SITE_KEY' });

pageAction and data

Both are optional and only apply when the widget declares them. Per Cloudflare's widget configuration, data-action can hold up to 32 characters and data-cdata up to 255, using letters, digits, _ and -:

<div class="cf-turnstile" data-sitekey="YOUR_SITE_KEY" data-action="login" data-cdata="user-cdata"></div>

data-action is pageAction and data-cdata is data. Send them exactly as the page does. A site that verifies the action can reject a token solved for another one.

pageData belongs to Cloudflare challenge pages. A standalone widget does not have it.

Submit the token

Turnstile writes the token into a hidden cf-turnstile-response field of the form, and your request submits it with the rest of the form:

<input type="hidden" name="cf-turnstile-response" value="0.zrSnRHO7h0HwSjSCU8oyzbjEtD8p..." />

Some pages pass a callback to turnstile.render() and never read the field. In that case, call the callback with the token. Solve the token for the request you are about to make, not ahead of time.

Tokens expire and work once

Per Cloudflare's server-side validation guide, a Turnstile token is valid for 300 seconds and can be validated once. Solve it for the request you are about to make, not ahead of time.

Check Provider stats for live success rates and solve times before you pick a provider.

Supported Providers

ProviderPrice per 1,000Routing
CapSolver
$1.20
2Captcha
$1.45
Anti-Captcha
$2.00
CapMonster
$1.30
Nslsolver
$0.80
EZCaptcha
$1.00
SolveCaptcha
$0.80
AnyFlare
$0.10
Solverify
$0.10
PeakFO
$1.20
SCTG
$0.24
VoidCaptcha
$1.20

Request Schema

FieldTypeRequiredDescription
clientKey*
stringYes

Your API key. Create one in a workspace of the AnySolver dashboard.

Example: your-api-key-from-dashboard

task*
objectYes

The task body. Required fields depend on the task type. See Tasks for per-task schemas.

View task properties
settings
objectNo

Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes.

View settings reference

Task Object Properties

The task field accepts an object with the following properties:

FieldTypeRequiredDescription
type*
Yes
websiteURL*
URLYes

Full URL of the page where the CAPTCHA is displayed.

Example: https://2captcha.com/demo/cloudflare-turnstile

websiteKey*
stringYes

The sitekey found in the CAPTCHA HTML element on the target page.

Example: 3x00000000000000000000FF

pageAction
stringNo

Custom action of the widget: the action option of turnstile.render() or the data-action attribute, up to 32 characters (letters, digits, _ and -), such as login. On Cloudflare challenge pages it is the action value of the turnstile.render() call (for example managed).

Example: managed

data
stringNo

Custom payload of the widget: the cData option of turnstile.render() or the data-cdata attribute, up to 255 characters. On Cloudflare challenge pages, copy the cData value of the turnstile.render() call.

Example: 80001aa1affffc21

pageData
stringNo

Value of chlPageData in the turnstile.render() call of a Cloudflare challenge page. Only needed for challenge pages, not for a standalone widget.

Example: 3gAFo2l...55NDFPRFE9

userAgent
stringNo

Browser User-Agent string. Must match the browser used on the target page. Not all providers properly support this parameter. Verify the compatibility with the provider you are using.

Example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "TurnstileTokenProxyLess",
        "websiteURL": "https://2captcha.com/demo/cloudflare-turnstile",
        "websiteKey": "3x00000000000000000000FF"
    }
}

Optional fields are not guaranteed across providers

Required fields are guaranteed across every provider that supports this task. Optional fields may be honored by some providers and silently ignored by others. AnySolver does not document per-provider parameter support, so before relying on an optional field, check that provider's own docs for the task you are using.

Response Schema

FieldTypeRequiredDescription
status*
Yes

Task status: "processing", "ready", or "failed".

Example: ready

errorId*
Yes

0 on success; 1 or 2 on an error. Branch on errorCode: Error IDs explains the two error groups.

Example: 0

taskId
stringNo

Unique identifier returned when the task was created.

Example: 01KFNDF328KAN2AJ3BNHCQYE88

errorCode
No

Machine-readable error code.

Example: CAPTCHA_UNSOLVABLE

errorDescription
stringNo

Human-readable error message with resolution hints.

Example: The captcha could not be solved.

cost
numberNo

Actual cost charged for this task in USD.

Example: 0.002

taskType
No

The type of CAPTCHA task to solve.

Example: ReCaptchaV2TokenProxyLess

provider
No

Provider that handled this task. While processing, the provider currently solving it.

Example: Multibot

solution
objectNo

Solution Object Properties

The solution field contains an object with the following properties:

FieldTypeRequiredDescription
token*
stringYes

The solved CAPTCHA token to submit with your form.

Example: 0.zrSnRHO7h0HwSjSCU8oyzbjEtD8p.d62306d4ee00c77dda697f959ebbd7bd97

raw*
Record<string, unknown>Yes

Raw provider response data for advanced use cases.

userAgent
stringNo

User-Agent string used during solving.