← Open Source
NopeCHALLC

nopecha-nodejs

Automated CAPTCHA solver for Node.js.

AI EngineeringAccess modelsJavaScript
Open on GitHub
Momentum
+1stars in 24 hours+0.1%
1.45k
Stars
8
Forks
3
Contributors
Created 2023-03-23 · Updated 2026-10-17 · #4895 today
Top developers
j-w-yunlee23651NopeCHALLC
README

NopeCHA Node.js Library

The NopeCHA Node.js library provides convenient access to the NopeCHA API from applications written in the Node.js language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses.

Important note: this library is meant for server-side usage only, as using it in client-side browser code will expose your secret API key. See here for more details.

Supported CAPTCHA types:

  • reCAPTCHA v2
  • reCAPTCHA v3
  • reCAPTCHA Enterprise
  • FunCAPTCHA
  • AWS WAF CAPTCHA
  • Text-based CAPTCHA

Documentation

See the NopeCHA API docs.

Installation

$ npm install nopecha

Usage

The library needs to be configured with your account's secret key which is available on the website. Either set it as the NOPECHA_API_KEY environment variable before using the library:

export NOPECHA_API_KEY='...'

Or set nopecha.api_key to its value:

const { Configuration, NopeCHAApi } = require("nopecha");

const configuration = new Configuration({
  apiKey: process.env.NOPECHA_API_KEY,
});
const nopecha = new NopeCHAApi(configuration);

// solve a recognition challenge
const clicks = await nopecha.solveRecognition({
  type: "recaptcha",
  task: "Select all squares with vehicles.",
  image_urls: ["https://nopecha.com/image/demo/recaptcha/4x4.png"],
});

// print the grids to click
console.log(clicks);

// solve a token
const token = await nopecha.solveToken({
  type: "recaptcha",
  sitekey: "6Ld8NA8jAAAAAPJ_ahIPVIMc0C4q58rntFkopFiA",
  url: "https://nopecha.com/demo/recaptcha#easy",
});

// print the token
console.log(token);

// get the current balance
const balance = await nopecha.getBalance();

// print the current balance
console.log(balance);
Nearby in the ranking
Similar items