CaptchaNo
Back to blog
deep-dives01 Dec 2026·12 min read

How Do Captcha Solvers Work? Tokens, Text and Cookies

DDishant Singh
deep-dives

How captcha solvers work: what they return for image, reCAPTCHA, Turnstile and DataDome challenges, what the site's server checks, and why solves fail.

A captcha solver takes the details of a challenge your automation has hit, works out the answer somewhere else, and hands back whatever the page needs to continue: a short text string for an image captcha, a token for reCAPTCHA or Turnstile, or a cookie for systems like DataDome. The answer only counts once the site's own server checks it, and that server-side check decides whether the solve works or fails. We run the CaptchaNo captcha solver API, so this guide explains the mechanics from the side that builds one, and shows what the verifying server actually sees.

What we ran for this article: on 1 December 2026 we called Google's and Cloudflare's siteverify endpoints with their published test keys and recorded the raw responses (shown below). We did not run paid solves, so there are no solve times or success rates here.

How do captcha solvers work, in one paragraph?

Every solver follows the same loop: detect the challenge, send its parameters to a solving service, wait for the answer, then put that answer where the page expects it. What differs is the middle step (how the answer is produced) and the shape of what comes back.

  1. Detect. Your script finds the widget and reads its identifiers: the sitekey, the page URL, and sometimes an action name, a challenge URL or the image itself.
  2. Send. Those values go to the solver's API as a task, usually with your proxy and user agent so the answer is produced for the same session that will use it.
  3. Solve. The service produces the answer with recognition models, human workers, a real browser session, or a mix.
  4. Return. You get back text, a token, a cookie or a set of fields, depending on the captcha type.
  5. Submit. Your code places the answer in the form field, request body or cookie jar, and the site's server verifies it.

Most ranking explanations stop at step 4. Step 5 is where solves are won or lost, so most of this guide is about it.

What does a captcha solver actually return?

The return value depends on what the captcha checks: image captchas want the text, token captchas want a signed token, and session-based systems want a cookie. Matching the right output to the right challenge is the first decision any integration makes.

Challenge typeWhat the solver returnsWhere it goesWho checks it
Image or text captchaA text stringThe form's answer fieldThe site, against the answer it stored
reCAPTCHA v2 (checkbox or invisible)A tokeng-recaptcha-response, then the callbackGoogle siteverify, called by the site
reCAPTCHA v3 (classic)A token scored for an actionWhatever request the page sends it withGoogle siteverify, then the site's score threshold
Cloudflare TurnstileA tokencf-turnstile-responseCloudflare siteverify, called by the site
DataDomeA datadome cookieYour session's cookie jarDataDome, on every later request
GeeTest v3 / v4The validate fields (for example lot_number, pass_token)The site's validation requestGeeTest, via the site's backend

If you are not sure which one a page uses, our captcha detector tool reads the script tags and widget attributes and tells you the type and sitekey.

Text and image captchas: recognition

For a picture of distorted characters or a grid of images, the solver's job is recognition: read the characters, or pick the tiles that match the prompt. The answer is plain text or a list of tile positions.

Recognition is done by models trained on labelled examples (OCR for text, image classifiers for grids), by human workers looking at the same picture, or by a model first with a human fallback for low-confidence cases. The site checks the answer against what it generated, so there is no hidden token to get wrong. The weak points are elsewhere: case sensitivity, an answer typed into the wrong field, or a captcha image that changed because your scraper fetched it twice. We compared local OCR with an API in solving image captchas in Python, including where open-source OCR stops being enough.

Token captchas: reCAPTCHA and Turnstile

For reCAPTCHA and Turnstile, nobody sends your script a puzzle to answer. The widget produces a token after its own checks pass, and the solver's job is to produce a valid token for your sitekey and page URL.

That is why a token solver needs the sitekey and the exact page URL rather than a screenshot. The token is minted for that widget on that hostname. It then travels to the site's server, which forwards it to Google or Cloudflare and gets a verdict back. Your browser never learns the verdict; only the site does.

