Home Documentation Tutorials Sign In
Documentation menu

createTask: create a captcha task

Address: https://api.anti-captcha.com/createTask
Method: POST
Content-type: application-json

Request properties

Property Type Required Purpose
clientKey String Yes
task Object Yes
softId Integer No
languagePool String No Sets workers' pool language. Only applies to image captchas. At the moment, the following language pools are available:

en (default): English language queue
rn: group of countries: Russia, Ukraine, Belarus, Kazakhstan
callbackUrl String No

Request example

          curl -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{
}' https://api.anti-captcha.com/createTask

Response structure

Property Type Purpose
errorId Integer Error identifier.
0 - no errors, 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
taskId Integer

Response example

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