tên | kiểu | Yêu cầu | Sự miêu tả |
---|---|---|---|
type | Sợi dây | Đúng | RecaptchaV3TaskProxyless |
websiteURL | Sợi dây | Đúng | URL đầy đủ của trang đích để tải Captcha |
websiteKey | Sợi dây | Đúng | Khóa trang web reCAPTCHA. Có thể tìm thấy khóa này trong thuộc tính data-sitekey của phần tử div reCAPTCHA hoặc trong tham số k của yêu cầu tới API reCAPTHCHA. |
pageAction | Sợi dây | KHÔNG | Để biết thêm các tham số, bạn có thể tìm kiếm grecaptcha.execute để tìm các tham số hành động |
apiDomain | Sợi dây | KHÔNG | Tên miền dùng để tải Captcha: google.com hoặc recaptcha.net. Mặc định: google.com |
title | Sợi dây | KHÔNG | tiêu đề trang kích hoạt recaptcha (nhấn f12 để mở bảng điều khiển, sau đó nhập document.title) |
websiteInfo | Sợi dây | KHÔNG | Thông tin chi tiết về trang web mục tiêu hướng dẫn cách lấy dữ liệu này và tối ưu hóa cách tiếp cận của bạn để tăng điểm mã thông báo reCAPTCHA |
Điểm cuối API: https://api.nextcaptcha.com/createTask
phương pháp: POST
Loại nội dung: application/json
{
"clientKey":"api key",
"task": {
"type":"RecaptchaV3TaskProxyless",
"websiteURL":"https://google.com",
"websiteKey":"6LfD3PIbAAAAAJs_eEHvoOl75_83eXSqpPSRFJ_u",
"pageAction":"login",
"proxyType":"http",
"proxyAddress":"your_proxy_address",
"proxyPort":1234,
"proxyLogin":"your_proxy_login",
"proxyPassword":"your_proxy_password"
}
}
{
"errorId": 0,
"status": "ready",
"solution": {
"gRecaptchaResponse": "03AGdBq26gJ8v3Z3J9z3..."
},
"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.recaptchav3(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.RecaptchaV3("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";
string pageAction = ""; // Optional
string apiDomain = ""; // Optional
var result = await nextCaptchaAPI.SolveRecaptchaV3Async(websiteUrl, websiteKey, pageAction, apiDomain);