Get task result (poll to completion)
get_task_result_waitPoll a captcha task until it completes and retrieve its solution, handling retry intervals and timeouts to avoid API rate limits.
Instructions
Poll a task to completion and return its solution (the usual way to collect a result after create_task).
Blocks, polling /getTaskResult every poll_interval_seconds until the task
is ready or timeout_seconds elapses. This respects CapMonster's limits for
you — the interval is clamped to a minimum of 2 s (the API rejects faster
polling with ERROR_TOO_MUCH_REQUESTS) and the number of polls is capped at
120 per task.
Returns the same ready dict as get_task_result:
{"status": "ready", "solution": {...}, "cost": ..., ...}
The solution is CapMonster's raw solution, verbatim — its shape differs
per captcha type (see get_task_result / get_docs).
IMPORTANT: several types return a userAgent (or headers["User-Agent"])
inside the solution — the token is bound to it, so reuse that exact UA when
injecting (Cloudflare Challenge, FunCaptcha, AWS WAF, Binance, TenDI,
Basilisk).
Raises an error on solve error (e.g. ERROR_RECAPTCHA_TIMEOUT — often a slow
proxy) or if the task is still processing when timeout_seconds is reached
(increase the timeout, or check the proxy/params and re-create the task).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| timeout_seconds | No | ||
| poll_interval_seconds | No |