

最佳 reCAPTCHA v3 解决方案
reCAPTCHA v3 验证码解决方案
什么是 reCAPTCHA v3
与用户交互不同,reCAPTCHA v3 会在后台根据用户在网站上的行为计算用户的风险评分。它向网站所有者提供一个分数(0.0 到 1.0),表明用户行为的可疑程度,1.0 极有可能是人类,0.0 极有可能是机器人。
了解更多 reCAPTCHA v3 解决方案信息reCAPTCHA v3 演示
如何解决 reCAPTCHA v3 - API 指南
CapSolver 自动验证码识别服务可以轻松解决 reCAPTCHA v3,我们的服务可以通过 CapSolver 的 API 和 Chrome 中的 浏览器插件 使用。注册 CapSolver 并获取我们的验证码服务。
ReCaptchaV3Task
ReCaptchaV3Task is a task type that requires your own proxies to work. It's ideal for those who have a pool of reliable proxies at their disposal. The usage of personal proxies allows for greater control and customization over the solving process.
python
# pip install --upgrade capsolver
# export CAPSOLVER_API_KEY='...'
import capsolver
# capsolver.api_key = "..."
solution = capsolver.solve({
"type": "ReCaptchaV3Task",
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_kl-",
"proxy":"ip:port:user:pass", ...
})
ReCaptchaV3TaskProxyLess
If you don't have access to proxies or prefer not to use them, ReCaptchaV3TaskProxyLess is a perfect choice. It leverages the server's built-in proxy, making the process more streamlined and user-friendly.
python
# pip install --upgrade capsolver
# export CAPSOLVER_API_KEY='...'
import capsolver
# capsolver.api_key = "..."
solution = capsolver.solve({
"type": "ReCaptchaV3TaskProxyLess",
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_kl-", ...
})
Step 1 : Creating a Task
To start the process, you need to create a recognition task using the createTask method.
Here's an example request:
json
POST https://api.capsolver.com/createTask
{
"clientKey":"YOUR_API_KEY",
"task": {
"type":"ReCaptchaV3Task",
"websiteURL":"https://antcpt.com/score_detector",
"websiteKey":"6LcR_okUAAAAAPYrPe-HK_0RULO1aZM15ENyM-Mf",
"pageAction": "homepage",
"proxy":"yourproxy"
}
}
Once the task is successfully submitted, you'll receive a Task ID in the response:
json
{
"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
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey":"YOUR_API_KEY",
"taskId": "TASKID OF CREATETASK" //ID created by the createTask method
}
The response will include the solution token:
json
{
"errorId": 0,
"errorCode": null,
"errorDescription": null,
"solution": {
"userAgent": "xxx",
"expireTime": 1671615324290,
"gRecaptchaResponse": "3AHJ....."
},
"status": "ready"
}
In the response, 'solution' contains the 'userAgent', the expiration time of the token 'expireTime', and the solution token 'gRecaptchaResponse'. After the captcha has been solved, you can check the captcha token by sending the token to the site, example:
js
var request = require('request');
var options = {
method: 'POST',
url: 'https://antcpt.com/score_detector/verify.php',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ 'g-recaptcha-response': 'here the token of capsolver' }),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
使用 CapSolver SDK 解决 reCAPTCHA v3
支持主流验证码
轻松使用 CapSolver 解决验证码
我们确保将我们的产品集成到您的基础设施中尽可能轻松。凭借多语言支持和开箱即用的代码示例,保证您的 Web 项目能够快速轻松地启动。



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

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

