captchakings
v1.1.0
Published
AI-powered CAPTCHA solver SDK. Solve reCAPTCHA, hCaptcha, Turnstile, and 40+ captcha types.
Downloads
172
Maintainers
Readme
CaptchaKings Node.js SDK
The fastest AI-powered CAPTCHA solver for Node.js. Solve reCAPTCHA, hCaptcha, Turnstile, FunCaptcha, GeeTest, Amazon WAF, and 40+ more captcha types.
🎉 Get 1000 free credits when you sign up!
⚡ Quick Start
npm install captchakingsconst CaptchaKings = require('captchakings');
const solver = new CaptchaKings('YOUR_API_KEY');
// Solve text/image captcha
const result = await solver.solveImage('./captcha.png');
console.log(result.text); // "xK9mP2"
// Solve reCAPTCHA v2
const token = await solver.recaptchaV2({
sitekey: '6Le-wvkSAAAAAPBMRTvw...',
url: 'https://example.com'
});
console.log(token);That's it. 3 lines of code. 🚀
📦 Installation
npm install captchakings
# or
yarn add captchakings🎯 Supported Captcha Types
| Type | Method | Avg Speed |
|------|--------|-----------|
| Text/Image | solveImage() | < 1s |
| reCAPTCHA v2 | recaptchaV2() | < 15s |
| reCAPTCHA v3 | recaptchaV3() | < 10s |
| hCaptcha | hcaptcha() | < 20s |
| Cloudflare Turnstile | turnstile() | < 10s |
| FunCaptcha | funcaptcha() | < 15s |
| GeeTest v3/v4 | geetest() | < 10s |
| Amazon WAF | amazonWaf() | < 20s |
| DataDome | datadome() | < 15s |
| MTCaptcha | solveMtcaptcha() | < 3s |
📖 Examples
Text/Image Captcha
const CaptchaKings = require('captchakings');
const solver = new CaptchaKings('YOUR_API_KEY');
// From file path
const result = await solver.solveImage('./captcha.png');
console.log(`Text: ${result.text}, Confidence: ${result.confidence}`);
// From base64
const result2 = await solver.solveImageBase64(base64String);
console.log(result2.text);
// From URL
const result3 = await solver.solveImageUrl('https://example.com/captcha.jpg');
console.log(result3.text);reCAPTCHA v2
const token = await solver.recaptchaV2({
sitekey: '6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-',
url: 'https://example.com/login',
invisible: false
});
console.log(`Token: ${token}`);hCaptcha
const token = await solver.hcaptcha({
sitekey: 'a5f74b19-9e45-40e0-b45d-47ff91b7a6c2',
url: 'https://example.com'
});Cloudflare Turnstile
const token = await solver.turnstile({
sitekey: '0x4AAAAAAABS7vwvV6VFfMcD',
url: 'https://example.com'
});Amazon WAF
const token = await solver.amazonWaf({
sitekey: 'AQIDAHjcYu/GjX...',
url: 'https://www.amazon.com',
iv: 'CgAHazEKBQgA...',
context: 'qoJh+bGhBQ...'
});MTCaptcha (image → text)
// From file
const result = await solver.solveMtcaptcha({ imagePath: './mtcaptcha.jpg' });
console.log(result.text, result.confidence);
// From base64 (e.g. extracted from the page)
const r2 = await solver.solveMtcaptcha({ imageBase64: 'data:image/jpeg;base64,/9j/4AAQ...' });
console.log(r2.text);Check Balance
const credits = await solver.getBalance();
console.log(`Credits: ${credits}`);Error Handling
const { CaptchaKings, CaptchaError } = require('captchakings');
try {
const result = await solver.solveImage('./captcha.png');
console.log(result.text);
} catch (err) {
if (err instanceof CaptchaError) {
console.error(`Captcha Error: ${err.message} (${err.code})`);
}
}🆚 Why CaptchaKings?
| Feature | CaptchaKings | 2Captcha | Anti-Captcha | |---------|:-----------:|:--------:|:------------:| | Speed | ⚡ < 1s | 🐌 5-15s | 🐌 5-15s | | Accuracy | 99.9% | 95% | 95% | | AI-Powered | ✅ Yes | ❌ Human | ❌ Human | | Price (text) | $0.50/1K | $2.99/1K | $2.00/1K | | 40+ Types | ✅ | ❌ | ❌ | | Free Trial | ✅ 1000 credits | ❌ | ❌ |
🔗 Links
- 🌐 Website: captchakings.com
- 🐍 Python SDK: captchakings-python
- 📖 API Docs: captchakings.com/docs
- 💬 Support: [email protected]
📄 License
MIT License - see LICENSE for details.
