Catalog npm
Back to packageRELEASE DETAILS

1.0.2

npm

2captcha-node

Lightweight NodeJS wrapper to solve captchas with 2captcha

2captchacaptchasolvewrapper
Published22 Apr 2019
Direct dependencies13
Transitive dependenciesNot calculated

README

Current package documentation

Welcome to 2captcha-node 👋

NPM version Bundle size MIT

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!

Buy Me A Coffee

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 13

Native requirements
13 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@babel/polyfill
Environment
{
  "local_name": "@babel/polyfill",
  "alias": false,
  "peer_metadata": null
}
^7.4.0runtime
request
Environment
{
  "local_name": "request",
  "alias": false,
  "peer_metadata": null
}
^2.88.0runtime
request-promise
Environment
{
  "local_name": "request-promise",
  "alias": false,
  "peer_metadata": null
}
^4.2.4runtime
@babel/cli
Environment
{
  "local_name": "@babel/cli",
  "alias": false,
  "peer_metadata": null
}
^7.2.3development
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
^7.3.4development
@babel/node
Environment
{
  "local_name": "@babel/node",
  "alias": false,
  "peer_metadata": null
}
^7.2.2development
@babel/preset-env
Environment
{
  "local_name": "@babel/preset-env",
  "alias": false,
  "peer_metadata": null
}
^7.3.4development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^5.15.0development
eslint-config-standard
Environment
{
  "local_name": "eslint-config-standard",
  "alias": false,
  "peer_metadata": null
}
^12.0.0development
eslint-plugin-import
Environment
{
  "local_name": "eslint-plugin-import",
  "alias": false,
  "peer_metadata": null
}
^2.14.0development
eslint-plugin-node
Environment
{
  "local_name": "eslint-plugin-node",
  "alias": false,
  "peer_metadata": null
}
^8.0.1development
eslint-plugin-promise
Environment
{
  "local_name": "eslint-plugin-promise",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
eslint-plugin-standard
Environment
{
  "local_name": "eslint-plugin-standard",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "301bdf599862db7e7c1cae997f89d281c25d71c8",
  "integrity": "sha512-y1f7AqJENpvj3tt1BPYfRVhsXrx7uAlywpEof54p80pRVrq3/nLQdWpqia7upYYaCbut+PPnA9xQy7t/tCWunA==",
  "tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.0.2.tgz",
  "fileCount": 6,
  "unpackedSize": 8697,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvgXHCRA9TVsSAnZWagAA9okQAJg81OKJ3CfT+vsahX4X\nhFZ1c/oeM6YzJ/IgSnBUF7xnRPudzGfSYcbVUr/tfmzFNpFIxEpm3RA6dkKl\n+6b4N2+gh4wW4z/yANvmVNXwGna4NjMg0jOIqRi/hpic9gAKqeqNaf9lb9Bt\nTBrTuwM00NgpI1uKc9Ao5MHfPFaXeaxtX5SG5RtRdT3SIZXWlJ+YkJ78Km9I\nAmfAsPEQpYGRdxkmTO2fXzVDUTirKRkB8bdy1f6fD9uFYRV48cLetiz/10Dn\n6XNwHcskxuYWWCf/+jcLNkpH/N0u43NAj+bpeooSnFnTX2lBoQOyHBPOTQ5I\nSAk43ZwOCpURRNkp4tTPL3VwtH8gxIRXQM7nKbC5lMkvQpA9w9jeiMdh/ROw\nAvihiu1HcUtmOOxX0u4wYu4xQtlX6jhUeGg0ZNvsrRTAIDf5ZHKKvdoeWEsk\nFhpSxotTlrCAr5Kok4mMCgUpbTr5iszljIYhznyQqbTbmvHYdLvHFEhXqCpa\nUMsQBuAjWhJ7C7sQlX9UYd0fitLX4gMEatYS0OFJeBd8gwtBNox+T2ZZvLd4\nKpPys6pJ+Gg3/4smED6a6/NFP4FYcq0J05he2E4LCiF9cEEV82D5MVSNMfN2\nTYKI1AqaM+f4pch3wQ50vLHNyR/6Oe4czSTLdSnnFzZ38jx+9B6GNSUIUG4Y\nyDD/\r\n=QPdb\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQConXeWvycdxi0q0BWUwakg/7V0DB/SEmBGgvCOJuryPwIhAMMkcSFB7UEoHV18CZjHIvaBRLI/2uGGVrBavzNF/ZCs"
    }
  ]
}

Repository

PENDING
pedroapfilho/2captcha-node

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:277f11ea9817078801d085df347cbec5b2b481e8bdbabce53dc9fbb7cdc9d13f

Other collected versions

2.2.11 Nov2.2.01 Oct2.1.21 Sept2.1.122 Aug2.1.010 Aug2.0.63 AugView all collected versions →