recaptchav2

reCAPTCHA v2是什么?

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

reCAPTCHA v2 Demo

最佳reCAPTCHA v2解决方案

Capsolver是绕过reCAPTCHA v2的最便宜和最快速的解决方案。

Capsolver使用基于人工智能的验证码解决算法,具有更快的解决速度和大幅降低的成本,为开发者提供出色的体验。

高度可靠

我们在同类供应商中拥有最快的更新速度。

没有风险

您只需支付已解决的验证码费用。严格的合作审查将禁止任何非法活动。

利用人工智能技术驱动

我们使用人工智能进行全自动验证码解决。

兼容性

Capsolver与常见的手动验证码识别服务的API兼容。

多样化解决方案

Capsolver提供API服务和Chrome扩展。

值得信赖

超过1000个平台已经集成了我们的API。

使用Capsolver解决验证码问题的方法如下:

在使用Capsolver服务后,当用户遇到验证码问题时,他们向Capsolver发送请求。收到相应验证码问题的请求后,Capsolver会高效快速地为用户解决验证码问题。

</> reCAPTCHA v2 解决方案API:

(在github上有更多第三方库)
解决方案价格
reCAPTCHA v2

ReCaptchaV2Task

ReCaptchaV2TaskProxyLess

$0.8/1000 requests
$0.4/1000 images
reCAPTCHA v2 Enterprise

ReCaptchaV2EnterpriseTask

ReCaptchaV2EnterpriseTaskProxyLes

$1/1000 requests
$0.4/1000 images

如何绕过reCAPTCHA v2-API指南

Capsolver自动验证码解决服务可以轻松绕过reCAPTCHA v2。Capsolver提供两种验证码解决服务,帮助您解决reCAPTCHA v2。

其中之一的服务是使用 Capsolver's API 另一个服务是在Chrome中下载 扩展程序 在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:

{
  "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:

{
  "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:

{
  "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"
}

使用Capsolver SDK解决reCAPTCHA v2

支持的常见验证码类型

轻松使用Capsolver绕过验证码

我们确保将我们的产品无缝集成到您的网络爬虫基础设施中。多语言支持和现成的代码示例,确保您的网络爬虫项目能够快速轻松地启动。

开发者文档

#pip install --upgrade capsolver
#export CAPSOLVER_API_KEY='...'

import capsolver
# capsolver.api_key = "..."
solution = capsolver.solve({
            "type": "ReCaptchaV2TaskProxyLess",
            "websiteURL": "https://www.google.com/recaptcha/api2/demo",
            "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
          })
package main

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

func main() {
    // first you need to install sdk
    //go get github.com/capsolver/capsolver-go
    //export CAPSOLVER_API_KEY='...' or
    //capSolver := CapSolver{ApiKey:"..."}

    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)
}

如何绕过reCAPTCHA v2-拓展程序

Captcha Solving Extension supported in Chrome and Firefox browsers
我们的浏览器扩展允许您自动解决图像识别或光学字符识别(OCR)问题。

包括 reCAPTCHA v2、v3、hCaptcha、FunCaptcha、Cloudflare Turnstile、AWS WAF 等多种类型。

hCaptcha
reCAPTCHA
FunCaptcha
Cloudflare
Aws
More types

免费试用

识别其他15种验证码类型
I'M NOT A ROBOT