Skip to content

API Error Codes ​

When a request fails, the API returns an error code instead of a task ID or an answer. Below are the most common codes with what to do about them, followed by full tables for both API formats: RuCaptcha (2Captcha) with in.php and res.php, and Anti-Captcha with createTask and getTaskResult. Look in the section that matches the format your software uses.

Most common errors and how to fix them ​

CAPCHA_NOT_READY ​

Not really an error: the captcha is still being solved. Wait about 5 to 10 seconds and send the same res.php request again. Most captchas are ready in a few seconds, tokens for reCAPTCHA and Turnstile take 10 to 30 seconds. Limit the total waiting time in your code (for example, 2 minutes) so a task cannot hang forever.

ERROR_KEY_DOES_NOT_EXIST ​

The API key is wrong or has been deleted: copy the key from the dashboard again. This code comes in the Anti-Captcha format (createTask, getTaskResult) and from some modules. Check that there are no extra spaces or line breaks, that the whole key was copied, and that you send it in clientKey for createTask and getTaskResult or in key for in.php and res.php.

ERROR_WRONG_USER_KEY ​

The API key is wrong: copy the key from the dashboard again. This is the same error in the RuCaptcha (2Captcha) format for in.php and res.php. Most often the key was copied with a space or not completely, or the key parameter is empty.

ERROR_ZERO_BALANCE ​

The balance is zero or negative. Top up your balance in the dashboard. You can check the balance through the API and stop sending tasks when it gets low, so your software does not run into this error.

ERROR_CAPTCHA_UNSOLVABLE ​

The service could not solve this captcha. Usually this means the image was unreadable, the task text did not match a supported task, or the parameters (sitekey, page URL) were wrong. Check the parameters, then send a new task. Do not resend the same task ID: request a new captcha from the site and submit it again.

ERROR_NO_SLOT_AVAILABLE ​

Too many tasks at once, or the service is under heavy load. Wait a few seconds and resend the task. If it happens often, reduce the number of tasks you send in parallel.

ERROR_NO_SUCH_CAPCHA_ID ​

The task ID in the res.php request was not found. Check that you send the ID exactly as in.php returned it, and that you request the result with the same API key that created the task.

ERROR_WRONG_CAPTCHA_ID ​

The same as ERROR_NO_SUCH_CAPCHA_ID: the task ID is wrong or empty. Most often the id parameter is missing in the res.php request, or the ID was taken from another response.

ERROR_PAGEURL and ERROR_GOOGLEKEY ​

The page URL or the sitekey in a token task is missing or invalid. Send the full URL of the page with the captcha in pageurl and the key from the page code in googlekey (reCAPTCHA) or sitekey (Turnstile, hCaptcha). Both values must come from the same page.

ERROR_PROXY_CONNECTION_FAILED ​

The service could not connect through your proxy. Check that the proxy works from the internet, that the login and password are correct and that proxytype matches the proxy type. Proxies on 127.x and local network addresses (192.168.x, 10.x) are rejected right away. This error is used by tasks with a proxy, for example the Cloudflare challenge.

ERROR_BAD_PARAMETERS ​

A parameter has an invalid value. For the Cloudflare challenge this usually means an unsuitable userAgent: do not send it, and the service will return the right one.

notpic ​

The object from the task was not found in the image. Check that you sent the full task image and the correct task text, then send a new task with a new captcha.

RuCaptcha (2Captcha) format ​

Errors of https://api2.cap.guru/in.php for image captchas

ErrorDescription
ERROR_WRONG_USER_KEYInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_TOO_BIG_CAPTCHA_FILESIZEThe image file is too large
ERROR_UPLOADThe image could not be uploaded
ERROR_CAPTCHA_UNSOLVABLEThe service could not solve your captcha

Errors of https://api2.cap.guru/in.php for reCAPTCHA v2, v2 Invisible and v3

ErrorDescription
ERROR_WRONG_USER_KEYInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_NO_SLOT_AVAILABLENo free slots: you sent too many tasks or the service is under heavy load
ERROR_PAGEURLInvalid page URL
ERROR_GOOGLEKEYInvalid sitekey (googlekey)
ERROR_CAPTCHA_UNSOLVABLEThe service could not solve your captcha

Errors of https://api2.cap.guru/res.php

ErrorDescription
ERROR_WRONG_USER_KEYInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_GOOGLEKEYInvalid sitekey (googlekey)
ERROR_CAPTCHA_UNSOLVABLEThe service could not solve your captcha
CAPCHA_NOT_READYThe task is still being solved, repeat the request in 5 to 10 seconds
ERROR_NO_SUCH_CAPCHA_IDTask ID not found
ERROR_WRONG_CAPTCHA_IDTask ID not found
notpicThe object from the task was not found in the image

Anti-Captcha format ​

Errors of https://api2.cap.guru/createTask for image captchas

