Automate CAPTCHA bypass in your Playwright tests and scrapers. Get seamless reCAPTCHA, hCaptcha, and Turnstile tokens with industry-leading 99.9% accuracy.
// Playwright + CaptchaSonic
import { test } from '@playwright/test';
import { solveCaptcha } from '@captchasonic/playwright';
test('login bypass', async ({ page }) => {
await page.goto('https://example.com/login');
const token = await solveCaptcha(page, {
apiKey: 'YOUR_API_KEY',
type: 'recaptcha-v2'
});
await page.evaluate((t) => {
document.getElementById('g-recaptcha-response').innerHTML = t;
}, token);
await page.click('#submit-btn');
});Forget manual clicks. Our API returns valid tokens directly to your Playwright context.
Synchronize your Playwright headers with our solving environment to avoid detection.
Optimized specifically for Chromium, Firefox, and WebKit running in headless mode.