UNLOCK API

VK Captcha 풀이 API

VK Captcha 작업을 API로 보내면, 코드가 페이지에 제출할 답을 돌려받아요. 보내는 것: 페이지 주소와 VK 캡차 값. 받는 것: VK 양식에 넣을 토큰.

한눈에 보기

1,000건당 가격
$0.725 (1건당 $0.000725)
createTask 이름
VKCaptchaTaskProxyless, VKCaptchaTask
in.php 방식
vkcaptcha
보내는 것
페이지 주소와 VK 캡차 값
받는 것
VK 양식에 넣을 토큰

값을 찾는 곳

페이지에서 VK 캡차 요청에 실리는 값을 보내세요.

createTask와 getTaskResult

작업을 만들고 5초쯤 기다린 뒤, 상태가 ready가 될 때까지 5초마다 결과를 확인하세요. 작업이 실패하면 API가 오류로 답하고 비용은 잔액으로 돌아와요.

import time, requests

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

task = requests.post(f"{API}/createTask", json={
  "clientKey": KEY,
  "task": {
      "type": "VKCaptchaTaskProxyless",
      "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"])

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"]["token"])
        break

in.php와 res.php

같은 작업을 예전 폼 방식 API로 보내는 예시예요. json=1을 붙이면 JSON으로, 빼면 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"}