Cookie usage notification

This site uses cookies. Cookies remember you, so we can provide you with personalized services. Read our privacy policy.

Auto captcha solving scripts

Captcha bypass code examples in PHP Python, Java, C#, Golang, Ruby, JavaScript

For the convenience of developers, we have created pages for all popular programming languages, in which you can see examples of code for bypassing all major types of captcha.

The pages provide sources for downloading libraries from GitHub and other repositories, a standard error handler, and a description of all the necessary parameters to configure installed script packages.

Logo of «GitHub»

Captcha bypass solution on GitHub

Full documentation and captcha bypass code examples on GitHub

  • PHP captcha solver

    A package of libraries and examples of PHP scripts for integration with the API of the 2Captcha service and automation of bypassing any kind of captcha. Standard error handler, parameter values, and configuration descriptions.

    PHP captcha solver
  • Python captcha solver

    Examples of scripts in Python and modules for integration with the API of the 2Captcha service. An overview of the parameters and their possible values. Automation of solving all popular types of captcha and description of an error handler.

    Python captcha solver
  • Java captcha solver

    Libraries in Java and example scripts for bypassing all types of captcha. Integration with the API of the 2Captcha service to automate the solution of captcha with a description of parameters and configurations, as well as a description of standard errors and their handler.

    Java captcha solver
  • C# captcha solver

    Codes of example scripts on Csharp for bypassing recaptcha and other popular types of captchas. A set of libraries and modules for integration and interaction with the API of the 2Captcha service. Variable configurations and error handler.

    C# captcha solver
  • Go captcha solver

    A set of Go scripts and libraries for integration with the 2Captcha service API. An overview of configurable configurations and a description of possible parameter values ​​for bypassing all types of captcha. Standard error handling.

    Go captcha solver
  • Ruby captcha solver

    Quickly recognize and bypass various captchas using Ruby. Use Ruby client and API of captcha solving service 2Captcha to automatically bypass reCAPTCHA, hCaptcha, Arkose captcha, Geetest and other captchas.

    Ruby captcha solver
  • JavaScript captcha solver

    Examples of JavaScript scripts and npm module for integration with the API of 2Captcha service. Overview of customizable configurations and examples of automatic bypass of reCAPTCHA, hCaptcha, Arkose captcha, Geetest, Cloudflare and other captchas.

    JavaScript captcha solver
Bypass captcha using Selenium/Puppeteer with 2Captcha service

Selenium

Captcha bypassing for Selenium:

Puppeteer

Automate captcha bypass in Puppeteer:

  • Puppeteer captcha solver
  • Manual: How to solve reCAPTCHA in Puppeteer

Supported captchas

Normal CAPTCHA

The process of solving a normal captcha is as follows: we take the captcha image from the page and send it to the 2Captcha service, where an employee solves it typing the indicated text, then the answer is returned to us, which must be entered in the appropriate field to solve the captcha

API demoHow to solve
Text CAPTCHA

The process of solving text captcha is as follows: we take the text question of the captcha from the page of its placement and transfer it to the 2Captcha service, where it is solved by the employee, after which the answer is returned to us, which must be entered in the appropriate field to solve the captcha

API demoHow to solve
Click CAPTCHA

The solution process is as follows: we take the captcha image from the page of its placement and the instructions on which pictures to click on and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of point coordinates, which we need to click for solving the captcha

API demoHow to solve
Rotate CAPTCHA

The process of solving Rotate Captcha is as follows: we take an image or several images of a captcha from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of the value of the image rotation angle, we need to rotate the image on the angle to solve captcha

API demoHow to solve
reCAPTCHA V2

The process of solving reCAPTCHA V2 is as follows: we take the captcha parameters from the page in the form of the data-sitekey parameter and the page URL and transfer it to the 2Captcha service, where the employee solves it, then the response is returned to us in the form of a token, which must be entered into the appropriate field for the solution captcha

API demoHow to solve
reCAPTCHA V2 Callback

The process of solving reCAPTCHA V2 Callback does not differ from the similar process of solving reCAPTCHA V2: we take the captcha parameters from the page in the form of the data-sitekey parameter and the page URL and transfer it to the 2Captcha service, where the employee solves it, then the response is returned to us in as a token, which we should be entered into the appropriate field to solve the captcha. Sometimes you won't find a button submitting a form. A callback function can be used instead. This function is executed when the captcha is recognized. Usually the callback function is defined in the data-callback parameter or as the callback parameter of the grecaptcha.render method call

API demoHow to solve
reCAPTCHA V2 Invisible

The process of solving reCAPTCHA V2 Invisible is similar to the recognition of reCAPTCHA V2: we take the captcha parameters from the page in the form of the data-sitekey parameter and the page URL and transfer it to the 2Captcha service, where the employee solves it, after which the response is returned to us in the form of a token, which we need enter in the appropriate field to solve the captcha

API demoHow to solve
reCAPTCHA V3

The process for solving reCAPTCHA V3 is as follows: we take the captcha parameters from the page in the form of the data-sitekey, action and the page URL and transfer it to the 2Captcha service, where it is solved by an employee with the appropriate "humanity” rating, after that the response is returned to us in the form of a token, which must be entered into the appropriate field to solve the captcha. In many ways, the new type of captcha is similar to reCAPTCHA V2, i.e. the basic principle remains the same - the user receives a token from the 2Captcha API, which is sent in a POST request to the site, and the site verifies the token through the 2Captcha API

