What is hCaptcha HSW?
Every hCaptcha box does two jobs. The first one you can see: the checkbox and, sometimes, a picture puzzle. The second one you can’t see. While the box is open, hCaptcha runs a check inside your browser to make sure a real browser is there. hCaptcha calls this check HSW.
On many sites the check is light. On others, the site runs it in full, and hCaptcha looks much more closely at the browser before it hands out a token. To the person on the page, nothing looks different. To a script, it makes a big difference. Tokens that work fine on most sites can be refused on these.
This type is for those stricter sites. You send the same simple request as for normal hCaptcha, and you get a token made to pass the full check.
How to solve hCaptcha HSW with DraxonCloud
- Copy the page address and the hCaptcha site key.
- If the site sends rqdata, grab a fresh value.
- Send them to our API with the type
hsw_hcaptcha. - Wait for the answer in one request.
- Put the token in the form and submit it.
What you send
website_url: the full address of the page that shows the captcha.website_key: the hCaptcha site key, a public ID that looks like10000000-ffff-ffff-ffff-000000000001. Find it asdata-sitekeyin the page source, or assitekey=in the requests the page sends tohcaptcha.com(developer tools, Network tab).rqdata(optional): extra data some sites add to each challenge. If you seerqdatain the page’s requests tohcaptcha.com, send a fresh value. If not, leave it out.invisible(optional):trueif the widget has no checkbox.proxyanduser_agent(optional): only if you have a reason.
These are exactly the fields of standard hCaptcha. Moving between the two only means changing type.
What you get back
A solved task gives you solution.token, a long string that starts with P1_. If the answer also has solution.user_agent, use that value as your User-Agent when you submit.
Using the token is the same as for any hCaptcha:
- Put it in the hidden
h-captcha-responsefield. - Put it in
g-recaptcha-responsetoo, if the form has that field. - Submit the form. If the site sends the token another way, copy what the page does in the Network tab.
- Use it quickly. It works once and expires soon.
A quick example
curl -s -X POST https://draxon.one/api/captcha/v1/tasks \
-H "Authorization: Bearer $DRAXON_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "hsw_hcaptcha",
"website_url": "https://example.com/login",
"website_key": "10000000-ffff-ffff-ffff-000000000001"
}'
Then wait for the result:
curl -s -H "Authorization: Bearer $DRAXON_KEY" \
"https://draxon.one/api/captcha/v1/tasks/<id>?wait=60"
When it’s ready (some fields left out):
{
"status": "solved",
"solution": {
"token": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
}
How to pick the right hCaptcha type
A simple way to decide:
- Start with standard hCaptcha. It covers most sites.
- If the site is a big platform on hCaptcha’s paid plan, often sending rqdata and caring about your proxy and browser, use hCaptcha Enterprise.
- If standard tokens are refused and the site runs the full browser check, use HSW (this page).
Because the fields are the same, you can test all three on a site by only changing the type.
Already using another service?
- CapSolver and Anti-Captcha style:
createTaskwithHCaptchaHSWTaskorHCaptchaHSWTaskProxyless. - 2Captcha style:
in.phpwithmethod=hcaptcha_hsw,sitekeyandpageurl. Put rqdata indata.
Point your tool at our compatible address and use your DraxonCloud key. Details are on Compatible APIs.
When a token is refused
A refused token usually comes down to one of these:
- Wrong site key or page. Copy both from the exact page you submit on.
- Missing or old rqdata. If the site uses rqdata, send a fresh value for every task.
- A late submit. Tokens don’t last. Send the form right after you get the token.
- Missing fields. Fill
h-captcha-responseand, if present,g-recaptcha-response. - The wrong type. If the site is a large platform on hCaptcha’s paid plan, try hCaptcha Enterprise.
You pay nothing for tasks that fail, so it is cheap to test which type a site needs.
What it costs
You pay for each solved HSW captcha. The live price is in the box at the top of this page and on the pricing page. The amount is set aside when you start the task, charged only when you get a token, and fully returned if the task fails or times out. You can never be charged twice for one task.
Tips that save you time
- Test standard first. If it works on your site, you don’t need HSW.
- Keep the site key and page address exact. A key from a different page of the same site may not work.
- Send fresh rqdata when the site uses it, never an old value.
- Submit right away. HSW tokens are single-use like every hCaptcha token.
- Wait in one request with
?wait=60instead of checking again and again. - Use an
Idempotency-Keywhen you retry after a network error.
The full reference, with Python and Node.js code, is in the hCaptcha HSW docs.