Skip to content

type: standard_hcaptcha

hCaptcha tokens, one API call away.

Send the page address and the hCaptcha site key. We send back the response token your form needs, so your script can carry on.

hCaptcha Click on all cells where two lines overlap
Challenge
hCaptcha challenge: click on all cells where two lines overlap
Answer
hCaptcha challenge: click on all cells where two lines overlap, answered
3 clicks, passed hCaptcha checkcaptcha
hCaptcha Drag the matching shape into place
Challenge
hCaptcha challenge: drag the matching shape into place
Answer
hCaptcha challenge: drag the matching shape into place, answered
piece placed, passed hCaptcha checkcaptcha

What is hCaptcha?

hCaptcha is the box with a checkbox that says “I am human”. When it isn’t sure about you, it opens a puzzle. You might be asked to click every picture with a bus, drag a piece into place, or pick the odd one out. When you pass, hCaptcha gives the page a response token.

You’ll find hCaptcha on sign-up pages, logins, ticket shops, game sites, forums, password resets and many other forms. Site owners like it because it blocks bots that try to make lots of accounts or send spam.

For a script, the hard part is the token. The website checks it with hCaptcha before it accepts the form. Without a fresh, real token, the form fails. DraxonCloud gets you that token through a simple API, so your script can send the form like anyone else.

How to solve hCaptcha with DraxonCloud

  1. Find the page with the hCaptcha box and copy its address.
  2. Copy the site key from the page (we show you where below).
  3. Send both to our API with the type standard_hcaptcha.
  4. Wait for the answer. One request can wait for you until it’s ready.
  5. Put the token in the form and submit it.

There is no browser to run and nothing to install. Any language that can send HTTP requests works.

What you send

  • website_url: the full address of the page that shows the captcha, like https://example.com/register.
  • website_key: the hCaptcha site key. It is a public ID the site uses for its widget, and it looks like 10000000-ffff-ffff-ffff-000000000001. To find it, right-click the page, choose “View page source” and search for data-sitekey. If the widget is added by a script, open the developer tools, go to the Network tab, and look at the requests to hcaptcha.com. The site key is in their addresses as sitekey=....
  • rqdata (optional): extra data some sites attach to the challenge. Most sites don’t use it. If a site does, you’ll see an rqdata value in the requests the page sends to hcaptcha.com.
  • invisible (optional): set it to true if the site uses hCaptcha without a checkbox, where the check runs when you press the form’s button. You can often spot this as data-size="invisible" in the page source.
  • proxy and user_agent (optional): leave them out unless you have a reason to use them.

What you get back

A solved task gives you solution.token. It is a long string that usually starts with P1_. Some answers also include a solution.user_agent. If you get one, use it as your User-Agent when you submit the form.

To use the token:

  • Put it in the hidden field called h-captcha-response.
  • Many sites also read g-recaptcha-response, because hCaptcha fills both. Put the same token there too.
  • Submit the form. If the site sends the token in its own way (for example in a JSON body), watch your browser’s Network tab once and copy what the page does.

Tokens work once and don’t last long, so ask for one when you are ready to submit.

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": "standard_hcaptcha",
    "website_url": "https://example.com/register",
    "website_key": "10000000-ffff-ffff-ffff-000000000001"
  }'

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 ready (some fields left out):

{
  "status": "solved",
  "solution": {
    "token": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
  }
}

Which hCaptcha type do I need?

We offer three hCaptcha types. They take the same fields, so switching is easy.

  • standard_hcaptcha (this page): the right choice for most sites. Start here.
  • enterprise_hcaptcha: for sites on hCaptcha Enterprise, the paid plan big companies use. These sites often send rqdata.
  • hsw_hcaptcha: for sites that run hCaptcha’s full browser check (called HSW).

If tokens from the standard type keep getting refused, try the other two.

Already using another service?

Keep your code and only change the address and key.

  • CapSolver and Anti-Captcha style: createTask with HCaptchaTask, HCaptchaTaskProxyless or HCaptchaTurboTask.
  • 2Captcha style: in.php with method=hcaptcha, sitekey and pageurl. Put rqdata in data.

See Compatible APIs for the addresses and answer formats.

What it costs

You pay for each solved hCaptcha. The current price is 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. You are only charged if you get a token. If the task fails or runs out of time, all of it comes back to you, and no task is ever charged twice.

Tips that save you time

  • Copy the site key from the page you submit on. One site can use different keys on different pages.
  • Fill both token fields. h-captcha-response and g-recaptcha-response with the same token covers most forms.
  • Ask for the token at the last moment. It works once and expires soon.
  • Don’t guess rqdata. Send it only if the page really uses it.
  • Use ?wait=30 so one request waits for the answer.
  • Add an Idempotency-Key header when you retry after a network error, so you never pay twice.

Code in Python and Node.js, every field and every error are in the hCaptcha docs.

hCaptcha (standard) at a glance
type
standard_hcaptcha
you send
website_url, website_key
optional
rqdata, proxy, user_agent
you get
hCaptcha response token (P1_…)
price
$0.002000 per solve, $2.00 per 1,000
not solved?
nothing is charged

Questions people ask

Short, plain answers. The docs have every detail.

What do I need to send?

The full address of the page and the hCaptcha site key. If the site uses rqdata, send that as well. Everything else is optional.

Where do I put the token?

In the form field hCaptcha fills in, called h-captcha-response. Many sites also read g-recaptcha-response, so fill both with the same token and submit the form.

How do I know if a site uses hCaptcha Enterprise instead?

Enterprise sites often send rqdata or use extra settings on the widget. If standard tokens keep getting refused on a big site, try the enterprise_hcaptcha type.

Do I need a proxy?

No. A proxy is optional for this type. Send one only if you want the solve to come from a certain network.

What happens if a solve fails?

You pay nothing. The price is only held while the task runs. If it fails or times out, the full amount goes back to your balance.

Can I keep my 2Captcha or CapSolver code?

Yes. Point your tool at our compatible address with your DraxonCloud key. HCaptchaTask, HCaptchaTaskProxyless and the 2Captcha hcaptcha 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.

hCaptcha (standard) 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 hCaptcha (standard) 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 hCaptcha (standard) 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 hCaptcha (standard) 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 hCaptcha (standard) details

    One request with the page address, the site key and the type standard_hcaptcha. 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 hCaptcha (standard) today.

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