ओवरव्यू
JSON मेथड
Token टास्क
- reCAPTCHA v2
- reCAPTCHA v2 Enterprise
- reCAPTCHA v3
- Cloudflare Turnstile
- GeeTest v3 / v4
- FunCaptcha (Arkose Labs)
- Amazon AWS WAF
- MTCaptcha
- Friendly Captcha
- Lemin Cropped Captcha
- DataDome
- KeyCaptcha
- Capy Puzzle
- Cloudflare Challenge पेज
- Cutcaptcha
- CyberSiARA
- atbCAPTCHA
- Tencent Captcha
- Prosopo Procaptcha
- CaptchaFox
- Altcha
- NetEase Yidun
- Yandex SmartCaptcha
- VK Captcha
- Binance Captcha
- कस्टम टास्क (Imperva, Temu और दूसरे)
UNLOCK API डॉक्यूमेंटेशन
CAPTCHA को टास्क के रूप में भेजें, फिर जवाब लें। API वही मेथड नाम, टास्क नाम और एरर कोड इस्तेमाल करता है जो दूसरे सॉल्वर API करते हैं, इसलिए होस्ट और key बदलने के बाद ज़्यादातर मौजूदा कोड चल जाता है।
रिक्वेस्ट कैसे काम करती है
- 1
createTaskटास्क बनाएं
POST /createTask अपनी की और एक टास्क ऑब्जेक्ट के साथ। आपको एक taskId मिलता है। कीमत अभी आपके क्रेडिट से ले ली जाती है।
- 2
getTaskResultनतीजा चेक करें
करीब 5 सेकंड रुकें, फिर हर 5 सेकंड में /getTaskResult पर POST करें जब तक status ready न हो जाए।
- 3
solutionजवाब इस्तेमाल करें
सॉल्यूशन से टोकन या टेक्स्ट को पेज फॉर्म में डालें। अगर टास्क फेल होता है, तो चार्ज आपके क्रेडिट में वापस आ जाता है।
बुनियादी बातें
- Base URL
https://unlock-api.com- API key
- 32 कैरेक्टर, आपके अकाउंट पेज पर। इसे clientKey (JSON) या key (in.php, res.php) के रूप में भेजें।
- फॉर्मेट
- JSON मेथड: JSON body के साथ POST। in.php और res.php: GET या POST फॉर्म फील्ड; JSON जवाब के लिए json=1 जोड़ें।
- सीमाएं
- हर अकाउंट के लिए प्रति मिनट 1,200 रिक्वेस्ट, नतीजा चेक करना भी शामिल। टास्क बनाने के बाद करीब 5 सेकंड रुकें, फिर हर 5 सेकंड में चेक करें।
- समय सीमा
- 5 मिनट के अंदर सॉल्व न होने वाला टास्क ERROR_CAPTCHA_UNSOLVABLE के साथ फेल होता है और इसका चार्ज आपके क्रेडिट में वापस आ जाता है।
- बिलिंग
- टास्क की कीमत टास्क बनाते समय कटती है। फेल हुए टास्क का पैसा अपने आप वापस आता है।
क्विक स्टार्ट
JSON मेथड से reCAPTCHA v2 हल करें। YOUR_API_KEY की जगह अपनी 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")const API = "https://unlock-api.com";
const KEY = "YOUR_API_KEY";
const post = (path, body) => fetch(API + path, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify(body) }).then((r) => r.json());
const task = await post("/createTask", {
clientKey: KEY,
task: {
"type": "RecaptchaV2TaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "6LcR_RsTAAAAAFJR_5ZdbQd0SMxL7yIDmSXH1-lo"
},
});
if (task.errorId) throw new Error(task.errorCode);
let solution = null;
for (let n = 0; n < 60 && !solution; n++) { // 60 x 5 s = the 5 minute task limit
await new Promise((r) => setTimeout(r, 5000));
const r = await post("/getTaskResult", { clientKey: KEY, taskId: task.taskId });
if (r.errorId) throw new Error(r.errorCode + ": " + r.errorDescription); // failed tasks are refunded
if (r.status === "ready") solution = r.solution;
}
if (!solution) throw new Error("timed out");
console.log(solution.gRecaptchaResponse);<?php
$api = "https://unlock-api.com";
$key = "YOUR_API_KEY";
function post($url, $body) {
$c = curl_init($url);
curl_setopt_array($c, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Content-Type: application/json"], CURLOPT_POSTFIELDS => json_encode($body)]);
return json_decode(curl_exec($c), true);
}
$task = post("$api/createTask", ["clientKey" => $key, "task" => json_decode('{"type":"RecaptchaV2TaskProxyless","websiteURL":"https://example.com/login","websiteKey":"6LcR_RsTAAAAAFJR_5ZdbQd0SMxL7yIDmSXH1-lo"}', true)]);
if ($task["errorId"]) exit($task["errorCode"]);
for ($n = 0; $n < 60; $n++) { // 60 x 5 s = the 5 minute task limit
sleep(5);
$r = post("$api/getTaskResult", ["clientKey" => $key, "taskId" => $task["taskId"]]);
if ($r["errorId"]) exit($r["errorCode"] . ": " . $r["errorDescription"]); // failed tasks are refunded
if ($r["status"] === "ready") break;
}
if ($r["status"] !== "ready") exit("timed out");
print_r($r["solution"]["gRecaptchaResponse"]);package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"time"
)
const api = "https://unlock-api.com"
const key = "YOUR_API_KEY"
func post(method string, body map[string]any) map[string]any {
b, _ := json.Marshal(body)
res, err := http.Post(api+"/"+method, "application/json", bytes.NewReader(b))
if err != nil {
panic(err)
}
defer res.Body.Close()
var out map[string]any
json.NewDecoder(res.Body).Decode(&out)
return out
}
func main() {
task := post("createTask", map[string]any{
"clientKey": key,
"task": map[string]any{
"type": "RecaptchaV2TaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "6LcR_RsTAAAAAFJR_5ZdbQd0SMxL7yIDmSXH1-lo",
},
})
if task["errorId"].(float64) != 0 {
panic(task["errorCode"])
}
for n := 0; n < 60; n++ { // 60 x 5 s = the 5 minute task limit
time.Sleep(5 * time.Second)
r := post("getTaskResult", map[string]any{"clientKey": key, "taskId": task["taskId"]})
if r["errorId"].(float64) != 0 {
panic(r["errorCode"]) // failed tasks are refunded
}
if r["status"] == "ready" {
fmt.Println(r["solution"])
return
}
}
panic("timed out")
}import java.net.URI;
import java.net.http.*;
import java.util.regex.*;
public class Solve {
static final String API = "https://unlock-api.com", KEY = "YOUR_API_KEY";
static final HttpClient HTTP = HttpClient.newHttpClient();
static String post(String method, String json) throws Exception {
var req = HttpRequest.newBuilder(URI.create(API + "/" + method))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(json)).build();
return HTTP.send(req, HttpResponse.BodyHandlers.ofString()).body();
}
public static void main(String[] args) throws Exception {
String task = "{\"type\":\"RecaptchaV2TaskProxyless\",\"websiteURL\":\"https://example.com/login\",\"websiteKey\":\"6LcR_RsTAAAAAFJR_5ZdbQd0SMxL7yIDmSXH1-lo\"}";
String created = post("createTask", "{\"clientKey\":\"" + KEY + "\",\"task\":" + task + "}");
Matcher id = Pattern.compile("\"taskId\":(\\d+)").matcher(created);
if (!id.find()) throw new RuntimeException(created);
for (int n = 0; n < 60; n++) { // 60 x 5 s = the 5 minute task limit
Thread.sleep(5000);
String r = post("getTaskResult", "{\"clientKey\":\"" + KEY + "\",\"taskId\":" + id.group(1) + "}");
if (r.contains("\"errorId\":1")) throw new RuntimeException(r); // failed tasks are refunded
if (r.contains("\"status\":\"ready\"")) { System.out.println(r); return; }
}
throw new RuntimeException("timed out");
}
}using System.Net.Http.Json;
using System.Text.Json;
const string Api = "https://unlock-api.com";
const string Key = "YOUR_API_KEY";
var http = new HttpClient();
async Task<JsonElement> Post(string method, object body) =>
await (await http.PostAsJsonAsync($"{Api}/{method}", body)).Content.ReadFromJsonAsync<JsonElement>();
var task = await Post("createTask", new {
clientKey = Key,
task = JsonSerializer.Deserialize<JsonElement>("""
{"type":"RecaptchaV2TaskProxyless","websiteURL":"https://example.com/login","websiteKey":"6LcR_RsTAAAAAFJR_5ZdbQd0SMxL7yIDmSXH1-lo"}
""")
});
if (task.GetProperty("errorId").GetInt32() != 0) throw new Exception(task.GetProperty("errorCode").GetString());
for (var n = 0; n < 60; n++) { // 60 x 5 s = the 5 minute task limit
await Task.Delay(5000);
var r = await Post("getTaskResult", new { clientKey = Key, taskId = task.GetProperty("taskId").GetInt64() });
if (r.GetProperty("errorId").GetInt32() != 0) throw new Exception(r.GetProperty("errorCode").GetString()); // failed tasks are refunded
if (r.GetProperty("status").GetString() == "ready") { Console.WriteLine(r.GetProperty("solution")); return; }
}
throw new Exception("timed out");curl -s https://unlock-api.com/createTask \
-H "Content-Type: application/json" \
-d '{"clientKey":"YOUR_API_KEY","task":{"type":"RecaptchaV2TaskProxyless","websiteURL":"https://example.com/login","websiteKey":"6LcR_RsTAAAAAFJR_5ZdbQd0SMxL7yIDmSXH1-lo"}}'
# {"errorId":0,"taskId":1001}
curl -s https://unlock-api.com/getTaskResult \
-H "Content-Type: application/json" \
-d '{"clientKey":"YOUR_API_KEY","taskId":1001}'
# {"errorId":0,"status":"processing"} then {"errorId":0,"status":"ready","solution":{...},"cost":"0.001"}मेथड
createTaskएक टास्क बनाता है और उसका id रिटर्न करता है। टास्क टाइप की कीमत टास्क एक्सेप्ट होने पर आपके क्रेडिट से ले ली जाती है, और फेल होने पर वापस आ जाती है।getTaskResultएक टास्क का स्टेट रिटर्न करता है। जब वह सॉल्व हो रहा होता है, तो स्टेटस 'processing' होता है। जब हो जाता है, तो स्टेटस 'ready' होता है और सॉल्यूशन में जवाब होता है। फेल हुआ टास्क एररआईडी 1 के साथ रीजन रिटर्न करता है, और उसका चार्ज पहले ही आपके क्रेडिट में वापस आ चुका होता है।getBalanceअकाउंट पर बचा हुआ क्रेडिट रिटर्न करता है, अमेरिकी डॉलर में।getTokenटास्क बनाता है और उसी रिक्वेस्ट में 50 सेकंड तक जवाब का इंतज़ार करता है। अगर तब तक टास्क पूरा न हो, तो जवाब में status processing और taskId आता है; getTaskResult से चेक करते रहें। getToken टास्क के लिए नतीजे का callback नहीं भेजा जाता।getQueueStatsमौजूदा कतार लौटाता है: इंतज़ार में टास्क, हल हो रहे टास्क और पिछले एक घंटे का औसत हल करने का समय। ये आंकड़े असली टास्क से आते हैं, अनुमान नहीं हैं।getSpendingStatsएक UTC दिन का आपका खर्च घंटे-दर-घंटे लौटाता है: टास्क की संख्या और खर्च हुई रकम। फेल और रिफंड हुए टास्क नहीं गिने जाते।reportCorrect, reportIncorrectसही या गलत जवाब की रिपोर्ट करें। ये कॉल स्वीकार की जाती हैं ताकि मौजूदा लाइब्रेरी चलती रहें; रिपोर्ट से चार्ज नहीं बदलता।testडीबगिंग के लिए echo। मिली हुई JSON body को clientKey के बिना लौटाता है। कोई key जांच नहीं, कोई चार्ज नहीं।
गाइड
- API key और सुरक्षाअपनी key कैसे भेजें, एक से ज़्यादा key कैसे इस्तेमाल करें और सिर्फ अपने सर्वर को कैसे अनुमति दें।
- सीमाएं, समय और बिलिंगरिक्वेस्ट सीमाएं, नतीजे कितनी बार चेक करें, समय सीमा और चार्ज कब लगता है।
- एरर कोडहर एरर कोड, उसका मतलब, क्या करें और चार्ज लगता है या नहीं।
- Proxy का इस्तेमालअपने proxy से कब हल करें और उसे कैसे भेजें।
- नतीजे का callbackनतीजा चेक करने की जगह उसे अपने सर्वर पर पाएं।
- फॉर्म API: in.php और res.phpक्लासिक in.php और res.php रिक्वेस्ट, पुराने सॉल्वर API के लिए लिखे कोड के लिए।
टास्क टाइप
हर टाइप का अपना पेज है जिसमें हर पैरामीटर, solution ऑब्जेक्ट और उदाहरण हैं।
Token टास्क
- reCAPTCHA v2
RecaptchaV2TaskProxylessuserrecaptcha - reCAPTCHA v2 Enterprise
RecaptchaV2EnterpriseTaskProxylessuserrecaptcha, enterprise=1 - reCAPTCHA v3
RecaptchaV3TaskProxylessuserrecaptcha, version=v3 - Cloudflare Turnstile
TurnstileTaskProxylessturnstile - GeeTest v3 / v4
GeeTestTaskProxylessgeetest, geetest_v4 - FunCaptcha (Arkose Labs)
FunCaptchaTaskProxylessfuncaptcha - Amazon AWS WAF
AmazonTaskProxylessamazon_waf - MTCaptcha
MtCaptchaTaskProxylessmt_captcha - Friendly Captcha
FriendlyCaptchaTaskProxylessfriendly_captcha - Lemin Cropped Captcha
LeminTaskProxylesslemin - DataDome
DataDomeSliderTaskdatadome - KeyCaptcha
KeyCaptchaTaskProxylesskeycaptcha - Capy Puzzle
CapyTaskProxylesscapy - Cloudflare Challenge पेज
AntiCloudflareTaskcloudflare_challenge - Cutcaptcha
CutCaptchaTaskProxylesscutcaptcha - CyberSiARA
AntiCyberSiAraTaskProxylesscybersiara - atbCAPTCHA
AtbCaptchaTaskProxylessatb_captcha - Tencent Captcha
TencentTaskProxylesstencent - Prosopo Procaptcha
ProsopoTaskProxylessprosopo - CaptchaFox
CaptchaFoxTaskProxylesscaptchafox - Altcha
AltchaTaskProxylessaltcha - NetEase Yidun
YidunTaskProxylessyidun - Yandex SmartCaptcha
YandexSmartCaptchaTaskProxylessyandex - VK Captcha
VKCaptchaTaskProxylessvkcaptcha - Binance Captcha
BinanceTaskProxylessbinance - कस्टम टास्क (Imperva, Temu और दूसरे)
CustomTaskincapsula, temuimage, hunt, tspd, basilisk
इमेज और ऑडियो टास्क
- इमेज से टेक्स्ट
ImageToTextTaskpost, base64 - टेक्स्ट सवाल
TextCaptchaTasktextcaptcha - इमेज ग्रिड
GridTaskpost, recaptcha=1 - क्लिक कोऑर्डिनेट
CoordinatesTaskpost, coordinatescaptcha=1 - इमेज घुमाना
RotateTaskrotatecaptcha - ऑडियो
AudioTaskaudio - बाउंडिंग बॉक्स
BoundingBoxTaskbounding_box - चारों ओर रेखा खींचना
DrawAroundTaskpost, canvas=1 - ड्रैग एंड ड्रॉप
DragAndDropTask- - जटिल इमेज टास्क
ComplexImageTask-