Solve CAPTCHA with Puppeteer

The definitive guide to bypassing CAPTCHAs in Puppeteer. Automate reCAPTCHA, hCaptcha, and Geetest with 99.9% reliability in any headless environment.

example.js
// Puppeteer + CaptchaSonic
const puppeteer = require('puppeteer');
const { PuppeteerSonic } = require('@captchasonic/puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  const sonic = new PuppeteerSonic('YOUR_API_KEY');

  await page.goto('https://example.com');
  
  const result = await sonic.solve(page, {
    type: 'hcaptcha',
    sitekey: '...'
  });

  console.log('Solved!', result.token);
  await browser.close();
})();

1Quick Installation

$ npm install @captchasonic/puppeteer

2Key Features for Puppeteer

Stealth Integration

Our Puppeteer plugin patches common leaks that reveal your bot nature to protection services.

Hyper-Speed Solving

Average solving time under 1 second for standard challenges. No human delay.

Multi-Language Support

Works with puppeteer-python, puppeteer-sharp, and standard Node.js environments.