UNLOCK API
Lemin Cropped Captcha

Lemin Cropped Captcha

วิธีส่งงาน Lemin Cropped Captcha ไปที่ UNLOCK API ด้วย createTask หรือ in.php: ชื่อประเภทงาน พารามิเตอร์ทุกตัว ออบเจ็กต์ solution ฟิลด์ proxy และตัวอย่างโค้ด 7 ภาษา
ราคา
$0.725 $0.000725 ต่องาน
สิ่งที่ส่ง
URL หน้าเว็บ, captcha id และ id ของ div ที่มี widget
สิ่งที่ได้
ค่า answer และ challenge id

ภาพรวมและราคา

ชื่อประเภทงาน

ใช้ชื่อแรกเพื่อแก้โดยไม่ใช้ proxy ใช้ชื่อที่สองและเพิ่มฟิลด์ proxy เพื่อแก้ผ่าน proxy ของคุณเอง ราคาเท่ากัน
LeminTaskProxylessไม่ใช้พร็อกซี
LeminTaskผ่านพร็อกซีของคุณ

ออบเจ็กต์ task

type
Stringจำเป็น
ชื่อประเภทงาน ไม่สนตัวพิมพ์เล็กหรือใหญ่ LeminTaskProxyless | LeminTask
websiteURL
Stringจำเป็น
ที่อยู่เต็มของหน้าที่มี CAPTCHA ขึ้นต้นด้วย http:// หรือ https://
captchaId
Stringจำเป็น
captcha_id จากสคริปต์ Lemin ขึ้นต้นด้วย CROPPED_
divId
Stringจำเป็น
id ของ div ที่มี widget Lemin
leminApiServerSubdomain
Stringไม่บังคับ
เซิร์ฟเวอร์ API ของ Lemin ถ้าหน้าใช้ของตัวเอง
userAgent
Stringไม่บังคับ
User-Agent ของเบราว์เซอร์ที่ใช้ระหว่างแก้ ใช้ค่าเดียวกันเมื่อส่งคำตอบ

ฟิลด์ที่ไม่ได้ระบุไว้ที่นี่จะส่งต่อให้ผู้แก้ตามที่ส่งมา

ฟิลด์ proxy

ใช้กับชื่อประเภทแบบ proxy เท่านั้น ส่งเป็นฟิลด์แยก หรือเป็นสตริง proxy เดียวก็ได้
proxyType
Stringจำเป็น
http, https, socks4 หรือ socks5
proxyAddress
Stringจำเป็น
IP address หรือชื่อโฮสต์ของ proxy
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": "LeminTaskProxyless",
    "websiteURL": "https://example.com/login",
    "captchaId": "CROPPED_3dfdd5c_d1872b526b794d83ba3b365eb15a200b",
    "divId": "lemin-cropped-captcha"
  }
}

ออบเจ็กต์ solution

คืนใน solution เมื่อ status เป็น ready
answer
String
คำตอบที่ต้องส่ง
challenge_id
String
challenge id ของ Lemin ที่ต้องส่งพร้อมคำตอบ
POST /getTaskResult
{
  "errorId": 0,
  "taskId": 1001,
  "status": "ready",
  "solution": {
    "answer": "0xaxakx0xaxaax0xkxx3ox0x3ox3ox...",
    "challenge_id": "e0348984-92ec-4b7f-9a4e-3b8e1f0c2d6a"
  },
  "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": "LeminTaskProxyless",
      "websiteURL": "https://example.com/login",
      "captchaId": "CROPPED_3dfdd5c_d1872b526b794d83ba3b365eb15a200b",
      "divId": "lemin-cropped-captcha"
    }
}).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"])
        break
else:
    raise SystemExit("timed out")

method ฟอร์มของ in.php

งานเดียวกันด้วยคำขอแบบฟอร์มดั้งเดิม res.php คืนคำตอบเป็นข้อความ
in.php, res.php
curl -s "https://unlock-api.com/in.php" -d "key=YOUR_API_KEY&method=lemin&captcha_id=CROPPED_ID&div_id=lemin-cropped-captcha&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"}

Form API: in.php และ res.php