getTaskResult: request a task result

Address: 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
}' getTaskResult


Response structure

PropertyTypePurpose
errorIdIntegerError identifier.
0 - no errors, operation completed successfully.
>0 - error identifier. Error code with short description are available in errorCode and errorDescription properties.
errorCodeStringAn error code won't be included in the output if the request produced no errors.
errorDescriptionStringShort description of the error
statusStringprocessing - the task is not ready yet
ready - the task is complete; you'll find a solution in the solution property
solutionObjectTask result data. Different for each type of task.
costDoubleCost of the task in USD.

Response example

JSON with no errors
JSON with an error
{
    "errorId":0,
    "status":"ready",
    "solution": {
        "gRecaptchaResponse":"3AHJ_VuvYIBNBW5yyv0zRYJ78VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3..."
    },
    "cost":"0.0005"
}