NoCap.
Log in Create account
Live support
Documentation

Python client

Drop-in Solver class Β· 1 credit per solve Β· pip install requests

🐍

solver_client.py

full Solver class Β· deps: requests
CLIENT
solver_client.py

Usage

example.py

Parameters

Every field accepted by the POST /createTask request body.

Field names are flexible

You do not have to match our names. Every field below is read under any of its aliases, and the task object may be wrapped in task, data or payload — or sent flat at the root. If a field you sent is not being picked up, it is named something not on this list.

Field Also accepted as
sitekey siteKey · websiteKey
website siteurl · siteUrl · websiteURL · domain · url · website_host · websiteHost
href pageurl · pageUrl · page_url
rqdata rqData
rqtoken rqToken
apikey header X-API-Key · header Authorization: Bearer <key> · ?key= · body key · task.apikey

Only sitekey and website are required. A request missing either one comes back 400 with the accepted-alias list in the response body, so you can always ask the API what it wants. Note that field validation runs before the key check: a 400 about missing fields says nothing about whether your key is good.

Parameter Type Required Description
keystring Required Your API key, found in your dashboard. The header X-API-Key does the same and keeps it out of logged bodies.
typestring Required The CAPTCHA type to solve, e.g. hcaptcha_enterprise. Enterprise is detected from rqdata, so a request without this field is still accepted.
data.sitekeystring Required The site key from the target website.
data.siteurlstring Required The URL where the CAPTCHA is displayed. A full URL is trimmed to its host.
data.proxystring Required Proxy in the format http://user:pass@host:port. HTTP, HTTPS, SOCKS4, SOCKS5 and SOCKS5h. The token is minted on its exit IP, so redeem it from the same one.
data.hrefstring Required The full page URL where the challenge is rendered, e.g. https://discord.com/channels/@me. Must be on the same host as siteurl.
data.rqdatastring Optional rqdata, if the target requires it. Comes from Discord's 400 response and expires in about 25 seconds.