bestcaptchasolver/bestcaptchasolver-nodejs

CAPTCHAFORUM

Administrator
bestcaptchasolver-nodejs is a super easy to use bypass captcha nodeJS API wrapper for bestcaptchasolver.com captcha service

Installation
npm install bestcaptchasolver
or
git clone https://github.com/bestcaptchasolver/bestcaptchasolver-nodejs

Usage
Set access token, before using the library
var bestcaptchasolver = require('bestcaptchasolver'); bestcaptchasolver.set_access_token('access token from /account');

Get balance
bestcaptchasolver.account_balance().then(function (balance) { console.log('Balance: $', balance); })

Submit image captcha

The submission of image captcha is done by sending us the image as a b64 encoded string.

Code:
bestcaptchasolver.submit_captcha({
    b64image: captcha,
    // is_case: true,         // case sensitive, default: false, optional
    // is_phrase: true,       // contains at least one space, default: false, optional
    // is_math: true,         // math calculation captcha, default: false, optional
    // alphanumeric: 2,        // 1 (digits only) or 2 (letters only), default: all characters
    // minlength: 2,           // minimum length of captcha text, default: any
    // maxlength: 3,           // maximum length of captcha text, default: any
    // affiliate_id: 'ID of affiliate'       // default: None, optional
}).then(function (id)) { /* use id to retrieve text */ };

Submit reCAPTCHA

The page_url and site_key are the only requirements. There are other optional parameters though.

Code:
bestcaptchasolver.submit_recaptcha({
    page_url: 'PAGE_URL_HERE',
    site_key: 'SITE_KEY_HERE',
    // other parameters
    // -------------------------------------------
    // reCAPTCHA type(s) - optional, defaults to 1
    // -------------------------------------------
    // 1 - v2
    // 2 - invisible
    // 3 - v3
    // 4 - enterprise v2
    // 5 - enterprise v3
    //
    // type: '1',
    //
    // user_agent: 'Your user agent',    // optional
    // proxy: 'abc:def@12.35.56.78:4321 or 12.35.56.78:4321',        // optional
    // v3_action: '',   // v3 action, optional
    // v3_min_score: '0.3', // if v3, score to target, optional
    // data_s: 'recaptcha data-s parameter used in loading reCAPTCHA',
    // cookie_input: 'a=b;c=d',       // used in reCAPTCHA solving, optional
    // affiliate_id: 'ID of affiliate'       // optional
}).then(function (id)) { /* use id to retrieve response */ };

Documentation https://githubmemory.com/repo/bestcaptchasolver/bestcaptchasolver-nodejs