Documentation menu

getTaskResult: request a task result

Method: POST
Content-type: application-json

Request properties

Property Type Required Purpose
clientKey String Yes
taskId Integer Yes

Request example

          curl -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{

Response structure

Property Type Purpose
errorId Integer Error identifier.
0 - no errors, the operation completed successfully.
>1 - error identifier. Error code and short description transferred in errorCode and errorDescription properties.
errorCode String
errorDescription String Short description of the error
status String
processing - the task is not ready yet
ready - the task is complete, a solution is located in solution property
solution Object
Task result data. Different for each type of tasks.
cost Double
Task cost in USD.
ip String
IP from which task was created.
createTime Integer
UNIX timestamp date of task creation.
endTime Integer
UNIX timestamp date of task completion.
solveCount Integer
Amount of workers who tried to complete your task

Response example

JSON with no errors
JSON with an error
    "errorId": 1,
    "errorCode": "ERROR_KEY_DOES_NOT_EXIST",
    "errorDescription": "Account authorization key not found in the system"