API token cho reCAPTCHA v2
API giải reCAPTCHA v2 — Token & hình ảnh
Google reCAPTCHA là bộ lọc bot được triển khai nhiều nhất trên web, bảo vệ đăng nhập, đăng ký và luồng thanh toán. CaptchaSonic trả về token gRecaptchaResponse hợp lệ cho các mục tiêu checkbox reCAPTCHA v2 qua endpoint RecaptchaV2Task — thường trong 4–8 giây.
# 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.Vì sao dùng Sonic cho API token cho reCAPTCHA v2?
Được xây dựng để nhanh, đáng tin cậy và dễ tích hợp.
Token & lưới hình ảnh
Một API bao phủ token reCAPTCHA v2 qua RecaptchaV2Task và nhận diện lưới hình ảnh v2.
Giải thông thường trong 4–8 giây
CAPTCHA dạng token hoàn tất trung bình trong 4–8 giây; phân loại lưới hình ảnh xong trong dưới một giây.
Có proxy hoặc không proxy
Dùng biến thể RecaptchaV2TaskProxyless để giải nhanh, hoặc gắn proxy dân cư riêng cho các mục tiêu khó.
Mẫu truy vấn bất đồng bộ
createTask trả về taskId; getTaskResult truy vấn cho đến khi sẵn sàng — SDK bọc vòng lặp này thành một lệnh solve() có thể await.
Xây dựng với sản phẩm
Ví dụ 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)So sánh của chúng tôi
Compare
So sánh của chúng tôi
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 |
Câu hỏi thường gặp
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.