UNLOCK API
Overview

UNLOCK API documentation

Send a CAPTCHA as a task, then collect the answer. The API uses the same method names, task names and error codes as other solver APIs, so most existing code works after you change the host and the key.

How a request works

  1. 1createTask

    Create a task

    POST /createTask with your key and a task object. You get a taskId. The price is taken from your credit now.

  2. 2getTaskResult

    Check the result

    Wait about 5 seconds, then POST /getTaskResult every 5 seconds until status is ready.

  3. 3solution

    Use the answer

    Put the token or text from solution into the page form. If the task fails, the charge goes back to your credit.

Basics

Base URL
https://unlock-api.com
API key
32 characters, on your account page. Send it as clientKey (JSON) or key (in.php, res.php).
Format
JSON methods: POST with a JSON body. in.php and res.php: GET or POST form fields; add json=1 for JSON replies.
Limits
1,200 requests per minute per account, result checks included. Wait about 5 seconds after creating a task, then check every 5 seconds.
Time limit
A task not solved within 5 minutes fails with ERROR_CAPTCHA_UNSOLVABLE and its charge returns to your credit.
Billing
The task price is taken when the task is created. Failed tasks are refunded automatically.

Quick start

Solve a reCAPTCHA v2 with the JSON methods. Replace YOUR_API_KEY with your key.
import time, requests

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

task = requests.post(f"{API}/createTask", json={
    "clientKey": KEY,
    "task": {
      "type": "RecaptchaV2TaskProxyless",
      "websiteURL": "https://example.com/login",
      "websiteKey": "6LcR_RsTAAAAAFJR_5ZdbQd0SMxL7yIDmSXH1-lo"
    }
}).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"]["gRecaptchaResponse"])
        break
else:
    raise SystemExit("timed out")

Methods

Guides

Task types

Each type has its own page with every parameter, the solution object and samples.

Token tasks