UNLOCK API

Cloudflare 챌린지 페이지 풀이 API

Cloudflare 챌린지 페이지 작업을 API로 보내면, 코드가 페이지에 제출할 답을 돌려받아요. 보내는 것: 챌린지가 나오는 페이지 주소, 쓰는 user agent, 프록시. 받는 것: cf_clearance 쿠키.

한눈에 보기

1,000건당 가격
$0.725 (1건당 $0.000725)
createTask 이름
AntiCloudflareTask
in.php 방식
cloudflare_challenge
보내는 것
챌린지가 나오는 페이지 주소, 쓰는 user agent, 프록시
받는 것
cf_clearance 쿠키

값을 찾는 곳

Cloudflare 전체 화면 확인 페이지예요. 쿠키는 보낸 것과 같은 프록시 IP와 user agent에서만 통해요.

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": "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"])

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")

전체 API 안내: 모든 항목과 solution 객체