Get task result (single poll)
get_task_resultRetrieve a CAPTCHA task's result in a single poll, returning status (processing/ready) and solution. Use for manual polling to extract the solved token for injection.
Instructions
Fetch a task result ONCE (a single poll).
Prefer get_task_result_wait, which polls for you. Use this only if you
want to drive the poll loop yourself.
Returns a dict:
while solving: {"status": "processing", ...} — retry after 2-3 s. Poll no faster than once per 2 s (max 120 polls per task), and fetch the result promptly: the task is stored for only ~5 min before it expires with ERROR_NO_SUCH_CAPCHA_ID.
when ready: {"status": "ready", "solution": {...}, "cost": ..., ...}
The solution object is CapMonster's raw solution, returned verbatim — its
shape differs per captcha type. Extract fields by the shape documented for
that type (get_docs), e.g. gRecaptchaResponse/token for
reCAPTCHA/Turnstile, nested domains[host].cookies.* for DataDome/Imperva,
data.randstr + data.ticket for TenDI, etc.
IMPORTANT: several types return a userAgent (or headers["User-Agent"])
inside the solution — the solved token is bound to it, so reuse that exact
UA in the browser / subsequent requests when injecting (Cloudflare
Challenge, FunCaptcha, AWS WAF, Binance, TenDI, Basilisk).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |