Menu

createTask: crea un'attività captcha

Indirizzo: https://api.anti-captcha.com/createTask
Metodo: POST
Content-type: application-json

Richiedi proprietà

Proprietà Tipo Richiesto Scopo
clientKey Stringa Sì
task Oggetto Sì
softId Intero No
languagePool Stringa No Spostato nel tipo di captcha ImageToTextTask.
callbackUrl Stringa No

Richiedi esempio

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
}' https://api.anti-captcha.com/createTask


Struttura risposta

Proprietà Tipo Scopo
errorId Intero Identificatore errore.
0 - nessun errore, operazione completata con successo.
>0 - Identificatore errore. Il codice errore e una sua breve descrizione sono disponibili nelle proprietà errorCode e errorDescription.
errorCode Stringa
errorDescription Stringa Breve descrizione dell'errore
taskId Intero

Esempio di risposta

JSON senza errori
JSON con un errore
{
    "errorId": 0,
    "taskId": 7654321
}