ArthurKa/rucaptcha-2captcha

CAPTCHAFORUM

Administrator
Helps you to operate with RuCaptcha or 2Captcha services conveniently.
Full documentation you can find on official sites: RuCaptcha Docs, 2Captcha Docs.

Installation
rucaptcha-2captcha is available via NPM:
$ npm i rucaptcha-2captcha@2.2.1

Usage
Initialization
Synopsis
new RuCaptcha2Captcha(apiKey[, type]) → captchaSolver object

Example
Code:
import RuCaptcha2Captcha from 'rucaptcha-2captcha';

const captchaSolver = new RuCaptcha2Captcha(<YOUR_API_KEY>);

// or for operating with 2Captcha.com
const captchaSolver = new RuCaptcha2Captcha(<YOUR_API_KEY>, 2);

captchaSolver.getPrices method
Synopsis
captchaSolver.getPrices() → Promise<Object>

Use for getting actual service prices.
Note: this method does not decrease your API query limit.

Example
Code:
const prices = await captchaSolver.getPrices();

// Warning! That is current actual prices. Prices and categories may change.
/*
prices in RUR for RuCaptcha service: {
  'Обычная капча': 0.023,
  'Текстовая капча': 0.023,
  'ReCaptcha V2': 0.16,
  'ReCaptcha V3': 0.16,
  GeeTest: 0.16,
  hCaptcha: 0.16,
  'Capy Puzzle': 0.16,
  'ReCaptcha V2 (старый метод)': 0.07,
  ClickCaptcha: 0.07,
  RotateCaptcha: 0.035,
  'FunCaptcha с токеном': 0.16,
  KeyCaptcha: 0.16
}
prices in USD for 2Captcha service: {
  'Normal Captcha': 0.00079,
  'Text Captcha': 0.00079,
  'ReCaptcha V2': 0.00299,
  'ReCaptcha V3': 0.00299,
  GeeTest: 0.00299,
  'ReCaptcha V2 (old method)': 0.0012,
  'Solving ClickCaptcha': 0.0012,
  RotateCaptcha: 0.0005,
  FunCaptcha: 0.0005,
  'FunCaptcha Token Method': 0.00299,
  KeyCaptcha: 0.00299,
  hCaptcha: 0.00299,
  Capy: 0.00299
}
*/