名称 | 类型 | 必须使用的 | 描述 |
---|---|---|---|
type | 字符串 | 是的 | RecaptchaV2EnterpriseTaskProxyless |
websiteURL | 字符串 | 是的 | 加载验证码的目标网页完整 URL |
websiteKey | 字符串 | 是的 | reCAPTCHA 网站密钥。可以在 reCAPTCHA div 元素的 data-sitekey 属性中或向 reCAPTHCHA API 发送请求的 k 参数中找到。 |
pageAction | 字符串 | 否 | 额外的参数,你可以搜索 grecaptcha.execute 找到action参数 |
enterprisePayload | 对象 | 否 | grecaptcha.enterprise.render 中的 s 参数 |
isInvisible | 布尔 | 否 | 对于不可见的 reCAPTCHA 版本,请传递 true - 您看不到复选框,但会出现挑战。大多数情况下与回调函数一起使用 |
apiDomain | 字符串 | 否 | 用于加载验证码的名称:google.com 或 recaptcha.net。默认:google.com |
title | 字符串 | 否 | recaptcha 触发页面标题(按 f12 打开控制台,然后输入标题) |
websiteInfo | 字符串 | 否 | 有关目标网站的详细信息本教程将指导如何获取这些数据,并优化您的方法以提高 reCAPTCHA 令牌分数 |
API 端点: https://api.nextcaptcha.com/createTask
方法: POST
内容类型: application/json
{
"clientKey":"api key",
"task": {
"type":"RecaptchaV2EnterpriseTaskProxyless",
"websiteURL":"https://www.google.com/recaptcha/api2/demo",
"websiteKey":"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"enterprisePayload": { "s": "eyJ0eXAi..." }
}
}
{
"errorId": 0,
"status": "ready",
"solution": {
"gRecaptchaResponse": "03AGdBq26gJ8Yq3z3Zzv"
},
"createTime": 1701234567890,
"endTime": 1701234567890
}
# https://github.com/nextcaptcha/nextcaptcha-python
import os
import sys
from nextcaptcha import NextCaptchaAPI
client_key = os.getenv('NEXTCAPTCHA_KEY', "YOUR_CLIENT_KEY")
api = NextCaptchaAPI(client_key=client_key)
try:
result = api.recaptchav2enterprise(website_url="https://example.com", website_key="SITE_KEY")
except Exception as e:
sys.exit(e)
else:
sys.exit('solved: ' + str(result))
// https://github.com/nextcaptcha/nextcaptcha-go
package main
import (
"fmt"
"log"
"github.com/nextcaptcha/nextcaptcha-go"
)
func main() {
api := nextcaptcha.NewNextCaptchaAPI("API_KEY")
result, err := api.RecaptchaV2Enterprise("https://example.com", "SITE_KEY", nextcaptcha.RecaptchaV3Options{})
if err != nil {
log.Fatal(err);
}
fmt.Println("result "+result)
}
// https://github.com/nextcaptcha/nextcaptcha-csharp
string clientKey = "YOUR_CLIENT_KEY";
string solftId = ""; // Optional
string callbackUrl = ""; // Optional
bool openLog = true; // Optional
var nextCaptchaAPI = new NextCaptchaAPI(clientKey, solftId, callbackUrl, openLog);
string websiteUrl = "https://example.com";
string websiteKey = "YOUR_WEBSITE_KEY";
Dictionary<string, object> enterprisePayload = null; // Optional
bool isInvisible = false; // Optional
string apiDomain = ""; // Optional
var result = await nextCaptchaAPI.SolveRecaptchaV2EnterpriseAsync(websiteUrl, websiteKey, enterprisePayload, isInvisible, apiDomain);