เอกสาร API
คำขอเป็น JSON และใช้ที่อยู่เดียว (https://gatesolver.com) ส่ง API key ที่สร้างในหน้าบัญชีเป็น clientKey สร้างงาน (createTask) แล้วรับผลลัพธ์ในไม่กี่วินาที (getTaskResult)
- ที่อยู่พื้นฐาน
- https://gatesolver.com
- การยืนยันตัวตน
- clientKey ในเนื้อหาคำขอ
- ขีดจำกัดคำขอ
- 600 ครั้งต่อ 1 นาทีต่อคีย์
- รูปแบบ
- JSON (POST)
เริ่มต้นใช้งาน
- สมัครแล้วเติมยอดเงิน
- สร้างคีย์ได้ที่เมนู API key ในหน้าบัญชี คีย์จะแสดงเพียงครั้งเดียวตอนสร้าง
- สร้างงานด้วย createTask แล้วเรียก getTaskResult ด้วย taskId ที่ได้ทุกไม่กี่วินาที
- เมื่อ status เป็น ready ให้นำ solution ไปใส่ในหน้าเว็บ
ไคลเอนต์ที่สร้างสำหรับรูปแบบ createTask ใช้ได้ทันทีเมื่อเปลี่ยนที่อยู่ API ที่อยู่ใหม่: https://gatesolver.com
createTask
POST https://gatesolver.com/createTask
สร้างงานและส่ง taskId กลับไป ขั้นนี้ยังไม่หักเงิน
| ช่อง | รูปแบบ | จำเป็น | คำอธิบาย |
|---|---|---|---|
| clientKey | string | ใช่ | API key |
| task | object | ใช่ | ข้อมูลงาน type และช่องข้อมูลของแต่ละแบบ (ดูตาราง type งานด้านล่างและหน้าของแต่ละแบบ) |
| callbackUrl | string | ไม่ | ไม่รับ ให้รับผลลัพธ์ด้วย getTaskResult |
คำขอ
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV2TaskProxyLess",
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
}
}การตอบกลับ
{ "errorId": 0, "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006" }getTaskResult
POST https://gatesolver.com/getTaskResult
ส่งผลลัพธ์ของงานกลับไป แนะนำให้ถามทุก 3 วินาทีสำหรับแบบโทเค็น และทุก 1 วินาทีสำหรับการจดจำภาพ ค่างาน 1 ครั้งจะหักจากยอดเงินทันทีที่ได้คำตอบ
| ช่อง | คำอธิบาย |
|---|---|
| status | processing (กำลังรอ), ready (ได้คำตอบแล้ว), failed (ล้มเหลว ไม่หักเงิน) |
| solution | คำตอบ ช่องข้อมูลต่างกันตามแบบ (gRecaptchaResponse, token, cookie, text ฯลฯ) |
| cost | จำนวนเงินที่หักสำหรับงานนี้ (ดอลลาร์) |
| createTime / endTime | เวลาที่สร้างและเวลาที่เสร็จ (มิลลิวินาที) |
{
"errorId": 0,
"taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006",
"status": "ready",
"solution": { "gRecaptchaResponse": "03AFcWeA6...", "userAgent": "Mozilla/5.0 ..." },
"cost": "0.000560"
}getBalance
POST https://gatesolver.com/getBalance
ส่งยอดเงินกลับเป็นดอลลาร์
{ "clientKey": "YOUR_API_KEY" }
{ "errorId": 0, "balance": 42.5 }type งาน
ชื่อ type ไม่แยกตัวพิมพ์เล็กใหญ่ ช่องข้อมูลและตัวอย่างของแต่ละแบบอยู่ในหน้าของแบบนั้น
| type | ประเภท | 1,000 ครั้ง |
|---|---|---|
| ReCaptchaV2TaskProxyLess | reCAPTCHA v2 | $0.56 |
| ReCaptchaV2Task | reCAPTCHA v2 | $0.56 |
| ReCaptchaV2EnterpriseTaskProxyLess | reCAPTCHA v2 Enterprise | $0.70 |
| ReCaptchaV2EnterpriseTask | reCAPTCHA v2 Enterprise | $0.70 |
| ReCaptchaV3TaskProxyLess | reCAPTCHA v3 | $0.70 |
| ReCaptchaV3Task | reCAPTCHA v3 | $0.70 |
| ReCaptchaV3EnterpriseTaskProxyLess | reCAPTCHA v3 Enterprise | $2.10 |
| ReCaptchaV3EnterpriseTask | reCAPTCHA v3 Enterprise | $2.10 |
| AntiTurnstileTaskProxyLess | Cloudflare Turnstile | $0.84 |
| TurnstileTaskProxyless | Cloudflare Turnstile | $0.84 |
| AntiCloudflareTask | Cloudflare Challenge | $0.84 |
| AntiAwsWafTaskProxyLess | AWS WAF | $1.40 |
| AntiAwsWafTask | AWS WAF | $1.40 |
| GeeTestTaskProxyLess | GeeTest v3 / v4 | $0.84 |
| GeeTestTask | GeeTest v3 / v4 | $0.84 |
| MtCaptchaTaskProxyLess | MTCaptcha | $2.10 |
| MtCaptchaTask | MTCaptcha | $2.10 |
| DatadomeSliderTask | DataDome Slider | $1.75 |
| ImageToTextTask | Image to Text | $0.28 |
| ReCaptchaV2Classification | reCAPTCHA Image Classification | $0.28 |
| AwsWafClassification | AWS WAF Image Classification | $0.42 |
| VisionEngine | Vision Engine | $1.05 |
รหัสข้อผิดพลาด
เมื่อเกิดข้อผิดพลาด errorId จะเป็น 1 พร้อม errorCode และ errorDescription การตอบกลับที่เป็นข้อผิดพลาดจะไม่ถูกหักเงิน
| errorCode | ความหมาย |
|---|---|
| ERROR_KEY_DENIED_ACCESS | ไม่มี clientKey หรือ clientKey ไม่ถูกต้อง |
| ERROR_ZERO_BALANCE | ยอดเงินไม่พอ กรุณาเติมเงินแล้วส่งคำขออีกครั้ง |
| ERROR_TASK_NOT_SUPPORTED | type งานนี้ไม่รองรับ |
| ERROR_INVALID_TASK_DATA | ขาดช่องที่จำเป็น ชื่อช่องที่ขาดอยู่ใน errorDescription |
| ERROR_TASKID_INVALID | taskId นี้ไม่ได้สร้างด้วยคีย์นี้ หรือไม่มี taskId นี้ |
| ERROR_CAPTCHA_UNSOLVABLE | แก้ไม่ได้ ไม่มีการหักเงิน กรุณาส่งคำขออีกครั้ง |
| ERROR_SERVICE_UNAVAILABLE | ข้อผิดพลาดเครือข่าย ไม่มีการหักเงิน กรุณาส่งคำขออีกครั้งในอีกสักครู่ |
| ERROR_RATE_LIMIT | เกิน 600 ครั้งต่อ 1 นาทีแล้ว กรุณาเว้นระยะคำขอให้นานขึ้น |
| ERROR_ACCOUNT_SUSPENDED | บัญชีนี้ถูกระงับ |
รองรับ in.php
สำหรับโปรแกรมแบบ in.php แค่เปลี่ยนที่อยู่ก็ใช้ได้ method ที่รองรับ: userrecaptcha (reCAPTCHA v2), turnstile, geetest, base64 และ post (ตัวอักษรในภาพ)
GET https://gatesolver.com/in.php?key=YOUR_API_KEY&method=userrecaptcha&googlekey=6Le...&pageurl=https://example.com
OK|61138bb6-19fb-11ec-a9c8-0242ac110006
GET https://gatesolver.com/res.php?key=YOUR_API_KEY&action=get&id=61138bb6-19fb-11ec-a9c8-0242ac110006
CAPCHA_NOT_READY
OK|03AFcWeA6...
GET https://gatesolver.com/res.php?key=YOUR_API_KEY&action=getbalance
42.50000เพิ่ม json=1 เพื่อรับคำตอบในรูปแบบ {"status":1,"request":"..."}
ตัวอย่าง
import requests, time
API, KEY = "https://gatesolver.com", "YOUR_API_KEY"
def solve(task, wait=3, timeout=120):
r = requests.post(f"{API}/createTask", json={"clientKey": KEY, "task": task}, timeout=30).json()
if r.get("errorId"):
raise RuntimeError(r["errorCode"])
end = time.time() + timeout
while time.time() < end:
time.sleep(wait)
res = requests.post(f"{API}/getTaskResult", json={"clientKey": KEY, "taskId": r["taskId"]}, timeout=30).json()
if res.get("errorId"):
raise RuntimeError(res["errorCode"])
if res["status"] == "ready":
return res["solution"]
raise TimeoutError("task timed out")
print(solve({"type": "ReCaptchaV2TaskProxyLess", "websiteURL": "https://example.com", "websiteKey": "6Le..."}))const API = "https://gatesolver.com", KEY = "YOUR_API_KEY";
const post = (p, b) => fetch(API + p, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify(b) }).then((r) => r.json());
export async function solve(task, wait = 3000) {
const r = await post("/createTask", { clientKey: KEY, task });
if (r.errorId) throw new Error(r.errorCode);
for (;;) {
await new Promise((s) => setTimeout(s, wait));
const res = await post("/getTaskResult", { clientKey: KEY, taskId: r.taskId });
if (res.errorId) throw new Error(res.errorCode);
if (res.status === "ready") return res.solution;
}
}body, _ := json.Marshal(map[string]any{"clientKey": "YOUR_API_KEY", "task": map[string]any{
"type": "AntiTurnstileTaskProxyLess", "websiteURL": "https://example.com", "websiteKey": "0x4AAAAAAA..."}})
res, err := http.Post("https://gatesolver.com/createTask", "application/json", bytes.NewReader(body))$ch = curl_init("https://gatesolver.com/createTask");
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode(["clientKey" => "YOUR_API_KEY", "task" => [
"type" => "ReCaptchaV3TaskProxyLess", "websiteURL" => "https://example.com", "websiteKey" => "6Lc...", "pageAction" => "login"]])]);
$task = json_decode(curl_exec($ch), true);curl -X POST https://gatesolver.com/createTask -H "Content-Type: application/json" \
-d '{"clientKey":"YOUR_API_KEY","task":{"type":"ImageToTextTask","body":"iVBORw0KGgo..."}}'