Blog
Bypass reCaptcha v2

Bypass reCaptcha v2

Logo of Capsolver

CapSolver Blogger

How to use capsolver

18-May-2023

Bypassing reCaptcha V2 with CapSolver API

If you're struggling with reCaptcha v2 and need a way to bypass it, this guide is for you. We'll use the CapSolver API to bypass reCaptcha v2 easily. You can either use your own proxies with ReCaptchaV2Task or use the server's built-in proxy with ReCaptchaV2TaskProxyLess.

Creating a Task

To bypass reCaptcha v2, you first need to create a task using the createTask method.

Here's the structure of the task object:

  • type: Required. This should be ReCaptchaV2Task or ReCaptchaV2TaskProxyLess.
  • websiteURL: Required. This is the web address of the website using reCaptcha v2.
  • websiteKey: Required. This is the domain's public key.
  • proxy: Optional. If you're using a proxy, you can include it here.
  • isInvisible: Optional. If the reCaptcha doesn't have pageAction, set this to true.
  • userAgent: Optional. If you're emulating a browser, include its User-Agent here.
  • cookies: Optional. If you need to use cookies, include them here.

Here's an example request:

{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "ReCaptchaV2Task",
    "websiteURL": "site",
    "websiteKey": "site key",
    "isInvisible": false,
    "userAgent": "",
    "cookies": [
      {
        "name": "__Secure-3PSID",
        "value": "sdadasdasdsda"
      },
      {
        "name": "__Secure-3PAPISID",
        "value": "sd/AytXQTb6RUALqxSEL"
      }
    ],
    "proxy": ""
  }
}

Once the task is successfully submitted, you'll receive a Task ID in the response:

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

Getting Results

Once you have the Task ID, you can use it to retrieve the solution. Submit the Task ID with the getTaskResult method. The results should be ready within an interval of 1s to 10s.

Here's an example request:

