Skip to content
CaptchaSonic

getTaskResult

POSThttps://api.captchasonic.com/getTaskResult
Hostapi.captchasonic.com
Content-Typeapplication/json

Also available as GET /getTaskResult and GET /getResponse.

Request body

FieldTypeDescription
apiKeystringYour API key from the dashboard.
taskIdstringThe 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"}'