Tipo de tarefa
reCAPTCHA v2
RecaptchaV2TaskProxylesssem proxy
O reCAPTCHA v2 é a caixa de seleção “Não sou um robô” e sua variante invisível. A API retorna um token gRecaptchaResponse que você envia junto com o formulário da página.
Sem proxy: resolvemos a partir da nossa própria infraestrutura. Ideal quando o site de destino não vincula o token a um IP.
Métricas em tempo real, 24 h
As métricas em tempo real deste tipo aparecerão na página de status após o lançamento.
Parâmetros da tarefa
| Parâmetro | Tipo | obrigatório | Parâmetros da tarefa |
|---|---|---|---|
type | string | obrigatório | RecaptchaV2TaskProxyless |
websiteURL | string | obrigatório | URL completa da página com o captcha. |
websiteKey | string | obrigatório | Chave do site (data-sitekey ou o parâmetro k da requisição anchor). |
isInvisible | boolean | opcional | true para o reCAPTCHA v2 invisível (sem caixa de seleção). |
recaptchaDataSValue | string | opcional | Valor de data-s, se a página o usar (alguns serviços do Google). |
userAgent | string | opcional | User-Agent usado na resolução; use o mesmo ao enviar o token. |
cookies | string | opcional | Cookies do site de destino no formato key1=value1; key2=value2. |
Exemplo
import time
import requests
API = "https://"
KEY = "YOUR_API_KEY"
# 1. create a task: the price is held, not charged
task = requests.post(f"{API}/createTask", json={
"clientKey": KEY,
"task": {
"type": "RecaptchaV2TaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "6Le-SITE-KEY",
},
}).json()
if task["errorId"]:
raise RuntimeError(task["errorCode"])
# 2. poll the result (or pass "callbackUrl" and get a signed webhook)
while True:
time.sleep(3)
res = requests.post(f"{API}/getTaskResult",
json={"clientKey": KEY, "taskId": task["taskId"]}).json()
if res["errorId"]:
raise RuntimeError(res["errorCode"])
if res["status"] == "ready":
print(res["solution"]["gRecaptchaResponse"])
break
Outros tipos de tarefas
- reCAPTCHA v2
RecaptchaV2TaskUS$ 0,60 - reCAPTCHA v2 Enterprise
RecaptchaV2EnterpriseTaskProxylessUS$ 1,50 - reCAPTCHA v2 Enterprise
RecaptchaV2EnterpriseTaskUS$ 1,50 - reCAPTCHA v3
RecaptchaV3TaskProxylessUS$ 0,90 - reCAPTCHA v3 Enterprise
RecaptchaV3EnterpriseTaskProxylessUS$ 2,00 - reCAPTCHA v3 Enterprise
RecaptchaV3EnterpriseTaskUS$ 2,00