UNLOCK API

API แก้ DataDome

ส่งงาน DataDome ไปที่ API แล้วรับคำตอบที่โค้ดของคุณส่งให้หน้าเว็บ URL หน้าเว็บ, ที่อยู่ captcha จากคำตอบที่ถูกบล็อก, user agent ของคุณ และ proxy สิ่งที่ได้: คุกกี้ datadome

สรุป

ราคาต่อ 1,000
$0.725 ($0.000725 ต่องาน)
ประเภท createTask
DataDomeSliderTask
method ของ in.php
datadome
สิ่งที่ส่ง
URL หน้าเว็บ, ที่อยู่ captcha จากคำตอบที่ถูกบล็อก, user agent ของคุณ และ proxy
สิ่งที่ได้
คุกกี้ datadome

หาค่าได้ที่ไหน

DataDome ต้องใช้ proxy ของคุณเองและ user agent เดียวกับที่ใช้เปิดเว็บ ส่วน captchaUrl คือที่อยู่ geo.captcha-delivery.com จากหน้าที่ถูกบล็อก

createTask และ getTaskResult

สร้างงาน รอประมาณ 5 วินาที แล้วตรวจผลทุก 5 วินาทีจนสถานะเป็น ready ถ้างานล้มเหลว API จะตอบข้อผิดพลาดและคืนเงินเข้ายอดเงิน

import time, requests

API = "https://unlock-api.com"
KEY = "YOUR_API_KEY"

task = requests.post(f"{API}/createTask", json={
    "clientKey": KEY,
    "task": {
      "type": "DataDomeSliderTask",
      "websiteURL": "https://example.com/login",
      "captchaUrl": "https://geo.captcha-delivery.com/captcha/?initialCid=...",
      "userAgent": "Mozilla/5.0 ...",
      "proxyType": "http",
      "proxyAddress": "1.2.3.4",
      "proxyPort": 8080
    }
}).json()
if task["errorId"]:
    raise SystemExit(task["errorCode"])

for _ in range(60):   # 60 x 5 s = the 5 minute task limit
    time.sleep(5)
    r = requests.post(f"{API}/getTaskResult", json={"clientKey": KEY, "taskId": task["taskId"]}).json()
    if r["errorId"]:
        raise SystemExit(f"{r['errorCode']}: {r.get('errorDescription', '')}")   # failed tasks are refunded
    if r["status"] == "ready":
        print(r["solution"]["cookie"])
        break
else:
    raise SystemExit("timed out")

in.php และ res.php

งานเดียวกันด้วย API แบบฟอร์มดั้งเดิม เพิ่ม json=1 เพื่อรับคำตอบเป็น JSON ถ้าไม่ใส่ คำตอบจะเป็นข้อความธรรมดา เช่น OK|1001

curl -s "https://unlock-api.com/in.php" -d "key=YOUR_API_KEY&method=datadome&captcha_url=CAPTCHA_URL&pageurl=https://example.com/login&userAgent=UA&proxy=login:pass@1.2.3.4:8080&proxytype=HTTP&json=1"
# {"status":1,"request":"1001"}

curl -s "https://unlock-api.com/res.php?key=YOUR_API_KEY&action=get&id=1001&json=1"
# {"status":0,"request":"CAPCHA_NOT_READY"}  then  {"status":1,"request":"ANSWER"}

ข้อมูลอ้างอิง API ฉบับเต็ม: พารามิเตอร์ทุกตัวและออบเจ็กต์ solution