Skip to content

type: turnstile

Get Cloudflare Turnstile tokens with one call.

Send us the page address and the Turnstile site key. We send back the token the page is waiting for, plus the user agent to use with it.

Cloudflare Turnstile at a glance
type
turnstile
you send
website_url, website_key
optional
action, cdata, proxy, user_agent
you get
Turnstile token
price
$0.000750 per solve, $0.75 per 1,000
not solved?
nothing is charged

What is Cloudflare Turnstile?

Cloudflare Turnstile is the small box that says something like “Verifying you are human” and then shows a green check. You see it on login pages, sign-up forms, contact forms, comment boxes and checkout pages. Cloudflare built it as a friendlier replacement for picture puzzles. Most people never have to click anything. The box quietly checks the browser and then gives the page a token.

That token is the whole point. When you submit the form, the page sends the token along. The website then asks Cloudflare, “Is this token real?” If there is no token, or the token is fake, the form is refused.

This is why Turnstile stops scripts. A script that sends the form without a browser has no token to send. With DraxonCloud you ask for that token through an API, then send it with your form like a normal visitor would.

How to solve Cloudflare Turnstile with DraxonCloud

  1. Open the page with the Turnstile box and copy two things: the page address and the site key.
  2. Send them to our API in one request, with the type turnstile.
  3. Wait for the answer. You can ask us to hold the request open until the token is ready, so you don’t have to keep checking.
  4. Put the token in the form, or send it the way the page does, and submit.

That’s all. You don’t run a browser, and there is nothing to install. It is one HTTP request to start and one to collect the answer.

What you send

  • website_url: the full address of the page that shows the box, like https://example.com/login. Use the real page, not the address of the Cloudflare frame inside it.
  • website_key: the Turnstile site key. This is a public ID that the website gives to its widget. It usually starts with 0x4. You can find it in the page source as data-sitekey="..." on the box, or inside a turnstile.render(...) call in the page’s scripts. In your browser, right-click the page, choose “View page source” and search for sitekey.
  • action (optional): some sites tag their widget with an action name, like login. Look for data-action on the box or action: in the render call. Send it only if the page sets one.
  • cdata (optional): extra data the site attaches to the widget, up to 255 characters. Look for data-cdata or cData: in the render call. Send it exactly as you find it.
  • proxy and user_agent (optional): most Turnstile setups don’t need them.

If you are unsure about action or cData, leave them out. Only send them when the page really sets them.

What you get back

When the task is solved, the answer has two parts:

  • solution.token: the Turnstile token. It is a long string of letters and numbers.
  • solution.user_agent: the browser user agent that goes with the token.

Most sites read the token from a hidden form field named cf-turnstile-response. Put the token in that field and submit the form. Some sites send it in a JSON body or a custom header instead. If so, watch what the page sends in your browser’s network tab and do the same.

When you submit, use the user_agent we returned as your request’s User-Agent header. It keeps your request looking like the same browser that got the token.

One more thing: a token is good for one use and only for a short time. Create the task when you are ready to submit, not minutes before.

A quick example

Start a task:

curl -s -X POST https://draxon.one/api/captcha/v1/tasks \
  -H "Authorization: Bearer $DRAXON_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "turnstile",
    "website_url": "https://example.com/login",
    "website_key": "0x4AAAAAAAxxxxxxxxxxxxxx"
  }'

You get back a task with an id and the status queued. Now wait for the answer in one request:

curl -s -H "Authorization: Bearer $DRAXON_KEY" \
  "https://draxon.one/api/captcha/v1/tasks/<id>?wait=30"

When it’s done, the answer looks like this (some fields left out):

{
  "status": "solved",
  "solution": {
    "token": "1.Etxg0XQnz1f-JBQ6nf...",
    "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X)..."
  }
}

Already using another service?

You don’t have to rewrite anything. Change the address your tool talks to and use your DraxonCloud key.

  • CapSolver and Anti-Captcha style: send createTask with the type TurnstileTask, TurnstileTaskProxyless, AntiTurnstileTask or AntiTurnstileTaskProxyLess. We read the action from action or metadata.action, and the cData from metadata.cdata, cData or data.
  • 2Captcha style: call in.php with method=turnstile, plus sitekey and pageurl. Put the cData in data and the action in action.

The full list of addresses and answer formats is in Compatible APIs.

What it costs

You pay for each solved Turnstile. The current price is shown in the box at the top of this page and on the pricing page. When you start a task, we set the price aside from your balance. If the task is solved, that amount is charged. If it fails or runs out of time, the full amount goes back to you. Each task is charged once at most, even if you ask for the result many times.

Tips that save you time

  • Get the site key from the live page. Sites change keys sometimes. If tokens suddenly stop working, check the page source again.
  • Send action and cData only when they exist. A wrong action is worse than no action.
  • Ask for the token right before you submit. Tokens don’t last, so don’t build up a pile of them.
  • Use the returned user agent for the request that sends the token.
  • Use ?wait=30 instead of checking every second. One request waits for you and answers the moment the token is ready.
  • Send an Idempotency-Key header if your network is shaky. If you send the same request twice, you get the same task back and pay once.

Every field, error code and code sample is in the Cloudflare Turnstile docs.

Questions people ask

Short, plain answers. The docs have every detail.

What do I need to send for Turnstile?

The full address of the page and the site key of the widget. If the page sets an action or cData on the widget, send those too. Everything else is optional.

Where do I put the token?

Most sites read it from a hidden form field called cf-turnstile-response. Put the token there, or send it the same way the page's own code does, and submit the form.

How long does a Turnstile token stay good?

Not long, and it works only once. Ask for a token when you are ready to submit, and use it right away. If the site says it is invalid, make a new task.

Is this the same as the Cloudflare 'Just a moment' page?

No. Turnstile is a small box inside a page, like a form. The full-page check is a different thing and has its own type, cloudflare_challenge.

What happens if a solve fails?

You pay nothing. The price is only held while we work. If the task fails or runs out of time, the money goes back to your balance.

Can I keep using my CapSolver or 2Captcha code?

Yes. Point your tool at our compatible address and use your DraxonCloud key. TurnstileTaskProxyless, AntiTurnstileTaskProxyLess and the 2Captcha turnstile method all work.

Am I allowed to use this on any site?

Only on sites you have the right to automate. Some sites are blocked on our side. Please read the Terms before you start.

Cloudflare Turnstile without a browser of your own

What each way of getting a token asks of you, and the three steps this one takes.

Ways to get a Cloudflare Turnstile token, compared
Approach What you run Where the token comes from What tends to break
Your own browser automation A real browser per solve, with a driver and a display You answer the puzzle yourself, or you babysit it Puzzle layouts change and the script that clicked them stops working
A solver stack of your own Recognition models, a browser, and the plumbing between them Yours, as long as the models keep up with the puzzles Puzzles that need a browser session still need a browser session
DraxonCloud One HTTPS request from anything that can send one The Cloudflare Turnstile token, returned by the API Nothing you host; the response tells you why a task failed

Costs above are what each approach asks of you, not a claim about which is cheaper at every volume. The Cloudflare Turnstile docs list every field and every error code.

  1. 01

    Create a key

    Make an account and create an API key from the dashboard. It starts with drx_ and carries the scopes you pick.

  2. 02

    Send the Cloudflare Turnstile details

    One request with the page address, the site key and the type turnstile. Add rqdata, a proxy or a user agent only if the site needs them.

  3. 03

    Use the token

    The answer carries the token your form expects. Submit the form through the same proxy and user agent you solved with.

Start solving Cloudflare Turnstile today.

Make an account, add funds, create a key. If a captcha is not solved, you pay nothing.