{
    "clientKey": "YOUR_API_KEY",
    "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

The response will include the solution token:

{
    "errorId": 0,
    "errorCode": null,
    "errorDescription": null,
    "solution": {
        "userAgent": "xxx", 
        "expireTime": 1671615324290, 
        "gRecaptchaResponse": "3AHJ....." // This is the solution token
    },
    "status": "ready"
}

Bypass reCaptcha v2 with Python:

# Install the CapSolver SDK
# pip install --upgrade capsolver

# Set the CapSolver API key
# export CAPSOLVER_API_KEY='YOUR_API_KEY'

import capsolver
# capsolver.api_key = 'YOUR_API_KEY'

# Solve a reCAPTCHA v2 challenge
solution = capsolver.solve({
    "type": "ReCaptchaV2TaskProxyLess",
    "websiteURL": "site url",
    "websiteKey": "site key",
})

Bypass reCaptcha v2 with GO:

package main

import (
    "fmt"
    capsolver_go "github.com/capsolver/capsolver-go"
    "log"
)

func main() {
    // Install the CapSolver SDK
    // go get github.com/capsolver/capsolver-go

    // Set the CapSolver API key
    // export CAPSOLVER_API_KEY='YOUR_API_KEY'
    // or
    // capSolver := CapSolver{apiKey:"YOUR_API_KEY"}

    capSolver := capsolver_go.CapSolver{}
    solution, err := capSolver.Solve(map[string]any{
        "type": "ReCaptchaV2TaskProxyLess",
        "websiteURL": "https://www.google.com/recaptcha/api2/demo",
        "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
    })
    if err != nil {
        log.Fatal(err)
        return
    }
    fmt.Println(solution)
}

Please replace YOUR_API_KEY with your actual CapSolver API key, and replace the websiteURL and websiteKey with the actual website URL and website key for the reCAPTCHA challenge you are trying to solve

Pricing

For information on pricing, please visit our pricing page.

More Information of how to solve reCaptcha v2

Visit this page

Capsolver Team 💜

More

How identify and obtain reCaptcha 's' data
How identify and obtain reCaptcha 's' data

Learn to identify and obtain reCaptcha 's' data for effective captcha solving. Follow our step-by-step guide on using Capsolver's tools and techniques.

reCAPTCHA

21-Nov-2023

What is reCaptcha v3 and how to solve with the highest human score 0.9
What is reCaptcha v3 and how to solve with the highest human score 0.9

In this article we will teach you what reCaptcha v3 is and how to easily solve the reCaptcha v3 with high score (0.7-0.9) using CapSolver.

reCAPTCHA

09-Nov-2023

Wie man jede Version von reCAPTCHA Enterprise v2, v2 invisible, v3, v3 enterprise mit einer Punktzahl von 0,9 umgeht/löst
Wie man jede Version von reCAPTCHA Enterprise v2, v2 invisible, v3, v3 enterprise mit einer Punktzahl von 0,9 umgeht/löst

Das reCAPTCHA Token erhält immer eine ungültige Antwort? Diese Situation tritt normalerweise auf, wenn reCAPTCHA v2 die Enterprise-Version ist, die normalerweise einen 's'-Parameter hat, oder reCAPTCHA v3 Enterprise-Version, die eine hohe Punktzahl von 0.7 oder höher erfordert. Jetzt kann CapSolver dieses Problem perfekt lösen.

reCAPTCHA

09-Nov-2023

How to Solve "Unusual Traffic from Your Computer Network"
How to Solve "Unusual Traffic from Your Computer Network"

Struggling with 'Unusual traffic from your computer network' errors on Google? Our guide explains the triggers and offers solutions to solve captchas, including tips and a look at how CAPSOLVER.COM can streamline your browsing experience by automatically resolving these interruptions.

reCAPTCHA

08-Nov-2023

Làm thế nào để giải quyết reCaptcha v3 và nhận được điểm giống như con người (>0,7-0,9)
Làm cách nào để giải quyết reCaptcha v3 và đạt điểm cao (>0.7–0.9)

Trong hướng dẫn sắp tới, chúng tôi sẽ làm sáng tỏ quá trình dễ dàng vượt qua reCaptcha v3 và đạt được điểm số giống như con người bằng cách sử dụng một công cụ sáng tạo có tên CapSolver. Đối với giáo dân, reCaptcha v3 là một giải pháp bảo mật hiện đại được cung cấp bởi Google được thiết kế để bảo vệ các trang web khỏi bot mà không cần sự tương tác của người dùng. Không giống như các phiên bản trước, reCaptcha v3 trả về một điểm dự đoán liệu tương tác đến từ con người hay robot, thay vì đưa ra một thách thức cần được giải quyết. Mặc dù trực quan và hiệu quả, công cụ đôi khi đặt ra những thách thức không lường trước được cho người dùng hợp pháp, ảnh hưởng đến sự trôi chảy của trải nghiệm kỹ thuật số của họ. Đây là nơi CapSolver hoạt động. CapSolver là một công cụ phức tạp được thiết kế để giúp người dùng duyệt reCaptcha v3 liền mạch. Nó được thiết kế đặc biệt để tương tác với reCaptcha theo cách bắt chước hành vi của con người, do đó đảm bảo điểm số giống như con người. Với CapSolver, bạn có thể đảm bảo trải nghiệm trực tuyến mượt mà hơn, không bị chậm trễ hoặc gián đoạn thường liên quan đến CAPTCHA. Với bài viết này, chúng tôi sẽ hướng dẫn bạn từng bước phá vỡ các thuật ngữ kỹ thuật phức tạp thành các khái niệm dễ hiểu. Chúng tôi muốn cung cấp một cái nhìn toàn diện về cách sử dụng CapSolver hiệu quả, đảm bảo rằng bạn có thể vượt qua reCaptcha v3 tương đối dễ dàng. Hãy nhớ rằng hướng dẫn này được thiết kế để giúp người dùng hợp pháp điều hướng thông suốt reCaptcha v3 và không bao giờ hỗ trợ bất kỳ hình thức hoạt động phi đạo đức hoặc nỗ lực làm suy yếu an ninh của trang web. Vì vậy, cho dù bạn là một navigator chuyên nghiệp trong lĩnh vực kỹ thuật số hay người dùng Internet trung bình, biết reCaptcha v3 và học cách sử dụng các công cụ như CapSolver có thể tăng cường đáng kể khả năng điều hướng trực tuyến của bạn. Đi sâu vào chủ đề hấp dẫn này với chúng tôi để cung cấp cho bạn những kỹ năng vô giá trong hành trình kỹ thuật số của bạn.

reCAPTCHA

07-Nov-2023

Solve reCaptcha v2 invisible - Explained
Solve reCaptcha v2 invisible - Explained

Master solving reCaptcha v2 invisible with Capsolver: Precise identification and effective resolution for optimizing your automated processes

reCAPTCHA

06-Nov-2023