UNLOCK API
atbCAPTCHA

atbCAPTCHA

createTask या in.php से UNLOCK API को atbCAPTCHA टास्क कैसे भेजें: टास्क टाइप के नाम, हर पैरामीटर, solution ऑब्जेक्ट, proxy फील्ड और 7 भाषाओं में कोड उदाहरण।
कीमत
$0.725 $0.000725 प्रति टास्क
आप भेजते हैं
पेज URL, app id और विजेट का API सर्वर
आपको मिलता है
atbCAPTCHA फील्ड के लिए token

ओवरव्यू और कीमत

टास्क टाइप के नाम

बिना proxy के हल करने के लिए पहला नाम इस्तेमाल करें। अपने proxy से हल करने के लिए दूसरा नाम इस्तेमाल करें और proxy फील्ड जोड़ें। कीमत वही है।
AtbCaptchaTaskProxylessबिना प्रॉक्सी
AtbCaptchaTaskआपके प्रॉक्सी से

टास्क ऑब्जेक्ट

type
Stringज़रूरी
टास्क टाइप का नाम। किसी भी letter case में मिलाया जाता है। AtbCaptchaTaskProxyless | AtbCaptchaTask
websiteURL
Stringज़रूरी
उस पेज का पूरा एड्रेस जहां CAPTCHA दिखता है, http:// या https:// से शुरू।
appId
Stringज़रूरी
विजेट की app id, पेज सोर्स से।
apiServer
Stringज़रूरी
विजेट जिस API सर्वर एड्रेस का इस्तेमाल करता है, पेज सोर्स से।

जो फील्ड यहां नहीं दिए गए, वे जैसे भेजे गए वैसे ही सॉल्वर को दिए जाते हैं।

Proxy फील्ड

सिर्फ proxy वाले टाइप नाम के लिए। अलग-अलग फील्ड भेजें या एक proxy स्ट्रिंग।
proxyType
Stringज़रूरी
http, https, socks4 या socks5।
proxyAddress
Stringज़रूरी
Proxy का IP एड्रेस या होस्ट नाम।
proxyPort
Integerज़रूरी
Proxy पोर्ट।
proxyLogin
Stringवैकल्पिक
Proxy यूज़र नेम, अगर proxy को चाहिए।
proxyPassword
Stringवैकल्पिक
Proxy पासवर्ड, अगर proxy को चाहिए।
proxy
String
सभी proxy फील्ड एक स्ट्रिंग में, जैसे http://user:pass@1.2.3.4:8080।

Proxy का इस्तेमाल

रिक्वेस्ट

POST /createTask
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AtbCaptchaTaskProxyless",
    "websiteURL": "https://example.com/login",
    "appId": "af25e409b33d722a95e56a230ff8771c",
    "apiServer": "https://cap.aisecurius.com"
  }
}

Solution ऑब्जेक्ट

status ready होने पर solution में लौटाया जाता है।
token
String
पेज फॉर्म के साथ सबमिट करने वाला token।
POST /getTaskResult
{
  "errorId": 0,
  "taskId": 1001,
  "status": "ready",
  "solution": {
    "token": "sl191suxzluwxxh6f:"
  },
  "cost": "0.000725",
  "createTime": 1791640000,
  "endTime": 1791640014,
  "solveCount": 1
}

कोड उदाहरण

import time, requests

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

task = requests.post(f"{API}/createTask", json={
    "clientKey": KEY,
    "task": {
      "type": "AtbCaptchaTaskProxyless",
      "websiteURL": "https://example.com/login",
      "appId": "af25e409b33d722a95e56a230ff8771c",
      "apiServer": "https://cap.aisecurius.com"
    }
}).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"]["token"])
        break
else:
    raise SystemExit("timed out")

in.php फॉर्म मेथड

वही टास्क क्लासिक फॉर्म रिक्वेस्ट से। res.php जवाब टेक्स्ट के रूप में लौटाता है।
in.php, res.php
curl -s "https://unlock-api.com/in.php" -d "key=YOUR_API_KEY&method=atb_captcha&appId=APP_ID&apiServer=https://cap.aisecurius.com&pageurl=https://example.com/login&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: in.php और res.php