API demoHow to solve
reCAPTCHA Enterprise

The process of solving reCAPTCHA Enterprise is as follows: we determine the type of reCAPTCHA, it can be V2 or V3, after which we take the captcha image from the page of its placement in the form of the data-sitekey parameter and transfer it to the 2Captcha service, where it is solved by the employee, after which it is returned to us answer in the form of a token, which must be entered in the appropriate field to solve the captcha

API demoHow to solve
KeyCAPTCHA

The process of solving KeyCaptcha is as follows: we take a set of necessary parameters from the page of its placement and pass it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of other parameters, which must be passed to the appropriate fields to solve the captcha

API demoHow to solve
GeeTest CAPTCHA

The process of solving GeeTest Captcha is as follows: we take a set of necessary parameters from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of already other parameters, which must be passed to the appropriate fields to solve the captcha

API demoHow to solve
hCaptcha

The solution process is as follows: we take the captcha image from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the response is returned to us in the form of a token, which must be entered into the appropriate field to solve the captcha

How to solve
Arkose Labs captcha (FunCaptcha)

The process of solving FunCaptcha by Arkose Labs is as follows: we take a set of necessary parameters from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of already other parameters, which must be passed to the appropriate fields to solve the captcha

How to solve
Capy Puzzle CAPTCHA

The process of solving Capy Puzzle Captcha is as follows: we take a set of necessary parameters from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of already other parameters, which must be passed to the appropriate fields to solve the captcha

How to solve
Lemin CAPTCHA

To solve the Lemin captcha, follow these steps: The service retrieves a set of required parameters from the placement page and sends them to the 2Captcha server for the employee to solve. The answer is then returned to us in the form of a set of additional parameters that must be entered into the correct fields to complete.

API demoHow to solve
Cloudflare Turnstile

Cloudflare Turnstile is solved by taking the captcha parameters from the page in the form of the "data-sitekey" parameter and the page URL, sending them to the 2Captcha service, where an employee solves them. The solution is then returned to us in the form of a token, which we must enter in the relevant field to complete the captcha.

API demoHow to solve
Audio CAPTCHA

The process of bypassing audio captcha is fully automated: an audio file is sent to the recognition service, which is processed by a neural network trained in voice recognition. The recognition result is returned as text. The resulting text can be used to bypass audio captcha or translate audio into text.

How to solve
Amazon CAPTCHA

The procedure for solving a Amazon AWS captcha is as follows: you need to grab the set of required parameters from the placement page and send it to the service, where an employees solves task. The answer is then returned to us in the form of a set of additional parameters, which must be entered into the correct fields to solve.

How to solve
MTCaptcha

The procedure for solving a MTCaptcha is as follows: you need to grab the set of required parameters from the placement page and send it to the service, where an employees solves task. The response is then returned to us in the form of a token, which must be entered into the appropriate field for the solution captcha.

API demoHow to solve
DataDome CAPTCHA

The procedure for solving a DataDome CAPTCHA is as follows: you need to grab the set of required parameters from the placement page and send it to the service, where an employees solves task. The response is then returned to us in the form of a token, which must be entered into the appropriate field for the solution captcha.

How to solve
CyberSiARA CAPTCHA

The procedure for solving a CyberSiARA captcha is as follows: you need to grab the set of required parameters from the placement page and send it to the service, where an employees solves task. The response is then returned to us in the form of a token, which must be entered into the appropriate field for the solution captcha.

How to solve
Cutcaptcha

The process of solving a Cutcaptcha is as follows: you send the required parameters from the page where it is placed to the service, and an employee solves the captcha. The answer is then sent back to you in the form of additional parameters that need to be entered into the relevant fields.

How to solve
Friendly CAPTCHA

The process of solving a Friendly CAPTCHA is as follows: you send the required parameters from the page where it is placed to the service, and an employee solves the captcha. The answer is then sent back to you in the form of additional parameters that need to be entered into the relevant fields.

How to solve
Russian CAPTCHA

The process of solving a russian captcha is as follows: we take the captcha image from the page and send it to the 2Captcha service, where an employee solves it typing the indicated text, then the answer is returned to us, which must be entered in the appropriate field to solve the captcha

How to solve
Chinese CAPTCHA

The process of solving a chinese captcha is as follows: we take the captcha image from the page and send it to the 2Captcha service, where an employee solves it typing the indicated text, then the answer is returned to us, which must be entered in the appropriate field to solve the captcha

How to solve
Number CAPTCHA

The process of solving a number captcha is as follows: we take the captcha image from the page and send it to the 2Captcha service, where an employee solves it typing the indicated text, then the answer is returned to us, which must be entered in the appropriate field to solve the captcha

How to solve
Math CAPTCHA

The process of solving a math captcha is as follows: we take the captcha image from the page and send it to the 2Captcha service, where an employee solves it typing the indicated text, then the answer is returned to us, which must be entered in the appropriate field to solve the captcha

How to solve
Slider CAPTCHA

The process of solving the slider captcha is as follows: Customer take the captcha image from the page and send it to the service using the corresponding API method and providing a proper instruction. The answer is returned by the service, use it to calculate the offset and drag the slider

How to solve
We support VISA, Mastercard, Airtm, PayPal, Alipay, BTC, USDT payment systems
Logo of «2Captcha»To home pageinfo@2captcha.com