createTask: créer une tâche captcha
Address: https://api.anti-captcha.com/createTask
Method: POST
Content-type: application-json
Propriétés de la demande
Propriété | Type | Obligatoire | Objectif |
---|---|---|---|
clientKey | String | Yes | |
task | Object | Yes | |
softId | Integer | Non | |
languagePool | String | Non |
Définit la langue du pool de nœuds de calcul. S'applique uniquement aux captchas d'image. Actuellement, les pools de langues suivants sont disponibles:
en (default): File d'attente en anglais rn: groupe de pays : Russie, Ukraine, Biélorussie, Kazakhstan |
callbackUrl | String | Non |
Exemple de demande
CURL
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
Structure de réponse
Propriété | Type | Objectif |
---|---|---|
errorId | Integer |
Identificateur d'erreur.
0 - aucune erreur, l'opération s'est terminée avec succès. >1 - identifiant d'erreur. Code d'erreur et brève description transférés dans les propriétés errorCode and errorDescription. |
errorCode | String | |
errorDescription | String | Brève description de l'erreur |
taskId | Integer |
Exemple de réponse
JSON sans erreurs
{
"errorId": 0,
"taskId": 7654321
}
JSON avec une erreur
{
"errorId": 1,
"errorCode": "ERROR_KEY_DOES_NOT_EXIST",
"errorDescription": "Account authorization key not found in the system"
}