API de token para reCAPTCHA v2
API solucionadora de reCAPTCHA v2 — Token e imagem
O Google reCAPTCHA é o filtro de bots mais usado da web, protegendo logins, cadastros e fluxos de checkout. A CaptchaSonic retorna um token gRecaptchaResponse válido para os alvos de checkbox do reCAPTCHA v2 usando o endpoint RecaptchaV2Task — normalmente em 4 a 8 segundos.
# CaptchaSonic — reCAPTCHA v2 (Python)
import requests
requests.post('https://api.captchasonic.com/createTask', json={
'clientKey': 'YOUR_API_KEY',
'task': {
'type': 'RecaptchaV2TaskProxyless',
'websiteURL': 'https://example.com',
'websiteKey': '6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-'
}
})
# Poll /getTaskResult until status == 'ready'; solution.token is the gRecaptchaResponse.Por que usar o Sonic para API de token para reCAPTCHA v2?
Feito para velocidade, confiabilidade e integração fácil.
Token e grade de imagens
Uma única API cobre tokens de reCAPTCHA v2 via RecaptchaV2Task e o reconhecimento da grade de imagens do v2.
Resolução típica de 4 a 8s
Captchas de token são resolvidos em 4 a 8 segundos em média; a classificação da grade de imagens termina em menos de um segundo.
Com ou sem proxy
Use a variante RecaptchaV2TaskProxyless para resoluções rápidas, ou anexe seu próprio proxy residencial para alvos com alta fricção.
Padrão de polling assíncrono
createTask retorna um taskId; getTaskResult faz polling até ficar pronto. O SDK encapsula o loop e expõe uma única chamada solve() aguardável.
Construa com ele
Exemplos de SDK
Token
from captchasonic import CaptchaSonic
client = CaptchaSonic(api_key="YOUR_API_KEY")
result = client.solve_recaptcha_v2_token(website_url="https://example.com/login", website_key="6Le-...")
print(result.solution.token)import { CaptchaSonic } from 'captchasonic'
const client = new CaptchaSonic({ apiKey: 'YOUR_API_KEY' })
const result = await client.solveRecaptchaV2Token({ websiteUrl: 'https://example.com/login', websiteKey: '6Le-...' })
console.log(result.solution.token)Recognition
from captchasonic import CaptchaSonic
client = CaptchaSonic(api_key="YOUR_API_KEY")
result = client.solve_recaptcha_v2(image_b64="...")
print(result.typed_solution.grid.objects)import { CaptchaSonic } from 'captchasonic'
const client = new CaptchaSonic({ apiKey: 'YOUR_API_KEY' })
const result = await client.solveRecaptchaV2({ imageB64: '...' })
console.log(result.typed_solution.grid.objects)Como nos comparamos
Compare
Como nos comparamos
Feature-by-feature against the four most-mentioned alternatives, compiled from each provider’s public pricing pages. Competitor figures may change — verify current rates with each provider.
| Feature | CaptchaSonic | 2Captcha | CapSolver | Anti-Captcha | CapMonster Cloud |
|---|---|---|---|---|---|
| AI / ML solver (no human relay) | |||||
| reCAPTCHA v2 | |||||
| Avg. solve time (reCAPTCHA v2) | < 3s | ~12s | ~8s | ~10s | ~7s |
| Success rate (trailing 30d) | 99.9% | ~95% | ~98% | ~95% | ~97% |
| Price per 1k — reCAPTCHA image | $0.20 | $2.99 | $0.90 | $2.00 | $1.00 |
| Proxy + proxyless modes | |||||
| Free trial credits | |||||
| SDK languages (Py, Node, Go, C#, Java, PHP) | 6 | 6 | 4 | 5 | 4 |
| Selenium / Puppeteer / Playwright examples | |||||
| Browser extension | |||||
| Webhook callbacks | |||||
| 99.9% uptime SLA |
Perguntas frequentes
reCAPTCHA is Google's bot-filter widget that gates an estimated 4.5M websites. CaptchaSonic supports reCAPTCHA v2: tokens via RecaptchaV2Task and image-grid recognition for the v2 challenge.
Pass websiteURL + websiteKey on createTask. RecaptchaV2Task returns a gRecaptchaResponse token from a residential browser-fingerprint pool in 4–8 seconds. SDK helpers for Selenium, Playwright, Puppeteer and requests are in the docs.
CaptchaSonic bills per 1,000 successful solves with no subscription or seat fee. See the pricing page for the current reCAPTCHA v2 token and image rates. Failed solves are auto-refunded so you only pay for tokens your backend accepts.
Yes. CaptchaSonic is used for QA, accessibility testing, security research and authorized automation against sites you own or have permission to test. Always honor each target's Terms of Service and applicable laws — CaptchaSonic is a tool, not a license to bypass access controls. Start with the free trial to benchmark your traffic.