UNLOCK API

Cloudflare Challenge पेज सॉल्विंग API

API को Cloudflare Challenge पेज टास्क भेजें और वह जवाब पाएं जो आपका कोड पेज पर सबमिट करता है। challenge का पेज URL, आपका user agent और एक proxy। आपको मिलता है: एक cf_clearance कुकी।

एक नज़र में

प्रति 1,000 कीमत
$0.725 ($0.000725 प्रति टास्क)
createTask type
AntiCloudflareTask
in.php method
cloudflare_challenge
आप भेजते हैं
challenge का पेज URL, आपका user agent और एक proxy
आपको मिलता है
एक cf_clearance कुकी

वैल्यू कहां मिलेंगी

challenge पेज पूरे पेज वाला Cloudflare चेक है। कुकी सिर्फ उसी proxy IP और user agent के साथ काम करती है जो आप भेजते हैं।

createTask और getTaskResult

टास्क बनाएं, करीब 5 सेकंड रुकें, फिर हर 5 सेकंड में नतीजा चेक करें जब तक status 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": "AntiCloudflareTask",
      "websiteURL": "https://example.com/login",
      "userAgent": "Mozilla/5.0 ...",
      "proxyType": "http",
      "proxyAddress": "1.2.3.4",
      "proxyPort": 8080
    }
}).json()
if task["errorId"]:
    raise SystemExit(task["errorCode"])

while True:
    time.sleep(5)
    r = requests.post(f"{API}/getTaskResult", json={"clientKey": KEY, "taskId": task["taskId"]}).json()
    if r["errorId"]:
        raise SystemExit(r["errorCode"])   # failed tasks are refunded
    if r["status"] == "ready":
        print(r["solution"])
        break

in.php और res.php

वही टास्क, क्लासिक फॉर्म API के साथ। JSON जवाब के लिए json=1 जोड़ें। इसके बिना जवाब सादे टेक्स्ट में आते हैं, जैसे: OK|1001

curl -s "https://unlock-api.com/in.php" -d "key=YOUR_API_KEY&undefined&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"}