Light cream colored background for clean website interface.
Light cream colored background for clean website interface.

最佳 reCAPTCHA v2 解决方案

reCAPTCHA v2 验证码解决方案

什么是 reCAPTCHA v2

为了区分人类与机器人,reCAPTCHA v2 要求用户通过点击复选框来验证身份。在某些情况下,它可能还会提示用户从网格中选择特定类型的图像。这种两步验证为网站提供了额外的安全层。

了解更多 reCAPTCHA v2 信息

如何解决 reCAPTCHA v2 - API 指南

CapSolver 自动验证码识别服务可以轻松解决 reCAPTCHA v2,我们的服务可以通过 CapSolver 的 API 和 Chrome 中的 浏览器插件 使用。注册 CapSolver 并获取我们的验证码服务。

Step 1 : Creating a Task

To solve 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:

json Copy
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "ReCaptchaV2Task",
    "websiteURL": "https://www.google.com/recaptcha/api2/demo",
    "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
    "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:

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

Step 2 : 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:

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

The response will include the solution token:

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

使用 CapSolver SDK 解决 reCAPTCHA v2

支持主流验证码

轻松使用 CapSolver 解决验证码

我们确保将我们的产品集成到您的基础设施中尽可能轻松。凭借多语言支持和开箱即用的代码示例,保证您的 Web 项目能够快速轻松地启动。

开发者文档

如何解决
reCAPTCHA v2 -
CapSolver 插件

我们的浏览器插件可自动解决从图像识别到基于 Token 系统的各类验证码挑战。非常适合手动浏览和半自动化工作流。

Soft green gradient backgroundSoft green gradient background
A soft light green-to-white gradient background.

免费试用

识别广泛的验证码类型

reCAPTCHA v2 / v3
Cloudflare Challenge
AWS WAF
图像转文本 (OCR)
Cloudflare Turnstile
更多类型

确保合规监管适用于所有用户

Compliance badges including CCPA, GDPR, and ISO

在我们的核心价值观中,我们倡导合乎道德地使用技术以增进人类福祉,并坚决反对任何非法行为和对我们解决方案的不当使用。我们支持负责任地聚合公开可访问的数据以丰富人类生活,同时强烈谴责在未经适当授权的情况下非法收集敏感数据。如果您发现任何利用我们平台进行不当行为的个人,我们强烈建议您举报此类不端行为。为了增强信任并赋予用户更多的自主权与知识,我们推出了专门的隐私中心,旨在为个人提供更完善的工具和关于其数据权利的深入见解。