Skip to main content
hcaptcha

hCaptcha tokens, paid for only when they arrive.

One POST with a sitekey, a host and your own proxy returns a redeemable hCaptcha token. You are charged only when you receive one; every failure is released automatically.

api

One synchronous call.

The gateway holds the connection until the solve finishes. Authenticate with the x-api-key header.

solve.sh
curl -X POST https://api.hcap.catmouse.ai/solve \
  -H 'Content-Type: application/json' \
  -H "x-api-key: $KEY" \
  --max-time 95 \
  -d '{
    "site_key": "<hcaptcha sitekey>",
    "host": "www.example.com",
    "proxy": "user:pass@host:port"
  }'
responses.txt
# 200
{ "captcha_token": "P1_…", "task_id": "…", "instant_pass": true }

# 400  malformed request; fix it, do not retry unchanged
# 401  missing or wrong key
# 402  insufficient balance
# 403  key disabled
# 429  more solves in flight than the key's cap
# 500  solve failed; retry with a new task_id
fieldrequirednotes
site_keyrequiredThe hCaptcha sitekey of the target.
hostrequiredBare hostname of the page, no scheme and no path.
proxyrequiredA residential or mobile proxy for this solve. A request without one is rejected with 400 before it is queued, so it costs nothing.
task_idoptionalAn idempotency key. Omit it and the gateway generates one. Reusing one returns the cached earlier result.
hrefoptionalFull page URL; improves fidelity on some sitekeys.
rqdataoptionalPass through when the site supplies it.
questions

hCaptcha billing and usage

When am I charged?

Only when you receive a redeemable token. Your balance is a prepaid USD wallet: the hcap price is reserved from it when the request is accepted, committed when a token comes back, and released on any failure. A request rejected at the edge (400, 503) is never charged.

What does a solve cost?

The rate is written on your key and read back from GET /v1/client/balance (rates.hcap) and GET /key/status. The dashboard shows it next to your usage.

How long does a solve take?

The gateway holds the connection until the solve finishes; this is not a polling API. Set your client timeout to at least 95 seconds and use the token immediately, since hCaptcha tokens expire quickly.

Do I need my own proxies?

Yes. Every solve must carry a proxy. Residential or mobile exits work; datacenter addresses are rejected by hCaptcha.

Where do I see usage?

In the hcap usage section of the dashboard, which shows calls, what they cost in dollars and the rate on your key.