Skip to main content
CaptchaKings
  • Home
  • Features
  • Pricing
  • Demo
    • How It Works
    • Forum
    • IP Rotator
    • Blog
Search
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
Login Sign Up Free
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
Login Sign Up Free

Puppeteer Captcha Solver

Solve image captchas in Puppeteer / Node.js today — reCAPTCHA, hCaptcha & Turnstile flows are planned previews — Last Updated: August 29, 2026

TL;DR — AI Quick Answer (Puppeteer Captcha Solver)

CaptchaKings provides fast, headless-friendly server-side captcha recognition for Puppeteer and Node.js web automation bots without risky client-side solver extensions:

  • Image & Text OCR: Screenshot the captcha element (el.screenshot()) & POST to /api/process.php for ~1.2s median resolution at $0.80/1k.
  • Token Solving (Planned): Server-side token generation for reCAPTCHA v2/v3, hCaptcha, and Cloudflare Turnstile — inject into #g-recaptcha-response without DOM manipulation traces.
  • Stealth Compatible: Fully compatible with puppeteer-extra-plugin-stealth and cluster workflows (puppeteer-cluster).
  • Trial: $0.50 free testing balance on sign-up (no credit card required).

📋 Status: Live today via the API: image/text captchas ($0.80 per 1,000, ~1.2s median) plus GeeTest, Tencent, xCaptcha, MTCaptcha and Amazon WAF ($1.00 per 1,000) — measured numbers at /benchmarks. reCAPTCHA, hCaptcha and Cloudflare Turnstile are planned, not yet available — see /supported-captchas.

Why Not puppeteer-extra-plugin-recaptcha?

The popular plugin runs solving logic inside the automated browser. That leaves a detectable footprint, breaks whenever Google ships a reCAPTCHA update, and struggles with Enterprise score-based challenges. A server-side solving API decouples you from the cat-and-mouse game: your bot just asks for a token and injects it — the same technique used by large-scale scraping teams.

Install

bash
npm install puppeteer axios
# Recommended companion:
npm install puppeteer-extra puppeteer-extra-plugin-stealth

reCAPTCHA Token Flow in Node.js (Planned)

This flow goes live when reCAPTCHA support launches — see /recaptcha-solver. The image-captcha flow below works today.

javascript
const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
const axios = require('axios');

puppeteer.use(StealthPlugin());

const API_KEY  = 'ck_your_api_key_here';
const PAGE_URL = 'https://example.com/register';

async function solveRecaptchaV2(sitekey, pageUrl) {
    const { data } = await axios.post('https://captchakings.com/api', {
        api_key: API_KEY,
        captcha_type: 'recaptcha_v2',
        sitekey: sitekey,
        page_url: pageUrl
    });
    if (!data.token) throw new Error('Solve failed: ' + JSON.stringify(data));
    return data.token;   // valid g-recaptcha-response (planned flow)
}

(async () => {
    const browser = await puppeteer.launch({ headless: 'new' });
    const page = await browser.newPage();
    await page.goto(PAGE_URL, { waitUntil: 'networkidle2' });

    // 1. Extract the sitekey
    const sitekey = await page.$eval('[data-sitekey]', el => el.dataset.sitekey);

    // 2. Solve server-side
    const token = await solveRecaptchaV2(sitekey, PAGE_URL);

    // 3. Inject + submit
    await page.evaluate((t) => {
        document.getElementById('g-recaptcha-response').innerHTML = t;
    }, token);
    await Promise.all([
        page.waitForNavigation({ waitUntil: 'networkidle2' }),
        page.click('button[type=submit]')
    ]);

    console.log('Passed:', page.url());
    await browser.close();
})();

Image & Text CAPTCHAs via Screenshot

javascript
const el = await page.$('#captcha-img');
await el.screenshot({ path: 'captcha.png' });

const FormData = require('form-data');
const fs = require('fs');
const form = new FormData();
form.append('captcha', fs.createReadStream('captcha.png'));
form.append('api_key', API_KEY);

const { data } = await axios.post('https://captchakings.com/api/process.php', form, {
    headers: form.getHeaders()
});
console.log('Answer:', data.prediction, '| confidence:', data.confidence);

Production Checklist for Puppeteer Bots

  1. Stealth + solver, not stealth alone. Stealth reduces how often you're challenged; the solver handles the challenge when you are.
  2. Match your proxy IP. The token is bound to the visiting IP. Route the browser through the same proxy you register with the solver — or use the CaptchaKings IP Rotator.
  3. Cache sessions. Save page.cookies() after passing and reuse them; only re-solve when the session dies.
  4. Never pay for failures. CaptchaKings only bills successful solves — report bad tokens for instant credit-back.

Cost at Scale

Flat pay-as-you-go rates — $0.80 per 1,000 image/text solves and $1.00 per 1,000 token solves. No volume tiers, no subscription.

Monthly VolumeTypeApprox. Cost
10,000 solvesImage / text OCR$8.00
10,000 solvesToken types (GeeTest, Tencent, xCaptcha, MTCaptcha, Amazon WAF)$10.00
100,000 solvesImage / text OCR$80.00
100,000 solvesToken types$100.00
reCAPTCHA / hCaptcha / TurnstilePlanned — see the support matrix
TestingAny live type$0 — free $0.50 signup balance

Frequently Asked Questions

Does this work with puppeteer-extra-plugin-stealth?

Yes — it's the recommended pairing. Stealth masks automation signals while CaptchaKings clears the challenge server-side.

Can I use it with Puppeteer cluster / concurrent browsers?

Yes. The API is stateless and handles high concurrency, so puppeteer-cluster workers can request tokens in parallel without rate issues on paid plans.

What if the injected token gets rejected?

Report it via the API for an automatic refund, then request a new token — failed solves are never billed. Note: the reCAPTCHA token flow is planned, not yet live — see /supported-captchas and /recaptcha-solver.

🎁 Free $0.50 balance — test the live image-captcha flow today, on us. Create your API key →

Related Integration Guides

Selenium Captcha Solver Playwright Captcha Solver hCaptcha Solver API Node.js + Puppeteer Tutorial API Documentation
Get Your Free API Key
Back to Home
CaptchaKings

CaptchaKings (Captcha Kings) is an AI Captcha Solver API for modern automation - fast, measured, and transparent

Products

  • Features
  • Tencent / Chinese NEW
  • xCaptcha Solver NEW
  • Google reCAPTCHA NEW
  • API Documentation
  • Pricing
  • How It Works
  • Supported CAPTCHAs
  • Benchmarks

Resources

  • Developer Docs
  • Selenium Guide NEW
  • Playwright Guide NEW
  • Puppeteer Guide NEW
  • Free Tools NEW
  • Chrome Extension NEW
  • Blog & Tutorials
  • IP Rotator

Comparisons & FAQs

  • Why CaptchaKings?
  • Price Comparison
  • vs 2Captcha
  • vs CapSolver
  • vs CapMonster
  • vs Anti-Captcha
  • For AI Agents

Company

  • About
  • Demo
  • Dashboard
  • Support
  • Privacy Policy
  • Refund Policy
  • Terms of Service
  • SLA 99.9%

© 2026 CaptchaKings.com. All rights reserved.

🚀 Get Started Free
🎁

Wait! Don't Miss Out

Sign up now and get a $0.50 FREE BALANCE to test our API.

Claim Bonus & Sign Up Free

We use cookies to enhance your experience, analyze site traffic, and optimize API performance. By continuing to use our website, you agree to our cookie policy. Privacy Policy