two-captcha

2Captcha API wrapper for Node.js

Usage no npm install needed!

<script type="module">
  import twoCaptcha from 'https://cdn.skypack.dev/two-captcha';
</script>

README

Two-Captcha Wrapper

2Captcha JavaScript Wrapper

NPM version TRAVIS version

Prerequisites:

You will need a 2Captcha API key

Installation:

npm i two-captcha

Usage:

Set up your api key:


const TwoCaptcha = require('two-captcha')
const Captcha = new TwoCaptcha('your-api-key')

Get the ID of your task:

let id = Captcha.getId('method', 'googleKey', 'pageUrl')

Start a cycle that checks if your task is completed and get result:

let solve = Captcha.solve(id)