reCAPTCHA v3 adds one more layer: the token carries a score and an action name, and the site compares both with its own expectations. The score itself is only visible to the site, which is covered in more depth in our guide to what reCAPTCHA v3 scores mean.

What the verifying server checks (we ran the calls)

The site's server sends the token and its secret key to the provider and gets JSON back with a success flag, a timestamp, the hostname the challenge ran on and any error codes. A solver's answer is only as good as that response.

Google's reCAPTCHA verification documentation states that each token is valid for two minutes and can be verified only once. Cloudflare's Turnstile server-side validation guide gives Turnstile tokens 300 seconds, caps them at 2,048 characters, treats them as single use, and returns timeout-or-duplicate for a replay. Turnstile responses can also include the action and cdata values the widget was rendered with.

Google reCAPTCHA verify documentation showing the two-minute single-use token rule and the siteverify response fields success, challenge_ts, hostname and error-codes

Google's verify docs, read 1 December 2026: two-minute, single-use tokens, and the fields the site gets back.

Both providers publish test keys, so you can watch the server side react without solving anything. Cloudflare lists sitekeys that always pass or fail and secret keys that always pass, always fail, or answer as if the token was already spent. With a test sitekey the widget issues the dummy token XXXX.DUMMY.TOKEN.XXXX.

Cloudflare Turnstile testing documentation table of test sitekeys and test secret keys with always passes, always fails and token already spent behaviour

Cloudflare's Turnstile test keys, read 1 December 2026.

We sent that dummy token to Cloudflare's siteverify with each test secret, and sent placeholder tokens to Google's siteverify, using plain curl on 1 December 2026 at 18:48 UTC. These are the raw responses:

Raw JSON responses from Cloudflare Turnstile and Google reCAPTCHA siteverify called with published test keys: success, invalid-input-response and timeout-or-duplicate

Five siteverify calls with published test keys and their raw responses (our run, 1 December 2026).

Three things are worth taking from those five calls:

  • The hostname comes back with every success. Cloudflare returned example.com and Google returned testkey.google.com. A site that compares this value with its own domain rejects any token minted for a different page, so the URL you send a solver must be the page the widget really runs on.
  • A spent token looks the same as an expired one. Cloudflare's "already spent" key produced timeout-or-duplicate, the same code Google uses for "too old or already used". If your code verifies a token once to check it, then submits it, the real submission fails.
  • Error codes are blunt. Google's response to a made-up secret and token said only invalid-input-response. Siteverify tells the site that something is wrong, not which field, which is why debugging a rejected solve has to start with your own inputs.

A longer run of these calls from November, including Google's test secret accepting a request with no token at all, is in our explainer of what a captcha test is and how verification works.

Test keys pass everything by design, so they prove the response format and the error codes, not that any particular solve is accepted. For testing your own forms they are the right tool, as our guide to testing reCAPTCHA and Turnstile with test keys explains.

Some protection systems do not use a form token at all. DataDome grades the whole session and, when it challenges, expects a datadome cookie on every later request.

A solver for this kind of system has to work through the challenge with the same IP address and user agent your scraper will use, because the cookie is tied to them. That is why proxy pass-through is mandatory here, and why a cookie minted from another IP fails on first use. The background is in what DataDome is and why it blocks scrapers.

Who produces the answer: models, people or browsers?

Solving services use three broad methods, and many mix them. The method matters less than whether the answer passes the site's server check.

  • Recognition models. OCR and image classifiers for text and image grids. They work well on familiar formats and need retraining when a captcha changes its style.
  • Human workers. People solve the same challenge through a work interface. This copes with unusual images but adds queueing time.
  • Browser sessions. For token and cookie challenges, a real browser loads the widget for your sitekey and page, with your proxy and user agent where they are sent, and the resulting token or cookie is returned.

Several ranking pages quote accuracy percentages and price ranges for these methods without citing any measurement. We have left those out: the only accuracy number that matters is the share of your own submissions the target accepts, measured on your own traffic.

Why a "solved" captcha still fails

