Skip to content

Image recognition API

Send a hCaptcha getcaptcha response, get the checkcaptcha answers back. $1 per 1,000 solves.

hCaptcha Drag the matching shape into place
Challenge
hCaptcha challenge: drag the matching shape into place
Answer
hCaptcha challenge: drag the matching shape into place, answered
piece placed, passed hCaptcha checkcaptcha

You keep the hCaptcha session (proof-of-work, motion data, checkcaptcha). We look at the pictures. $1 per 1,000 solved challenges, charged only when an answer is returned.

Request

POST https://draxon.one/api/captcha/recognize with your API key in X-API-Key (or Authorization: Bearer). The body is the getcaptcha response JSON:

curl https://draxon.one/api/captcha/recognize \
  -H "X-API-Key: drx_..." -H "content-type: application/json" \
  --data @getcaptcha.json

Challenge image URLs only work from the IP that received them, so add the bytes you downloaded as images ({ "<image url>": "<base64>" }). No JSON (the browser got it encrypted)? Send what the screen showed:

{
  "request_type": "image_label_binary",
  "question": "Click on things you can buy at a coffee shop",
  "images": ["<base64 tile 0>", "<base64 tile 1>"]
}

request_type is image_label_binary, image_label_area_select or image_drag_drop. For drag, add pieces: [[{ "id": "p0", "image": "<base64 png>", "center": [x, y] }]] (one list per image). examples takes the base64 example pictures some prompts refer to (“the feature shown”).

Response

{ "success": true, "id": "...", "job_mode": "image_label_area_select",
  "answers": { "<task_key>": [{ "entity_name": 0, "entity_type": "default", "entity_coords": [313, 204] }] } }

Put answers in your checkcaptcha body. Binary answers are "true"/"false" per tile, area answers are click points in picture pixels, drag answers are the slot centre for each piece.

Errors (you are not charged): 402 insufficient_balance, 422 unsupported_challenge | no_answer | invalid_challenge, 503 recognition_failed. Send Idempotency-Key to make a retry free.

Drop-in formats

  • CapSolver / YesCaptcha: POST /api/captcha/compat/createTask with task.type = "HCaptchaClassification", queries (base64 images) and question; the answer comes back at once with status: "ready" and solution.objects (grid) or solution.box (one picture).
  • NopeCha: base URL https://draxon.one/api/captcha/compat/nopecha/v1; POST /recognition with type, task, image_data (base64) and Authorization: Basic <key>, then GET /recognition?id=<job>.

Browser extension

The Draxon Recognition extension does all of this inside the browser, so there is nothing to integrate: it spots the hCaptcha widget, sends the challenge pictures to this API and clicks or drags the answer with human-like mouse movement. It does not use the browser’s debugger, so Chrome shows no “started debugging” bar.

Download for Chrome

  1. Download the extension (button above) and unzip it.
  2. Open chrome://extensions (Brave, Edge and other Chromium browsers work too), turn on Developer mode, click Load unpacked and pick the unzipped folder.
  3. Open the extension’s Options, paste your API key (drx_…) and save. The popup shows your balance, today’s solves and lets you pause it per site.

Settings include which challenge kinds to solve, mouse speed, a thinking delay, a site blocklist and outcome reporting. For automation with a fresh browser profile, put a provision.json ({"key": "drx_…"}) next to manifest.json before loading. Calls are billed like any other recognition call. Full install guide and every setting →

Dashboard & outcome reporting

Every call shows up under Dashboard → Captcha → Recognition: calls, answered/failed, accepted rate, 30-day trend, a breakdown by request type, and your last 50 calls with solver, coverage, result and cost. GET /api/captcha/v1/recognition/stats?days=30 (1-90, default 30) backs that tab if you want the numbers yourself — same auth and X-API-Key as above.

By default we don’t know whether our answer actually solved the challenge downstream — only that we returned one. Report the real outcome and we track an accepted rate for you (and route future traffic more accurately):

curl https://draxon.one/api/captcha/recognize/outcome \
  -H "X-API-Key: drx_..." -H "content-type: application/json" \
  -d '{"id": "<id from the recognize response>", "passed": true}'
{ "ok": true }

id is the id returned by POST /recognize. Only the account that made the original call may report its outcome. Reporting the same value again is a no-op (200 {"ok": true}); reporting a different value than before is 409 conflict (outcome_already_set). An unknown id is 404 not_found (event_not_found). Reporting an outcome never charges you.