CAPTCHA is the abbreviation of "Completely Automated Public Turing test to tell Computers and Humans Apart". It is a Test used to confirm whether a website visitor is a real person and not an automated program (such as a robot or malware). CAPTCHA is usually presented to users in the form of an image, requiring users to enter the text or numbers they see in a text box. This Test uses humans' ability to recognize images and text to ensure the security of the website and prevent malicious attacks and automated operations.
To start using the NextCaptcha Python SDK, you first need to obtain the API key (clientKey) from the NextCaptcha dashboard. You can then create a NextCaptchaAPI instance:
Now you can use API Object to solve type types of Captcha. To solve the reCAPTCHA v2 challenge, use the recaptchav2 method:
Resolving reCAPTCHA v2 Enterprise To resolve reCAPTCHA v2 Enterprise issues, use the recaptchav2enterprise method:
Solving reCAPTCHA v3 To solve reCAPTCHA v3 challenges, use the recaptchav3 method:
Solving reCAPTCHA Mobile To solve the reCAPTCHA Mobile challenge, use the recaptcha_mobile method:
Solving hCaptcha To solve hCaptcha challenges, use the hcaptcha method:
Resolving hCaptcha Enterprise To resolve hCaptcha Enterprise challenges, use the hcaptcha_enterprise method:
Solving FunCaptcha To solve the FunCaptcha challenge, use the funcaptcha method:
Checking Account Balance To check your NextCaptcha account balance, use the get_balance method:
Here is a complete example of using the NextCaptcha Python SDK to solve the reCAPTCHA v2 challenge:
If there is an error in the Captcha, the SDK will return a dictionary containing error information. You can check the status field to determine whether the request was successful. If the status is "Ready", the Captcha has been successfully solved and the Plan will be available in the Plan field. If the status is "Failed", the error field will contain a Description of the error