Skip to main content
CaptchaKings
  • 首页
  • 特征
  • 定价
  • 演示
    • 它是如何运作的
    • Forum
    • IP旋转器
    • 博客
Search
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
登录 免费注册
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
登录 免费注册

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) 是用于现代自动化的 AI 验证码识别 API - 快速、精准且透明

产品服务

  • 特征
  • 腾讯 / 中文验证码 NEW
  • xCaptcha 识别 NEW
  • Google reCAPTCHA NEW
  • API 开发文档
  • 定价
  • 它是如何运作的
  • 支持的验证码
  • 基准测试与精度

开发资源

  • 开发者文档
  • Selenium 指南 NEW
  • Playwright 指南 NEW
  • Puppeteer 指南 NEW
  • 免费工具箱 NEW
  • Chrome 扩展插件 NEW
  • 博客与教程
  • IP 轮换器

对比与常见问题

  • 为什么选择 CaptchaKings?
  • 价格对比
  • vs 2Captcha
  • vs CapSolver
  • vs CapMonster
  • vs Anti-Captcha
  • 面向 AI 智能体

关于公司

  • 关于我们
  • 演示
  • 仪表板
  • 客户支持
  • 隐私政策
  • 退款政策
  • 服务条款
  • SLA 服务保障 99.9%

© 2026 CaptchaKings.com. 版权所有。

🚀 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

我们使用 Cookie 来改善您的浏览体验、分析网站流量并优化 API 性能。继续使用我们的网站即表示您同意我们的 Cookie 政策。 隐私政策