Giải captcha hình ảnh
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ị image
body
string
✔️
chuỗi base64 của hình ảnh, ví dụ: iVBORw0KGgoAAAANSUhEUgAAAPIA...
version
string
Version cho task image, giá trị mặc định: default , click vào đây để xem các version hỗ trợ
Request mẫu
curl --location 'https://api.anticaptcha.pro/v1/createTask' \
--header 'Content-Type: application/json' \
--data '{
"apiKey": "T8B13MX-ABCDEFG-Q0XNP00-NYKJM4N",
"method": "image",
"version": "default",
"body": "<BASE64_IMAGE>"
}'const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"apiKey": "T8B13MX-ABCDEFG-Q0XNP00-NYKJM4N",
"method": "image",
"version": "default",
"body": "<BASE64_IMAGE>"
});
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