2.2.1 ā€¢ Published 3 years ago

2captcha-node v2.2.1

Weekly downloads
2,073
License
MIT
Repository
github
Last release
3 years ago

A NodeJS wrapper to solve image captchas with 2captcha

Prerequisites:

You will need a 2Captcha API key

Install

npm install 2captcha-node

or

yarn add 2captcha-node

Usage

Set up your api key:

import captchaSolver from '2captcha-node';

const captcha = captchaSolver('your-api-key');

It'll return an object with the solve function, and you'll be able to use it inside of your script

const options = {
  image: 'base64-image',
  maxAttempts: 60, // Optional
};

const { id, text } = await captcha.solve(options);

And this solvedCaptcha will return object, with captcha id and captcha text

You can use the balance function too, to see your balance at 2Captcha

const balance = await captcha.balance();

You can use the Report Captcha is valid or not.

await captcha.report(id, isValid);

Author

šŸ‘¤ Pedro Filho pedro@filho.me

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!

2.2.1

3 years ago

2.2.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago