CAPTCHA Solving API
CAPTCHA Solving API — reCAPTCHA, hCaptcha, Turnstile
Detect, solve, and submit captchas from within a real browser session. Multi-vendor rotation. You only pay when the page loads cleanly.
- reCAPTCHA v2 / v3 / Enterprise, hCaptcha, Cloudflare Turnstile, FunCaptcha, GeeTest.
- Multi-vendor rotation across 2Captcha, CapSolver, AntiCaptcha — auto-failover.
- Pay only on successful page render. Failed solves are free.
- Built into the same WebSocket session you already use.
solve.tsTypeScript
import { chromium } from 'playwright'
const browser = await chromium.connectOverCDP(
'wss://cloud.browserforhire.com?token=' + process.env.BFH_API_KEY +
'&stealth=true&solve=true'
)
const page = await (await browser.newContext()).newPage()
await page.goto('https://protected.example.com/login')
// captcha is solved transparently before this line returns
await page.fill('input[name=email]', 'me@example.com')
await page.click('button[type=submit]')What you get
All major challenges
reCAPTCHA v2, v3, Enterprise; hCaptcha; Turnstile; FunCaptcha; GeeTest. Audio fallbacks for accessibility.
Vendor rotation
When 2Captcha latency spikes or success drops, we route to CapSolver or AntiCaptcha within minutes.
Solve in-session
No round-trip to your code — the gateway detects, solves, and submits the token within the same browser context.
FAQ
Which captcha types do you charge extra for?+
Audio fallbacks and FunCaptcha cost 2 credits. reCAPTCHA v2/v3 and hCaptcha are 1 credit. Turnstile is included free in stealth mode.
Can I bring my own 2Captcha key?+
Yes — pass &solver=byo&solver_key=<key>. We then route through your account and only charge our gateway credit, not the solver fee.
Ship Chrome to production today.
Free 1,000 credits, no credit card. Drop-in replacement for Browserless.