Documentação da API
As requisições são em JSON e há um único endereço (https://gatesolver.com). Envie como clientKey a chave de API criada na tela da conta. Crie a tarefa (createTask) e, alguns segundos depois, obtenha o resultado (getTaskResult).
- Endereço base
- https://gatesolver.com
- Autenticação
- clientKey no corpo
- Limite de requisições
- 600 por minuto por chave
- Formato
- JSON (POST)
Começar
- Cadastre-se e recarregue o saldo.
- Crie a chave no menu Chave de API da tela da conta. A chave aparece só uma vez, na criação.
- Crie a tarefa com createTask e chame getTaskResult com o taskId recebido a cada poucos segundos.
- Quando o status virar ready, insira a solution na página.
Clientes feitos para o formato createTask funcionam como estão, bastando trocar o endereço da API. Novo endereço: https://gatesolver.com
createTask
POST https://gatesolver.com/createTask
Cria a tarefa e devolve o taskId. Nada é cobrado nesta etapa.
| Campo | Formato | Obrigatório | Descrição |
|---|---|---|---|
| clientKey | string | Sim | Chave de API |
| task | object | Sim | Conteúdo da tarefa: type e os campos de cada tipo (veja a tabela de types abaixo e a página de cada tipo) |
| callbackUrl | string | Não | Não aceitamos. Obtenha o resultado com getTaskResult. |
Requisição
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV2TaskProxyLess",
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
}
}Resposta
{ "errorId": 0, "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006" }getTaskResult
POST https://gatesolver.com/getTaskResult
Devolve o resultado da tarefa. Recomendamos consultar a cada 3 segundos para CAPTCHAs de token e a cada 1 segundo para reconhecimento de imagem. O valor de 1 tarefa sai do saldo no momento em que a resposta fica pronta.
| Campo | Descrição |
|---|---|
| status | processing (aguardando), ready (resposta pronta), failed (falhou, sem cobrança) |
| solution | Resposta. Os campos variam por tipo (gRecaptchaResponse, token, cookie, text etc.) |
| cost | Valor cobrado por esta tarefa (dólares) |
| createTime / endTime | Horário de criação e de conclusão (milissegundos) |
{
"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
Devolve o saldo em dólares.
{ "clientKey": "YOUR_API_KEY" }
{ "errorId": 0, "balance": 42.5 }type da tarefa
O nome do type não diferencia maiúsculas de minúsculas. Os campos e exemplos de cada tipo estão na página de cada tipo.
| type | Tipo | 1,000 tarefas |
|---|---|---|
| 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 |
Códigos de erro
Em caso de erro, errorId vem como 1, junto com errorCode e errorDescription. Respostas de erro não são cobradas.
| errorCode | Significado |
|---|---|
| ERROR_KEY_DENIED_ACCESS | clientKey ausente ou inválida. |
| ERROR_ZERO_BALANCE | Saldo insuficiente. Recarregue e tente novamente. |
| ERROR_TASK_NOT_SUPPORTED | type de tarefa não suportado. |
| ERROR_INVALID_TASK_DATA | Falta um campo obrigatório. O nome do campo ausente está em errorDescription. |
| ERROR_TASKID_INVALID | O taskId não foi criado com esta chave ou não existe. |
| ERROR_CAPTCHA_UNSOLVABLE | Não foi possível resolver. Nada foi cobrado. Envie novamente. |
| ERROR_SERVICE_UNAVAILABLE | Erro de rede. Nada foi cobrado. Tente novamente em instantes. |
| ERROR_RATE_LIMIT | Mais de 600 requisições em 1 minuto. Aumente o intervalo entre as requisições. |
| ERROR_ACCOUNT_SUSPENDED | Conta suspensa. |
Compatível com in.php
Para programas no estilo in.php, basta trocar o endereço. Métodos suportados: userrecaptcha (reCAPTCHA v2), turnstile, geetest, base64 e post (texto em imagem).
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.50000Adicione json=1 para receber a resposta no formato {"status":1,"request":"..."}.
Exemplos
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..."}}'