NeuroCaptcha

Loại tác vụ

reCAPTCHA v2 Enterprise

RecaptchaV2EnterpriseTaskproxy của bạn

reCAPTCHA v2 là ô đánh dấu “Tôi không phải là người máy” và biến thể ẩn của nó. API trả về token gRecaptchaResponse để bạn gửi kèm biểu mẫu của trang.

Biến thể Enterprise: trang web tải enterprise.js và có thể truyền thêm dữ liệu trong enterprisePayload — hãy gửi nguyên trạng.

Với proxy của bạn: tác vụ được giải qua proxy bạn cung cấp, nên token khớp với IP của bạn. Thông tin đăng nhập proxy bị xóa sau khi giải.

Giá

1,50 US$mỗi 1.000 tác vụ

0,0015 US$ mỗi tác vụ

Nhận khóa API

Chỉ số trực tiếp, 24 giờ

Chỉ số trực tiếp cho loại này sẽ xuất hiện trên trang trạng thái sau khi ra mắt.

Tham số tác vụ

Tham sốKiểubắt buộcTham số tác vụ
typestringbắt buộcRecaptchaV2EnterpriseTask
websiteURLstringbắt buộcURL đầy đủ của trang chứa captcha.
websiteKeystringbắt buộcKhóa trang web (data-sitekey hoặc tham số k của yêu cầu anchor).
isInvisiblebooleantùy chọntrue đối với reCAPTCHA v2 ẩn (không có ô đánh dấu).
recaptchaDataSValuestringtùy chọnGiá trị data-s, nếu trang có sử dụng (một số dịch vụ của Google).
enterprisePayloadobjecttùy chọnTham số Enterprise bổ sung, ví dụ s, dưới dạng object.
apiDomainstringtùy chọnTên miền tải widget: google.com hoặc recaptcha.net.
userAgentstringtùy chọnUser-Agent dùng để giải; hãy dùng cùng User-Agent đó khi gửi token.
cookiesstringtùy chọnCookie của trang đích theo định dạng key1=value1; key2=value2.
proxyTypestringbắt buộchttp, socks4 hoặc socks5.
proxyAddressstringbắt buộcĐịa chỉ IP hoặc host của proxy (chỉ địa chỉ công khai).
proxyPortintegerbắt buộcCổng proxy.
proxyLoginstringtùy chọnTên đăng nhập proxy, nếu proxy yêu cầu xác thực.
proxyPasswordstringtùy chọnMật khẩu proxy. Bị xóa sau khi tác vụ được giải.

Ví dụ

import time
import requests

API = "https://"
KEY = "YOUR_API_KEY"

# 1. create a task: the price is held, not charged
task = requests.post(f"{API}/createTask", json={
    "clientKey": KEY,
    "task": {
        "type": "RecaptchaV2EnterpriseTask",
        "websiteURL": "https://example.com/login",
        "websiteKey": "6Le-SITE-KEY",
        "proxyType": "http",
        "proxyAddress": "203.0.113.10",
        "proxyPort": 8080,
        "proxyLogin": "user",
        "proxyPassword": "pass",
    },
}).json()
if task["errorId"]:
    raise RuntimeError(task["errorCode"])

# 2. poll the result (or pass "callbackUrl" and get a signed webhook)
while True:
    time.sleep(3)
    res = requests.post(f"{API}/getTaskResult",
                        json={"clientKey": KEY, "taskId": task["taskId"]}).json()
    if res["errorId"]:
        raise RuntimeError(res["errorCode"])
    if res["status"] == "ready":
        print(res["solution"]["gRecaptchaResponse"])
        break

Các loại tác vụ khác