hCaptcha HSW
Solve hCaptcha on sites that run its full HSW browser check, with the hsw_hcaptcha type. Fields, code, compatible names and fixes.
Use the hsw_hcaptcha type for hCaptcha sites that run hCaptcha’s full browser check (HSW). The request is the same as for standard hCaptcha. Only the type changes.
Overview
Behind every hCaptcha box, hCaptcha runs a check in the browser, called HSW, to make sure a real browser is there. Some sites run this check in full and look much more closely before they accept a token. Tokens that pass on most sites can be refused on these.
type |
hsw_hcaptcha |
| Needs a site key | Yes |
| Optional extras | rqdata, invisible, proxy, user_agent |
| You get | solution.token (starts with P1_) |
When to pick it: try standard_hcaptcha first. If its tokens are refused while the site key and page are right, use hsw_hcaptcha. For large sites on hCaptcha’s paid plan that send rqdata and check your proxy and browser, see enterprise_hcaptcha.
Before you start
- Create an API key in the dashboard under API keys (starts with
drx_) and add funds. - Find the site key: View page source and search for
data-sitekey. Or open the developer tools, Network tab, filter forhcaptcha, and readsitekey=from the request addresses. - Check for rqdata: if the page’s requests to
hcaptcha.comcarry anrqdatavalue, the site uses it. Get a fresh value for each task. - Note whether the widget is invisible (no checkbox, or
data-size="invisible"in the source).
Request fields
| Field | Required | What to put |
|---|---|---|
type |
Yes | hsw_hcaptcha |
website_url |
Yes | The full address of the page with the captcha. |
website_key |
Yes | The hCaptcha site key. |
rqdata |
No | The site’s rqdata, only if it uses one. Up to 8,000 characters. |
invisible |
No | true for widgets without a checkbox. |
proxy |
No | user:pass@host:port, or with a scheme like http:// or socks5://. |
user_agent |
No | A browser user agent string. |
Create the task
curl
curl -s -X POST https://draxon.one/api/captcha/v1/tasks \
-H "Authorization: Bearer $DRAXON_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: login-30418" \
-d '{
"type": "hsw_hcaptcha",
"website_url": "https://example.com/login",
"website_key": "10000000-ffff-ffff-ffff-000000000001"
}'
Python
import os
import requests
API = "https://draxon.one/api/captcha/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['DRAXON_KEY']}"}
task = requests.post(f"{API}/tasks", headers=HEADERS, timeout=30, json={
"type": "hsw_hcaptcha",
"website_url": "https://example.com/login",
"website_key": "10000000-ffff-ffff-ffff-000000000001",
}).json()
while task["status"] in ("queued", "processing"):
task = requests.get(f"{API}/tasks/{task['id']}", params={"wait": 60},
headers=HEADERS, timeout=90).json()
if task["status"] == "solved":
token = task["solution"]["token"]
else:
print("not solved:", task["error"])
Node.js
const API = "https://draxon.one/api/captcha/v1";
const headers = {
Authorization: `Bearer ${process.env.DRAXON_KEY}`,
"Content-Type": "application/json",
};
let task = await (await fetch(`${API}/tasks`, {
method: "POST",
headers,
body: JSON.stringify({
type: "hsw_hcaptcha",
website_url: "https://example.com/login",
website_key: "10000000-ffff-ffff-ffff-000000000001",
}),
})).json();
while (task.status === "queued" || task.status === "processing") {
task = await (await fetch(`${API}/tasks/${task.id}?wait=60`, { headers })).json();
}
const token = task.status === "solved" ? task.solution.token : null;
Get the result
Use ?wait=60 (0 to 120 seconds) to get the answer in one request.
curl -s -H "Authorization: Bearer $DRAXON_KEY" \
"https://draxon.one/api/captcha/v1/tasks/<id>?wait=60"
A solved task (cost fields left out):
{
"id": "9c2e7b14-5d03-4a8f-b6e1-0f4d3a2c1b98",
"type": "hsw_hcaptcha",
"status": "solved",
"website_host": "example.com",
"attempts": 1,
"created_at": "2026-10-30T10:00:00Z",
"completed_at": "2026-10-30T10:00:14Z",
"solution": {
"token": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
},
"error": null
}
Use the answer
- Put
solution.tokenin the hiddenh-captcha-responsefield, and ing-recaptcha-responseif the form has it. - If
solution.user_agentis present, send it as yourUser-Agentwhen you submit. - If the site sends the token in a JSON body or header, pass the captcha once by hand with the Network tab open and copy what the page sends.
- Submit soon after you get the token. It works once.
Compatible API names
Change your tool’s address to https://draxon.one/api/captcha/compat and use your DraxonCloud key as the client key.
| Service style | Name for this type |
|---|---|
CapSolver / Anti-Captcha createTask |
HCaptchaHSWTask, HCaptchaHSWTaskProxyless |
2Captcha in.php |
method=hcaptcha_hsw |
rqdata goes in task.rqdata or task.data; on 2Captcha, in data.
curl -s -X POST https://draxon.one/api/captcha/compat/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "'"$DRAXON_KEY"'",
"task": {
"type": "HCaptchaHSWTaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "10000000-ffff-ffff-ffff-000000000001"
}
}'
Read the token from solution.token (also in solution.gRecaptchaResponse) once getTaskResult says ready. See Compatible APIs.
Errors and fixes
When you create a task:
| Error | What it means | What to do |
|---|---|---|
422 validation_error on website_key |
The site key is missing. | Copy it from the page. |
422 validation_error on website_url |
Not a full http(s):// address, or too long. |
Send the full page address. |
422 validation_error on rqdata |
Longer than 8,000 characters. | Send only the rqdata value. |
422 target_blocked |
This website is not served. | Pick a site you are allowed to automate. |
402 insufficient_balance / spend_cap_reached |
Not enough funds, or the key’s daily limit. | Add funds or raise the limit. |
When a task ends without a token:
error.code |
What it means | What to do |
|---|---|---|
solve_failed |
The captcha could not be passed. | Check your fields and send a new task. |
provider_timeout |
It took too long. | Try again. |
expired |
Not finished within about 3 minutes. | Try again. |
attempts_exhausted |
Tried several times without success. | Try again later. |
Failed and expired tasks cost nothing. If the site still refuses HSW tokens, check whether it is an Enterprise site and try enterprise_hcaptcha. More codes on the errors page.
Price and billing
HSW has its own price, listed on the pricing page and in GET /api/captcha/v1/families. Creating a task holds the amount. You are charged only when it is solved. A failed or expired task releases the hold.
Related
- hCaptcha HSW solver: the short overview
- hCaptcha and hCaptcha Enterprise
- Solve a captcha
- Compatible APIs
- Errors
- Webhooks