New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nextcaptcha-ts

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nextcaptcha-ts

NextCaptcha Captcha Solving Service Api Wrapper for Typescript to solving recaptcha v2, v3,recapthcha moible,hcaptcha,funcaptcha

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
81
decreased by-19.8%
Maintainers
1
Weekly downloads
 
Created
Source

NextCaptcha Node.js SDK

NextCaptcha is a powerful captcha solving service that supports various types of captchas including reCAPTCHA v2, reCAPTCHA v2 Enterprise, reCAPTCHA v3, reCAPTCHA Mobile, hCaptcha, hCaptcha Enterprise, and FunCaptcha. With NextCaptcha, you can easily solve a variety of captcha challenges in your automation scripts and programs.

This SDK provides a simple and easy-to-use Node.js interface for interacting with the NextCaptcha API. It supports all available captcha types and offers intuitive methods for solving different types of captchas.

Installation

You can install the NextCaptcha Node.js SDK using npm:

npm install nextcaptcha-ts

Usage

To start using the NextCaptcha Node.js SDK, you first need to obtain your API key from the NextCaptcha Dashboard. Then, you can create a NextCaptcha instance:

import NextCaptcha from 'nextcaptcha-ts';

const apiKey = 'YOUR_API_KEY';
const nextCaptcha = new NextCaptcha(apiKey);

Now, you can use the nextCaptcha object to solve various types of captchas. Solving reCAPTCHA v2 To solve reCAPTCHA v2 challenges, use the recaptchaV2 method:

const result = await nextCaptcha.recaptchaV2({websiteURL, websiteKey});

Solving reCAPTCHA v3 To solve reCAPTCHA v3 challenges, use the recaptchaV3 method:

const result = await nextCaptcha.recaptchaV3({websiteURL, websiteKey, pageAction});

Solving reCAPTCHA Mobile To solve reCAPTCHA Mobile challenges, use the recaptchaMobile method:

const result = await nextCaptcha.recaptchaMobile({websiteURL, websiteKey});

Solving hCaptcha To solve hCaptcha challenges, use the hcaptcha method:

const result = await nextCaptcha.hcaptcha({websiteURL, websiteKey});

Solving hCaptcha Enterprise To solve hCaptcha Enterprise challenges, use the hcaptchaEnterprise method:

const result = await nextCaptcha.hcaptchaEnterprise({websiteURL, websiteKey, enterprisePayload});

Solving FunCaptcha To solve FunCaptcha challenges, use the funcaptcha method:

const result = await nextCaptcha.funcaptcha({websitePublicKey, websiteURL});

Checking Account Balance To check your NextCaptcha account balance, use the getBalance method:

const balance = await nextCaptcha.getBalance();
console.log(`Account balance: ${balance}`);

Error Handling

If an error occurs while solving a captcha, the SDK will throw an error. You can catch and handle these errors using a try-catch block.

Contributing

If you find any bugs or have suggestions for improvement, please feel free to submit an issue or send a pull request. We welcome all contributions!

License

This project is licensed under the MIT License. For more information, please see the LICENSE file.

Keywords

FAQs

Package last updated on 11 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc