Page tree
Skip to end of metadata
Go to start of metadata

This method creates a task for solving selected captcha type.

Method address: https://api.anti-captcha.com/createTask 
Request format: JSON POST

Request parameters:

Parameter
Type
Required
Purpose
clientKeyStringYesClient account key, can be found here
taskTask type objectYesArray of task data
softIdIntNoID of your application from out AppCenter,
this is required to earn 10% from clients spendings which use your application.
languagePoolStringNo

Sets workers pool language. At the moment the following language pools are available:

en (default) : English language queue
rn  : group of countries: Russia, Ukraine, Belarus, Kazahstan


Examples:


 Recaptcha solving with client proxy
{
    "clientKey":"dce6bcbb1a728ea8d871de6d169a2057",
    "task":
        {
            "type":"NoCaptchaTask",
            "websiteURL":"http:\/\/mywebsite.com\/recaptcha\/test.php",
            "websiteKey":"6Lc_aCMTAAAAABx7u2N0D1XnVbI_v6ZdbM6rYf16",
            "proxyType":"http",
            "proxyAddress":"8.8.8.8",
            "proxyPort":8080,
            "proxyLogin":"proxyLoginHere",
            "proxyPassword":"proxyPasswordHere",
            "userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
        },
    "softId":0,
    "languagePool":"en"
}

Yes, proxy is required. Why? The answer is here. If you don't have proxies, use Proxyless Recaptcha tasks.

 Recaptcha solving without proxies
{
    "clientKey":"dce6bcbb1a728ea8d871de6d169a2057",
    "task":
        {
            "type":"NoCaptchaTaskProxyless",
            "websiteURL":"http:\/\/mywebsite.com\/recaptcha\/test.php",
            "websiteKey":"6Lc_aCMTAAAAABx7u2N0D1XnVbI_v6ZdbM6rYf16"
        },
    "softId":0,
    "languagePool":"en"
}
 Solve usual image captcha
{
    "clientKey":"dce6bcbb1a728ea8d563de6d169a2057",
    "task":
        {
            "type":"ImageToTextTask",
            "body":"BASE64_BODY_HERE!",
            "phrase":false,
            "case":false,
            "numeric":false,
            "math":0,
            "minLength":0,
            "maxLength":0
        }
}


Response structure:

Parameter
Type
Purpose
errorIdIntegerError identificator.
0 - no errors, the task has been successfully created, task ID located in taskId property
>1 - error identificator. Error code and short information transferred in errorCode and errorDescription properties
errorCodeStringError code. Check out errors list.
errorDescriptionStringShort information describing error
taskIdIntegerTask ID for future use in getTask method.
  • No labels