Skip to content

Compatible APIs

Use your existing CapSolver, Anti-Captcha, 2Captcha, or DraxonSolver integrations without changing code.

Already use CapSolver, Anti-Captcha, or 2Captcha? Point your existing tool at https://draxon.one/api/captcha/compat and use your Draxon key as the client key.

Compatibility routes return HTTP 200 with standard third-party formats. Task IDs in these APIs are numbers, though Draxon UUIDs are also accepted.

CapSolver and Anti-Captcha JSON

Base URL: https://draxon.one/api/captcha/compat

Type mapping

Compatible type Draxon type
HCaptchaTask, HCaptchaTaskProxyless, HCaptchaTurboTask standard_hcaptcha
Same as above with "isEnterprise": true enterprise_hcaptcha
HCaptchaEnterpriseTask, HCaptchaEnterpriseTaskProxyless enterprise_hcaptcha
HCaptchaHSWTask, HCaptchaHSWTaskProxyless hsw_hcaptcha
AwsWafTask, AwsWafTaskProxyless, AntiAwsWafTask, AmazonTask aws_waf
CaptchaFoxTask, CaptchaFoxTaskProxyless captchafox
AkamaiBMPTask, AkamaiBMPTaskProxyless, AkamaiWebTask, AkamaiCookieTask akamai
TurnstileTask, TurnstileTaskProxyless, AntiTurnstileTask, AntiTurnstileTaskProxyLess turnstile
AntiCloudflareTask, CloudflareChallengeTask cloudflare_challenge
MtCaptchaTask, MtCaptchaTaskProxyless mtcaptcha
GeeTestV4Task, GeeTestV4TaskProxyless (websiteKey or captchaId) geetest

Native Draxon type names (standard_hcaptcha, aws_waf, etc.) are also accepted directly.

Turnstile’s cData is read from task.metadata.cdata, task.cData, or task.data (first one present); its action comes from task.action, task.pageAction, or task.metadata.action. Cloudflare Challenge requires a proxy on every task — send it as task.proxy (scheme://user:pass@host:port) or as task.proxyType + task.proxyAddress + task.proxyPort + task.proxyLogin + task.proxyPassword.

Create task (POST /createTask)

curl -s -X POST https://draxon.one/api/captcha/compat/createTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "'"$DRAXON_KEY"'",
    "task": {
      "type": "HCaptchaTaskProxyless",
      "websiteURL": "https://example.com/login",
      "websiteKey": "10000000-ffff-ffff-ffff-000000000001"
    }
  }'

Response:

{
  "errorId": 0,
  "taskId": 1048576
}

Get result (POST /getTaskResult)

curl -s -X POST https://draxon.one/api/captcha/compat/getTaskResult \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "'"$DRAXON_KEY"'",
    "taskId": 1048576
  }'

While running:

{
  "errorId": 0,
  "status": "processing"
}

When finished:

{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "token": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
    "gRecaptchaResponse": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
  }
}

Poll getTaskResult every 2 to 3 seconds until status is ready. For cloudflare_challenge, solution also carries cookies ({"cf_clearance": "..."}), cookie ("cf_clearance=..."), and userAgent. Reuse the same proxy and user agent together, since cf_clearance only works from the IP that earned it. For akamai, cookies holds the whole cookie jar (_abck, bm_sz and the rest) and cookie the ready-to-send header. For aws_waf, cookies is {"aws-waf-token": "..."}.

Check balance (POST /getBalance)

curl -s -X POST https://draxon.one/api/captcha/compat/getBalance \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "'"$DRAXON_KEY"'"
  }'

Response:

{
  "errorId": 0,
  "balance": 15.50
}

Common CapSolver / Anti-Captcha error codes

When an error happens, errorId is 1 and errorCode explains why:

Error code Meaning What to do
ERROR_KEY_DOES_NOT_EXIST API key invalid or revoked. Verify DRAXON_KEY in dashboard.
ERROR_ZERO_BALANCE Not enough funds or daily limit reached. Add funds or raise key limit.
ERROR_TASK_NOT_SUPPORTED Unsupported captcha type. Check type mapping table above.
ERROR_INVALID_TASK_DATA Missing required fields like URL or sitekey. Verify task payload.
ERROR_NO_SUCH_CAPCHA_ID Task ID not found or already expired. Ensure task ID was copied correctly.
ERROR_CAPTCHA_UNSOLVABLE Solver could not finish the task. No charge made. Create a new task.

2Captcha API

Send requests to /in.php and /res.php. Use your Draxon key as the key parameter.

Submit a captcha (in.php)

Supported methods: hcaptcha, hcaptcha_hsw, amazon_waf, captchafox, akamai_bmp, turnstile (data carries the widget’s cData), mt_captcha (MTCaptcha: sitekey, pageurl), geetest_v4 (GeeTest v4: captcha_id, pageurl).

curl -s "https://draxon.one/api/captcha/compat/in.php?key=$DRAXON_KEY&method=hcaptcha&sitekey=10000000-ffff-ffff-ffff-000000000001&pageurl=https://example.com/login&json=1"

Response:

{
  "status": 1,
  "request": "1048576"
}

Without json=1, the response is plain text: OK|1048576.

Fetch the result (res.php)

curl -s "https://draxon.one/api/captcha/compat/res.php?key=$DRAXON_KEY&action=get&id=1048576&json=1"

While solving:

{
  "status": 0,
  "request": "CAPCHA_NOT_READY"
}

When ready:

{
  "status": 1,
  "request": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}

To get the price alongside the token, use action=get2. To check your balance in plain text, use action=getbalance.

For geetest_v4, request is GeeTest’s whole answer, as 2Captcha returns it (as JSON text after OK| without json=1):

{
  "status": 1,
  "request": {
    "captcha_id": "e392e1d7fd421dc63325744d5a2b9c73",
    "lot_number": "7a3c1b6f0e2d4c5b8a9f0e1d2c3b4a59",
    "pass_token": "9f2f7c0b8d1e4a6b...",
    "gen_time": "1793440000",
    "captcha_output": "Wnr3Zx1R5pS0..."
  }
}

Common 2Captcha error codes

Error code Meaning What to do
ERROR_WRONG_USER_KEY Key format is invalid. Check your API key.
ERROR_KEY_DOES_NOT_EXIST Key not recognized. Check your API key.
ERROR_ZERO_BALANCE Balance is zero or limit reached. Add funds.
ERROR_BAD_PARAMETERS Missing URL or required parameters. Check request query string.
ERROR_WRONG_CAPTCHA_ID Unknown task ID. Check task ID.
ERROR_CAPTCHA_UNSOLVABLE Task failed. No charge made. Retry with new task.

Moving from DraxonSolver v2

If your application used the older captcha.draxon.one/api/solve/v1/* endpoints or keys starting with sk_, they continue to work without modification.

Old requests to captcha.draxon.one/api/solve/v1/... keep working, and so do your old keys. You do not have to change anything. When you want, switch to the captcha API.