Observed since 20 Oct, 19:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2captcha-node
Lightweight NodeJS wrapper to solve captchas with 2captcha
A NodeJS wrapper to solve image captchas with 2captcha
You will need a 2Captcha API key
npm install 2captcha-node
or
yarn add 2captcha-node
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);
👤 Pedro Filho pedro@filho.me
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@babel/polyfillEnvironment{
"local_name": "@babel/polyfill",
"alias": false,
"peer_metadata": null
} | ^7.4.0 | runtime |
requestEnvironment{
"local_name": "request",
"alias": false,
"peer_metadata": null
} | ^2.88.0 | runtime |
request-promiseEnvironment{
"local_name": "request-promise",
"alias": false,
"peer_metadata": null
} | ^4.2.4 | runtime |
@babel/cliEnvironment{
"local_name": "@babel/cli",
"alias": false,
"peer_metadata": null
} | ^7.2.3 | development |
@babel/coreEnvironment{
"local_name": "@babel/core",
"alias": false,
"peer_metadata": null
} | ^7.3.4 | development |
@babel/nodeEnvironment{
"local_name": "@babel/node",
"alias": false,
"peer_metadata": null
} | ^7.2.2 | development |
@babel/preset-envEnvironment{
"local_name": "@babel/preset-env",
"alias": false,
"peer_metadata": null
} | ^7.3.4 | development |
eslintEnvironment{
"local_name": "eslint",
"alias": false,
"peer_metadata": null
} | ^5.15.0 | development |
eslint-config-standardEnvironment{
"local_name": "eslint-config-standard",
"alias": false,
"peer_metadata": null
} | ^12.0.0 | development |
eslint-plugin-importEnvironment{
"local_name": "eslint-plugin-import",
"alias": false,
"peer_metadata": null
} | ^2.14.0 | development |
eslint-plugin-nodeEnvironment{
"local_name": "eslint-plugin-node",
"alias": false,
"peer_metadata": null
} | ^8.0.1 | development |
eslint-plugin-promiseEnvironment{
"local_name": "eslint-plugin-promise",
"alias": false,
"peer_metadata": null
} | ^4.0.1 | development |
eslint-plugin-standardEnvironment{
"local_name": "eslint-plugin-standard",
"alias": false,
"peer_metadata": null
} | ^4.0.0 | development |
Source distribution
{
"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"
}
]
}Shared repository data · GitHub
Observed since 20 Oct, 19:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:277f11ea9817078801d085df347cbec5b2b481e8bdbabce53dc9fbb7cdc9d13f