Supported task types
API methods
Articles
Tutorials
GitHub
Tutorial pages

createTask: create a captcha task

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

Request properties

PropertyTypeRequiredPurpose
clientKeyStringYes
taskObjectYes
softIdIntegerNo
languagePoolStringNoSets 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
callbackUrlStringNo

Request example

curl -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{
    "clientKey":"YOUR_API_KEY",
    "task":
        {
            "type":"RecaptchaV2TaskProxyless",
            "websiteURL":"http://makeawebsitehub.com/recaptcha/test.php",
            "websiteKey":"6LfI9IsUAAAAAKuvopU0hfY8pWADfR_mogXokIIZ"
        },
    "softId":0,
    "languagePool":"en"
}' https://api.anti-captcha.com/createTask


Response structure

PropertyTypePurpose
errorIdIntegerError identifier.
0 - no errors, operation completed successfully.
>1 - error identifier. Error code and short description transferred in errorCode and errorDescription properties.
errorCodeString
errorDescriptionStringShort description of the error
taskIdInteger

Response example

JSON with no errors
JSON with an error
{
    "errorId": 0,
    "taskId": 7654321
}