getTaskResult
Returns the task status and, once it is ready, the token, its cost and timestamps. Results are kept for 10 minutes.
Цей розділ показано англійською.
POST https://neurocaptcha.com/getTaskResultRequest#
ПараметрОпис
clientKeystringобов’язковий- Your API key.
taskIdintegerобов’язковийtaskIdfrom createTask. A number, not a string.
Example#
import requests
response = requests.post("https://neurocaptcha.com/getTaskResult", json={
"clientKey": "YOUR_API_KEY",
"taskId": 7781,
}, timeout=30)
print(response.json())Response#
In progress#
{
"errorId": 0,
"status": "processing"
}Ready#
{
"errorId": 0,
"status": "ready",
"solution": {
"gRecaptchaResponse": "03AFcWeA6Z3vq0VhGm1oS8r0bAxKk4…",
"userAgent": ""
},
"cost": "0.000600",
"ip": "198.51.100.7",
"createTime": 1793370000,
"endTime": 1793370007,
"solveCount": 1
}ПараметрОпис
statusstringprocessingorready.solution.gRecaptchaResponsestring- The token.
solution.userAgentstringuserAgentfrom the task (empty if you did not pass one).solution.cookiesobject- Cookies set during solving, when there are any.
coststring- Charged amount in USD with 6 decimals (
0.000000for test keys). ipstring- IP address the task was created from.
createTimeinteger- When the task was created, Unix time.
endTimeinteger- When it was solved, Unix time.
solveCountinteger- Solving attempts used.
Failed#
A task that failed answers with its error code, and the task is not charged. Create a new task:
{
"errorId": 12,
"errorCode": "ERROR_CAPTCHA_UNSOLVABLE",
"errorDescription": "the task could not be solved"
}Polling#
- Poll each task every 2–3 seconds; more often does not make it faster.
- The key may make up to 50
getTaskResultcalls per second in total; above itERROR_TOO_MUCH_REQUESTS. - Stop at
readyor at the first error — a finished task does not change. - The result is kept for 10 minutes after it is ready, then the answer is
ERROR_NO_SUCH_CAPCHA_ID. - With many tasks in parallel, webhooks save requests.