Skip to main content
Are you experiencing issues obtaining the token?
Contact support

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. If the limit is exceeded, the user's account may be temporarily locked.


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":"API_KEY",
"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"
}
}