getTaskResult
POST
https://api.captchasonic.com/getTaskResultHostapi.captchasonic.com
Content-Typeapplication/json
Also available as GET /getTaskResult and GET /getResponse.
Request body
| Field | Type | Description |
|---|---|---|
apiKey | string | Your API key from the dashboard. |
taskId | string | The taskId returned by createTask. |
{
"apiKey": "sonic_xxxxxxxxxxxxxxxxxxxxxxxx",
"taskId": "FgIcYXBtKR6E"
}
Response
While the task is still being solved you get the task back with its current status:
{
"errorId": 0,
"status": "idle",
"taskId": "FgIcYXBtKR6E"
}
Keep polling every 1–2 seconds. When the task is finished, the response carries the solution for that captcha type, see the captcha-specific pages for the exact fields.
Example
curl -s https://api.captchasonic.com/getTaskResult \
-H 'content-type: application/json' \
-d '{"apiKey":"sonic_xxx","taskId":"FgIcYXBtKR6E"}'