Almost every failure is a mismatch between the session that produced the answer and the one that spends it. The provider's check is strict and the site may add its own on top.

  • Wrong page URL or sitekey. The hostname in the verdict does not match the site, or the token belongs to a different widget.
  • Too slow. reCAPTCHA tokens older than two minutes and Turnstile tokens older than 300 seconds come back as timeout-or-duplicate.
  • Used twice. Retrying a failed form with the same token, or verifying it yourself first, burns it.
  • Wrong action or low score. On v3, an action that does not match the page's own string, or a score below the site's threshold, gets rejected even though siteverify said success: true.
  • Different IP or user agent. Sites that compare the solving session with the submitting session, and cookie-based systems like DataDome, reject answers produced elsewhere.
  • Not delivered the way the page expects. The token is in the textarea but the page's callback never ran, so the form never sent it.

We go through these in diagnostic order in why valid captcha tokens get rejected.

What a solver cannot fix

A solver answers challenges that a site has issued; it does not change how the site scores your traffic. If the block is not a captcha, there is nothing to solve.

Cloudflare 403 and 1020 pages, IP bans and rate limits are access decisions, not challenges. A Google "unusual traffic" page wants a different network as much as a solved checkbox. Score-based reCAPTCHA Enterprise keys and hCaptcha are outside what CaptchaNo supports, and we say so on the relevant pages instead of returning tokens that would fail. For your own site's staging environment, test keys or a server-side switch are better than any solver; we compare those options in the legitimate ways to get past a captcha.

How CaptchaNo does it

CaptchaNo solves every supported type on our own solving infrastructure and returns the output that type needs: a token, a cookie, text or validate fields. One request does it.

  • A single blocking call: POST https://api.captchano.com/v1/solve?wait=60 with the type, page URL and sitekey, plus optional action, minimum score, proxy and user agent.
  • Proxy and user-agent pass-through, so the answer is minted for the session that will submit it.
  • Supported today: reCAPTCHA v2, classic v3 and Enterprise checkbox widgets, Cloudflare Turnstile, DataDome, GeeTest v3 and v4, Yandex SmartCaptcha and image captchas.
  • Only successful solves are billed. Failed solves cost nothing, and credit never expires.
  • Copy-paste helpers for Python, Node.js, PHP and cURL in the docs, an open-source MCP server for agents, and per-key usage in the dashboard.
  • Questions go to support@captchano.com, and replies come from the engineers who run the service.

Current rates are on the pricing page. If you are choosing between services, our ranking of captcha solving services covers how we judge them and how to test any of them on your own targets.

Frequently Asked Questions

Do captcha solvers use humans or AI?

Both, depending on the service and the captcha type. Text and image captchas are usually read by recognition models, sometimes with human workers as a fallback for hard cases. Token and cookie challenges are handled by running the widget in a real browser session for your sitekey and page. Whatever method is used, the site's server decides whether the answer is accepted.

How long is a solved captcha token valid?

Google says a reCAPTCHA token is valid for two minutes and can be verified only once. Cloudflare gives Turnstile tokens 300 seconds and treats them as single use. In practice you should request the token as late as possible, right before the form submission or request that carries it, and never verify it yourself before the site does.

Can a captcha solver handle reCAPTCHA v3?

Yes, for classic v3 keys. The solver returns a token scored for the action you specify, and the site compares that action and score with its own threshold. Score-based reCAPTCHA Enterprise keys are a separate product with their own assessment flow, and CaptchaNo does not support them, so check which script the page loads before you start.

Why does a site reject a token the solver marked as solved?

Because the solver cannot see the site's own checks. The usual causes are a page URL that does not match the real hostname, a token that expired or was already used, a v3 action or score the site does not accept, or a token produced from a different IP address or user agent than the one submitting it.

Is it allowed to use a captcha solver?

It depends on whose site it is, what its terms say and what the law where you operate allows. Solvers are routinely used for QA on your own forms, accessibility work, and automation that a site permits. Using one to break a site's terms, create fake accounts or commit fraud is not acceptable, and our acceptable-use policy forbids it.

Try it on your own target

The fastest way to understand a solver is to watch one answer a challenge you deal with every day. Create a CaptchaNo account, send one request with your real page URL, sitekey and proxy, and check that the site accepts the result. Only successful solves are billed, and the request format is on the API page.