ErrorDescription
ERROR_KEY_DOES_NOT_EXISTInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_TOO_BIG_CAPTCHA_FILESIZEThe image file is too large
ERROR_UPLOADThe image could not be uploaded
ERROR_IMAGE_TYPE_NOT_SUPPORTEDThe image format is not supported

Errors of https://api2.cap.guru/createTask for reCAPTCHA v2, v2 Invisible and v3

ErrorDescription
ERROR_WRONG_USER_KEYInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_NO_SLOT_AVAILABLENo free slots: you sent too many tasks or the service is under heavy load
ERROR_RECAPTCHA_INVALID_DOMAINInvalid page URL
ERROR_RECAPTCHA_INVALID_SITEKEYInvalid sitekey
ERROR_CAPTCHA_UNSOLVABLEThe service could not solve your captcha

Errors of https://api2.cap.guru/getTaskResult

ErrorDescription
ERROR_KEY_DOES_NOT_EXISTInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_GOOGLEKEYInvalid sitekey (googlekey)
ERROR_CAPTCHA_UNSOLVABLEThe service could not solve your captcha
CAPCHA_NOT_READYThe task is still being solved, repeat the request in 5 to 10 seconds
ERROR_NO_SUCH_CAPCHA_IDTask ID not found
ERROR_WRONG_CAPTCHA_IDTask ID not found
notpicThe object from the task was not found in the image

Errors of beta methods ​

https://api2.cap.guru/in.php and res.php for the Cloudflare challenge (cf_clearance)

ErrorDescription
ERROR_WRONG_USER_KEYInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_PROXY_CONNECTION_FAILEDThe proxy is unavailable or is a local address
ERROR_BAD_PARAMETERSInvalid parameter value, most often an unsuitable userAgent
ERROR_CAPTCHA_UNSOLVABLEThe service could not pass the check
CAPCHA_NOT_READYThe task is still being solved, repeat the request in 5 to 10 seconds
NO_CHALLENGENot an error: the site let the service in without a check, the cookies are in cookies

https://api2.cap.guru/in.php for hCaptcha tokens

ErrorDescription
ERROR_WRONG_USER_KEYInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_NO_SLOT_AVAILABLENo free slots: you sent too many tasks or the service is under heavy load
ERROR_PAGEURLInvalid page URL
ERROR_HKEYInvalid hCaptcha sitekey
ERROR_CAPTCHA_UNSOLVABLEThe service could not solve your captcha

https://api2.cap.guru/res.php for hCaptcha tokens

ErrorDescription
ERROR_WRONG_USER_KEYInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_CAPTCHA_UNSOLVABLEThe service could not solve your captcha
CAPCHA_NOT_READYThe task is still being solved, repeat the request in 5 to 10 seconds
ERROR_WRONG_CAPTCHA_IDTask ID not found

Errors returned by the site, not by the API ​

These codes come from the site or from the captcha provider when the site checks the token you inserted. The API has already returned the token, but the site did not accept it.

ErrorWhereWhat it means
missing-input-responseTurnstile, reCAPTCHA, hCaptchaNo token reached the site: the field is empty or the form was sent too early. See Turnstile token required
invalid-input-responseTurnstile, reCAPTCHA, hCaptchaThe token is invalid: issued for another sitekey or page, or expired
timeout-or-duplicateTurnstile, reCAPTCHAThe token is older than its lifetime or was already used. Get a new token for every submission
invalid-or-already-seen-responsehCaptchaThe hCaptcha token was already used or expired

Errors of methods that are not available now ​

Expand

These codes belong to token solving for GeeTest. Token solving for GeeTest is currently unavailable: GeeTest is solved by clicks. The codes are kept here for older integrations.

https://api2.cap.guru/in.php for GeeTest tokens

ErrorDescription
ERROR_WRONG_USER_KEYInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_NO_SLOT_AVAILABLENo free slots: you sent too many tasks or the service is under heavy load
ERROR_PAGEURLInvalid page URL
ERROR_CAPTCHA_UNSOLVABLEThe service could not solve your captcha
ERROR_GEETTEST_GTThe gt value is empty
ERROR_GEETTEST_challengeThe challenge value is empty

https://api2.cap.guru/res.php for GeeTest tokens

ErrorDescription
ERROR_WRONG_USER_KEYInvalid API key
ERROR_ZERO_BALANCEThe balance is zero or negative, top it up in the dashboard
ERROR_CAPTCHA_UNSOLVABLEThe service could not solve your captcha
CAPCHA_NOT_READYThe task is still being solved, repeat the request in 5 to 10 seconds
ERROR_WRONG_CAPTCHA_IDTask ID not found
ERROR_CAPTCHA_BAD_GT_OR_CNANNELInvalid gt or channel value
ERROR_PROXY_CONNECTION_FAILEDThe proxy is not working