Giải recaptcha v2

Endpoint

POST https://api.anticaptcha.pro/v1/createTask

Cá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...

pageurl

string

✔️

Url website cần giải, ví dụ: https://www.google.com/recaptcha/api2/demo

version

string

Version cho task recaptcha, giá trị mặc định: v2

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

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": "v2"
}
'

Kết quả trả về

{
    "success": true,
    "data": {
        "status": "idle",
        "taskId": "add42add-02c3-431b-91ce-e8646bd7eea4" //Bạn cần lưu taskId để có thể lấy kết quả của captcha
    }
}

Last updated