API de jetons pour reCAPTCHA v2
API de résolution reCAPTCHA v2 — jeton et image
Google reCAPTCHA est le filtre anti-bot le plus déployé du web, qui protège les connexions, les inscriptions et les tunnels de paiement. CaptchaSonic renvoie un jeton gRecaptchaResponse valide pour les cases à cocher reCAPTCHA v2 via le point de terminaison RecaptchaV2Task, généralement en 4 à 8 secondes.
# 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.Pourquoi utiliser Sonic pour API de jetons pour reCAPTCHA v2?
Conçu pour la vitesse, la fiabilité et une intégration facile.
Jeton et grille d'images
Une seule API couvre les jetons reCAPTCHA v2 via RecaptchaV2Task et la reconnaissance de grilles d'images v2.
Résolution typique en 4 à 8 s
Les CAPTCHA à jeton sont résolus en 4 à 8 secondes en moyenne ; la classification de grille d'images se termine en moins d'une seconde.
Avec ou sans proxy
Utilisez la variante RecaptchaV2TaskProxyless pour des résolutions rapides, ou ajoutez votre propre proxy résidentiel pour les cibles très exigeantes.
Schéma d'interrogation asynchrone
createTask renvoie un taskId ; getTaskResult interroge jusqu'à ce que le résultat soit prêt. Le SDK encapsule la boucle dans un unique appel solve() awaitable.
Construire avec
Exemples 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)Notre comparaison
Compare
Notre comparaison
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 |
Questions fréquentes
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.