nextsolver
v1.0.0
Published
NextSolver Node.js SDK — AI-Powered Captcha Solving API. CapSolver-compatible.
Maintainers
Readme
NextSolver Node.js SDK
Official Node.js SDK for NextSolver — AI-Powered Captcha Solving API.
CapSolver-compatible drop-in replacement. Zero dependencies. Change your base URL and you're live.
Installation
npm install nextsolverQuick Start
const NextSolver = require('nextsolver');
const solver = new NextSolver('YOUR_API_KEY');
// Solve AWS WAF (instant, ~50ms)
const result = await solver.solveWaf(
['base64_image_1', 'base64_image_2'],
'umbrella'
);
console.log(result); // [false, true, false, true, false, false]
// Solve reCAPTCHA v2 (auto-polls until ready)
const token = await solver.solveRecaptchaV2(
'https://example.com',
'6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-'
);
console.log(token);Supported Captcha Types
| Type | Task Name | Method |
|------|-----------|--------|
| AWS WAF | AwsWafClassification | solveWaf() |
| Image/Text | ImageToTextTask | solveImage() |
| Math | MathCaptcha | solve() |
| Audio | AudioTask | solve() |
| FriendlyCaptcha | FriendlyCaptchaTaskProxyless | solveFriendly() |
| reCAPTCHA v2 | ReCaptchaV2TaskProxyless | solveRecaptchaV2() |
| FunCaptcha | FunCaptchaTaskProxyless | solveFunCaptcha() |
| FunCaptcha Classification | FunCaptchaClassification | solve() |
Advanced Usage
// Custom base URL
const solver = new NextSolver('YOUR_KEY', {
baseUrl: 'https://your-server.com',
timeout: 180000,
pollInterval: 5000
});
// Low-level: create task + poll manually
const resp = await solver.createTask({ type: 'AwsWafClassification', images: [...], question: 'umbrella' });
const result = await solver.getTaskResult(resp.taskId);
// Check balance
const balance = await solver.getBalance();
console.log(`Credits: ${balance}`);API Documentation
Full docs: https://nextsolver.com/docs-api
License
Copyright (c) 2024-2026 NextSolver. MIT License — see LICENSE.
