UNLOCK API

API giải VK Captcha

Gửi tác vụ VK Captcha tới API và nhận về kết quả để code của bạn gửi lên trang. URL trang và các tham số captcha của VK. Bạn nhận: Token cho form VK.

Tóm tắt

Giá cho 1.000 lượt
$0.725 ($0.000725 mỗi tác vụ)
Loại createTask
VKCaptchaTaskProxyless, VKCaptchaTask
Phương thức in.php
vkcaptcha
Bạn gửi
URL trang và các tham số captcha của VK
Bạn nhận
Token cho form VK

Tìm các giá trị ở đâu

Gửi các giá trị mà request captcha của VK mang theo trên trang.

createTask và getTaskResult

Tạo nhiệm vụ, chờ khoảng 5 giây, sau đó kiểm tra kết quả mỗi 5 giây cho đến khi trạng thái là sẵn sàng. Nếu nhiệm vụ thất bại, API sẽ trả về lỗi và phí sẽ được hoàn lại vào số dư của bạn.

import time, requests

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

task = requests.post(f"{API}/createTask", json={
    "clientKey": KEY,
    "task": {
      "type": "VKCaptchaTaskProxyless",
      "websiteURL": "https://example.com/login",
      "redirectUri": "https://id.vk.com/not_robot_captcha?...",
      "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"]["token"])
        break
else:
    raise SystemExit("timed out")

in.php và res.php

Cùng tác vụ đó với API form kiểu cũ. Thêm json=1 để nhận phản hồi JSON; nếu không, phản hồi là văn bản thuần như OK|1001.

curl -s "https://unlock-api.com/in.php" -d "key=YOUR_API_KEY&method=vkcaptcha&redirectUri=REDIRECT_URI&userAgent=UA&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"}

Tài liệu API đầy đủ: mọi tham số và object solution