Documentazione API
Le richieste sono in JSON verso un unico indirizzo (https://gatesolver.com). Invia come clientKey la API key creata nella pagina dell'account. Crea un task (createTask) e dopo qualche secondo ottieni il risultato (getTaskResult).
- Indirizzo base
- https://gatesolver.com
- Autenticazione
- clientKey nel body
- Limite di richieste
- 600 al minuto per chiave
- Formato
- JSON (POST)
Inizia ora
- Registrati e ricarica il saldo.
- Crea la chiave dal menu API key nella pagina dell'account. Viene mostrata una sola volta alla creazione.
- Crea un task con createTask e richiama getTaskResult ogni pochi secondi con il taskId ricevuto.
- Quando status diventa ready, inserisci solution nella pagina.
I client costruiti per il formato createTask funzionano così come sono una volta cambiato l'indirizzo API. Nuovo indirizzo: https://gatesolver.com
createTask
POST https://gatesolver.com/createTask
Crea un task e restituisce il taskId. In questa fase non viene addebitato nulla.
| Campo | Formato | Obbligatorio | Descrizione |
|---|---|---|---|
| clientKey | string | Sì | API key |
| task | object | Sì | Contenuto del task. type e campi specifici del tipo (vedi la tabella dei type qui sotto e le pagine dei tipi) |
| callbackUrl | string | No | Non supportato. Il risultato si ottiene con getTaskResult. |
Richiesta
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV2TaskProxyLess",
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
}
}Risposta
{ "errorId": 0, "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006" }getTaskResult
POST https://gatesolver.com/getTaskResult
Restituisce il risultato del task. Per i CAPTCHA a token conviene interrogare ogni 3 secondi, per il riconoscimento immagini ogni 1 secondo. Quando arriva la risposta, il costo di 1 task viene scalato dal saldo.
| Campo | Descrizione |
|---|---|
| status | processing (in attesa), ready (risposta pronta), failed (non riuscito, nessun addebito) |
| solution | Risposta. I campi variano in base al tipo (gRecaptchaResponse, token, cookie, text ecc.) |
| cost | Importo addebitato per questo task (dollari) |
| createTime / endTime | Ora di creazione e di completamento (millisecondi) |
{
"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
Restituisce il saldo in dollari.
{ "clientKey": "YOUR_API_KEY" }
{ "errorId": 0, "balance": 42.5 }type del task
Il nome del type non distingue tra maiuscole e minuscole. Campi ed esempi per ogni tipo sono nella pagina del tipo.
| type | Tipo | 1,000 task |
|---|---|---|
| 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 |
Codici di errore
In caso di errore errorId è 1 e arrivano anche errorCode ed errorDescription. Le risposte di errore non vengono addebitate.
| errorCode | Significato |
|---|---|
| ERROR_KEY_DENIED_ACCESS | clientKey mancante o errata. |
| ERROR_ZERO_BALANCE | Saldo insufficiente. Ricarica e ripeti la richiesta. |
| ERROR_TASK_NOT_SUPPORTED | type di task non supportato. |
| ERROR_INVALID_TASK_DATA | Manca un campo obbligatorio. Il nome del campo mancante è in errorDescription. |
| ERROR_TASKID_INVALID | Il taskId non è stato creato con questa chiave o non esiste. |
| ERROR_CAPTCHA_UNSOLVABLE | Non risolto. Non è stato addebitato nulla. Ripeti la richiesta. |
| ERROR_SERVICE_UNAVAILABLE | Errore di rete. Non è stato addebitato nulla. Riprova tra poco. |
| ERROR_RATE_LIMIT | Superate le 600 richieste al minuto. Aumenta l'intervallo tra le richieste. |
| ERROR_ACCOUNT_SUSPENDED | Questo account è sospeso. |
Compatibile in.php
Per i programmi in stile in.php, basta cambiare l'indirizzo. Metodi supportati: userrecaptcha (reCAPTCHA v2), turnstile, geetest, base64 e post (testo in immagine).
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.50000Aggiungendo json=1 la risposta ha il formato {"status":1,"request":"..."}.
Esempi
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..."}}'