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
{
"integrity": "sha512-HiKiW3zPaybRbM9cQLUucftJUNdvMi3nhOd+/iAMnZ2KIGtYuXSvkKr4wo9AiJ13dpjzOpBTGMTgdSoBmQ5z2A==",
"shasum": "cd6c992fab4f0506c807d0756e11107b1d84d4a5",
"tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.0.3.tgz",
"fileCount": 4,
"unpackedSize": 8694,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcv3ZYCRA9TVsSAnZWagAAnvMP/2nKbe3k9bsRL48ovqWR\n7PWFNHHo80rq487Q5CwQAdG634ODn3YcEPFVbkh9jZecrk87rr86nyC6MZGU\nI+9o+uevT8iszr5rcQatjYcx9kg8mVWzW1hLq/xNQrQGkVducczQwmV4Em3F\nQWafVKlz2GKMJvw573iRYqfU8yWaR8ee8CpewF+/v4rqh3xFbnostVfFyrnr\nWv73kMGK5nkbbgTYQk+FDz/3RJ7+BUw8BuNTcgYi1zuWvTZRF3RH8uuKmBmZ\neEl9cO4i4MLYSd8F9IjgcSd4u019oDcm/kEo6tLQSL4PWFA5wr6gJX0Y6WTz\nz5hTK580J53B/nxp7PY72xPEe5xSYbgo5ij6H7A3ZsoWDUMt02nN/E+xDA9y\nj8FCvtasVTwhaI+sH25tkAFNcA/lHJUySikK0LdQUduKbWQLfKYgJXAdRjLd\nLzlKWpQMcIf9Sh4yPxdkgii7W41lUG6T/pftbdZc7Xe6J/Q6tVlUXruvKtk0\nHsfWmvgzGgupL8KpBdpEp90JvuBTDG4NF74JxgE2c/fZuUGIl2BMBRaSCfWt\nPOlsdNtQz+sSZ/XJJ5dRNbEHcaEwLVOLNNcvB2Q0MmIjj/6FLEzIUwfjpqNX\n70myabQPs5BIEZuPtJ/oRAtC5oWQGDRlg9dBgOPcYaUiupierUpI+u8mWaB7\noMvA\r\n=BrvS\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIAZiuqGSVaoYanhqCnHEWNkbqJiW0i2hB9hlxc/9VojuAiBTKkoJB7/DWm5ogCzlFYtN+6sVB4pmE3q3dzogcqBbJA=="
}
]
}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:ee97c9dbd5ea9bff09312b14b164642e894c910abf2e34c51bab845a7a09dbbc