Supported task types
API methods
Articles
Tutorials
GitHub
Tutorial pages

getTaskResult: request a task result

Address: https://api.anti-captcha.com/getTaskResult
Method: POST
Content-type: application-json

Request properties

PropertyTypeRequiredPurpose
clientKeyStringYes
taskIdIntegerYes

Request example

curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
  "clientKey":"YOUR_API_KEY",
  "taskId":12345
}' https://api.anti-captcha.com/getTaskResult


Response structure

PropertyTypePurpose
errorIdIntegerError identifier.
0 - no errors, operation completed successfully.
>1 - error identifier. Error code and short description transferred in errorCode and errorDescription properties.
errorCodeString
errorDescriptionStringShort description of the error
statusString
processing - the task is not ready yet
ready - the task is complete; you'll find a solution in the solution property
solutionObject
Task result data. Different for each type of task.
costDouble
Cost of the task in USD.
ipString
IP from which the task was created.
createTimeInteger
UNIX timestamp date of task creation.
endTimeInteger
UNIX timestamp date of task completion.
solveCountInteger
Number of workers who tried to complete your task

Response example

JSON with no errors
JSON with an error
{
    "errorId":0,
    "status":"ready",
    "solution":
        {
            "text":"deditur",
            "url":"http:\/\/61.39.233.233\/1\/147220556452507.jpg"
        },
    "cost":"0.000700",
    "ip":"46.98.54.221",
    "createTime":1472205564,
    "endTime":1472205570,
    "solveCount":"0"
}