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.

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 see | Task |
|---|---|
| A widget in a form on a page that loads normally | TurnstileTokenProxyLess (this task) |
| The same, and the site ties the token to your IP | TurnstileToken |
| "Just a moment..." instead of the page | CloudflareChallengeCookie |
The page loads, and cf_clearance is set silently in the background | CloudflareJsdCookie |
| A queue page saying you are in line | CloudflareWaitingRoom |
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
| Provider | Price per 1,000 | Routing |
|---|---|---|
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
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | 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:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
websiteKey* | string | Yes | The sitekey found in the CAPTCHA HTML element on the target page. Example: |
pageAction | string | No | 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: |
data | string | No | 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: |
pageData | string | No | Value of chlPageData in the turnstile.render() call of a Cloudflare challenge page. Only needed for challenge pages, not for a standalone widget. Example: |
userAgent | string | No | 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: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "TurnstileTokenProxyLess",
"websiteURL": "https://2captcha.com/demo/cloudflare-turnstile",
"websiteKey": "3x00000000000000000000FF"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
token* | string | Yes | The solved CAPTCHA token to submit with your form. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |
userAgent | string | No | User-Agent string used during solving. |