Skip to main content

getTaskResult : request task result

Description

After you have created a task, you need to get its response by periodically checking the solving status.

Method address

<https://api.capmonster.cloud/getTaskResult/>

request format: JSON POST

caution

Limit: 120 requests per task.


Request parameters:

clientKey

Type: String
Required: Yes
Unique key of your account.

taskId

Type: Integer
Required: Yes
ID which was obtained in createTask method.


Request example

{
"clientKey":"67b6bcbb1a728ea8d563de6d169a2057",
"taskId": 7654321
}

Response structure

errorId

Type: Integer
Error identificator.
0 - no errors, no errorCode property;
1 - error, information about it is in the errorCode property.

errorCode

Type: String
Error code. Check out error list.

status

Type: String
processing - task is not ready yet;
ready - task complete, solution object can be found in solution property.

solution

Type: Объект
Task result data. Different for each type of task.


Response example:

Response is in process

{
"errorCode": null,
"errorDescription": null,
"errorId": 0,
"status": "processing"
}

Successful response

{
"errorId":0,
"status":"ready",
"solution": {
"text":"answer"
}
}