How to solve Google captcha reCAPTCHA using Puppeteer and clicks method

This article explains how to automate Google reCAPTCHA bypass with image challenges (3x3 and 4x4) using the captcha solver and Puppeteer library. The script programmatically interacts with the reCAPTCHA widget, retrieves the challenge data, sends it to 2Captcha for processing, and then clicks on the correct tiles based on the solution provided.

Installation and configuration

Installation

git clone git@github.com/2captcha/puppeteer-recaptcha-solver-using-clicks.git
cd puppeteer-recaptcha-solver-using-clicks
npm i
npm run start

Configure

Set the APIKEY environment variable. You can get the APIKEY value in your personal 2captcha account.

export APIKEY=your_api_key

How reCAPTCHA bypass click method works

In this example, the Grid method is used to solve the captcha. The script extracts the captcha image and its parameters. Then, the Grid method solves the captcha, and a response with the cell numbers to click is received. Puppeteer is used to click on the correct squares, and finally, the "Verify" button is clicked to check the result.

Example - successful captcha data extraction:

{
  rows: 3,
  columns: 3,
  type: 'GridTask',
  comment: 'Select all images with crosswalks Click verify once there are none left',
  body: 'iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0'
}

Example - captcha solution response using the Grid method:

{
  status: 1,
  data: 'click:3/6/8',
  id: XXXXXXXX'
}

The response click:3/6/8 means you need to click on the captcha squares numbered 3, 6, and 8. The numbering of the squares starts from the top-left corner. In the screenshot below, you can visually identify which squares should be clicked based on the response click:3/6/8.

To successfully solve a captcha, you need to complete around 1-5 challenges, but in more complex cases, there could be additional tasks.

You may also encounter a block from reCAPTCHA, which temporarily prevents further attempts to solve the captcha. When this happens, you'll see a message like: "Try again later. Your computer or network may be sending automated queries. To protect our users, we can't process your request right now". An example of this block message is shown in the screenshot below. In such cases, you will need to either change your IP address or wait for 5-10 minutes before trying again.

Cons

Google reCAPTCHA bypass click method cons:

  • Сode complexity.
  • The price and speed of the solution can be unstable, as it depends on how many challenges (images) need to be solved.
  • Browser automation is required for the reCAPTCHA process to work correctly. This is necessary to ensure the built-in logic of applying the reCAPTCHA token functions properly.

Pros

Google reCAPTCHA bypass click method pros:
The main advantage of this approach is that you don't need to worry about applying the token manually on the page. With this method, you simply click on the correct squares and then press the check button, after which the built-in reCAPTCHA validation logic handles the response.

The reCAPTCHA solution can be made much more complex, as websites may add additional security layers, such as extra parameters (datas), or implement sophisticated token verification mechanisms. This click-based method is ideal in cases where bypassing reCAPTCHA using tokens is intentionally complicated or restricted.

reCAPTCHA solve and bypass service

We analyze various captcha bypass services and can recommend the best reCAPTCHA solver based on your tech analysis.

Based on technical testing, 2Captcha is the best service for reCAPTCHA bypass.

   2Capctha service
 reCAPTCHA solver

Thank you for reading! We would appreciate your feedback on services.