CaptchaNo
[ INTEGRATION ]

Captcha solver for
cURL

Resolve the challenge inside the run instead of failing the job. A working Shell example, and the three things that decide whether your token is accepted.

cURL · Shell
curl -X POST "https://api.captchano.com/v1/solve?wait=60" \
  -H "Authorization: Bearer cn-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "type": "recaptcha_v2",
        "sitekey": "6LcABC...",
        "url": "https://example.com/login",
        "proxy": "http://user:pass@host:port"
      }'

# 200 OK
# { "id": "slv_…", "status": "ready",
#   "solution": { "token": "03AGdBq25S…" },
#   "cost": "0.00450", "solveTime": 18.4 }

What decides whether the token is accepted

  1. Pass your proxy through. The token should be minted behind the same exit IP that submits it. For session-graded systems this is mandatory, not an optimisation.
  2. Match the user agent. Turnstile and several anti-bot systems bind the token to a user agent. We return the one used so you can replay it exactly.
  3. Request late. Tokens expire in roughly 120 seconds. Ask for one when you are ready to submit.

Blocking or polling

The example uses ?wait=60, so the call returns the finished solve and your cURL step stays linear. If you would rather not hold a connection, drop the parameter, keep the returned id, and poll GET /v1/task/{id} every five seconds. A token you have paid for stays retrievable for ten minutes, so a dropped connection does not cost you the solve.

Cost

$0.0045 per successful reCAPTCHA v2 solve, with failed solves never billed. See pricing for every challenge type, or the API reference for the full request shape.

[ HOW IT FITS ]

How the solve fits into cURL

The API is plain HTTPS and JSON, so cURL is the quickest way to see a solve end to end before you write any code.

  1. 01
    Create a key

    Create an API key in the dashboard. It starts with cn-.

  2. 02
    Send a solve

    POST JSON with type, sitekey and url to /v1/solve?wait=60 with an Authorization: Bearer header.

  3. 03
    Read the response

    status, solution.token, cost and solveTime come back in one JSON object.

  4. 04
    Poll if you prefer

    Drop ?wait and poll GET /v1/task/{id} every few seconds instead.

Getting the token into the page

You copy the token from the JSON response into the form field or request your own client sends.

[ PITFALLS ]

Where integrations usually go wrong

Missing content type

Send Content-Type: application/json, or the body will not parse.

Quoting in the shell

Wrap the JSON in single quotes so the shell does not expand anything inside it.

[ FAQ ]

cURL captcha FAQ

Do I need an SDK?

No. CaptchaNo is a plain REST API. Any HTTP client in any language works, and cURL is the easiest way to try it.

How do I check my balance?

Call GET /v1/balance with the same Authorization header. The dashboard also shows balance, usage and every solve.

What does a failed solve return?

A status of failed with an error code. Failed solves are not billed, so you can safely retry.

How long can I wait for a result?

The wait parameter blocks up to 120 seconds. Most solves return much sooner; use polling if your client cannot hold a connection that long.

[ READ NEXT ]

Guides that help

Ready to build?

Start with a free 7-day trial of the Hobby plan, then pay per successful solve or keep the plan as your traffic grows. Cancel before the trial ends and you pay nothing.

See our plans
Are you an AI agent? See setup options →