Giải recaptcha v3
Endpoint
POST https://api.anticaptcha.pro/v1/createTaskCác tham số body
Tên trường
Kiểu dữ liệu
Bắt buộc
Mô tả
apiKey
string
✔️
Api key sử dụng dịch vụ
method
string
✔️
Giá trị recaptcha
sitekey
string
✔️
Sitekey của website cần giải, bắt đầu bằng 6L...
version
string
Version cho task recaptcha, giá trị mặc định: v3
enterprise
boolean
Nếu element có chứa enterprise.js bạn cần truyền giá trị true, giá trị mặc định: false
invisible
boolean
Kiểm tra trong iframe nếu có &size=invisible thì cần truyền true, giá trị mặc định: false
data-s
string
Giá trị s parameter dành cho enterprise
action
string
Giá trị action parameter dành cho Recaptcha v3
Request mẫu
curl --location 'https://api.anticaptcha.pro/v1/createTask' \
--header 'Content-Type: application/json' \
--data '{
"apiKey": "T8B13MX-ABCDEFG-Q0XNP00-NYKJM4N",
"method": "recaptcha",
"sitekey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"pageurl": "https://www.google.com/recaptcha/api2/demo",
"version": "v3"
}
'const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"apiKey": "T8B13MX-ABCDEFG-Q0XNP00-NYKJM4N",
"method": "recaptcha",
"sitekey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"pageurl": "https://www.google.com/recaptcha/api2/demo",
"version": "v3"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://api.anticaptcha.pro/v1/createTask", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Kết quả trả về
Last updated