Catalog npm
Back to packageRELEASE DETAILS

1.3.0

npm

2captcha-node

A NodeJS wrapper to solve image captchas with 2captcha

2captchacaptchasolvewrapper
Published20 Nov 2019
Direct dependencies7
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 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
request
Environment
{
  "local_name": "request",
  "alias": false,
  "peer_metadata": null
}
^2.88.0runtime
request-promise-native
Environment
{
  "local_name": "request-promise-native",
  "alias": false,
  "peer_metadata": null
}
^1.0.7runtime
@types/request
Environment
{
  "local_name": "@types/request",
  "alias": false,
  "peer_metadata": null
}
^2.48.3development
@types/request-promise-native
Environment
{
  "local_name": "@types/request-promise-native",
  "alias": false,
  "peer_metadata": null
}
^1.0.17development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^3.6.4development
xo
Environment
{
  "local_name": "xo",
  "alias": false,
  "peer_metadata": null
}
^0.25.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "08839255ab6f911142d96e22fe438aab40260231",
  "integrity": "sha512-u8tTG0TrajiKVpTPq3a56NOrNnoWqnaZ6II1Ss8cEySyVYf/RHJKnCTaqEE+KIRNQ01WZdlrX+yQ5yj0GSOmqg==",
  "tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.3.0.tgz",
  "fileCount": 7,
  "unpackedSize": 11899,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1XY6CRA9TVsSAnZWagAA2lsP/iKKArE5de33cJPkYYsG\nqVr+kDNGBpMsNuIM9FZ4sXCw9k/MVs0Gl3Dl4mFHCMoTc5jMSkxm74pMWXeR\nCUyCcP0Z3HN7gf0wtYmBh8wGiqpYRMscuFPAgPQ7ieTs4rPvIf3+AZNyrz0f\naS2mEp2PYF5Jx/DazNImKYmU16XpzCVKiLf8n3zF8YwbqYys+YZ1zpOzSy5M\nHra5dgkLh0PJfXO9y8Em+aqa9u5Y71xxV9d2NSdVJNO7bqvKgmKd8kzWjigX\ndp4KEvaYAgkAdqD/EveL37p/kP05JPZTi8vqUbcov8UXZA+8Xo8AACQhGy74\nPlAN1rzcgyZGnApoxmkAs06a3Q/3BUL78qMDx1KPml49In3Pv+QJLREwmgUQ\n+vHIZ0TUJi54SA6QFu86aQ3ORrJHuXGCqGuLVhsMMWHtZwtQW78W6BgQ6Jan\nVZ7tmKS9cDmXZ5wKJZoWmi3dJ8HyQOKCSAvEck+dHA4CntWndtidr6/zalW4\nlDszUjsmIMO0f4js6lZXI5J4AmbI5j1qGCV4pUBC9hclr3hqm7ecBoTmRIoh\nr0Az8LmnDy6GBis3ZzLdq85HSJHreIVtaloky+6Xg3NiTxgv/1/Ou0hRQtoK\nmgYBS64fqu7To5Yh5HMKf/WsQAITzl32i+L3NFODMzJDc+F/l3+olDW2obeo\n841M\r\n=yIjY\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIEIInNobKvCp+gqX0Zo3nCzZGyw06F/FH6g8LCYRqTQRAiBb47UjvsYpq0d2fZxONNjnCh22U9Vt+XFdp7PITFr3PQ=="
    }
  ]
}

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:7a4dc8bc5cda3c467503d18572d3ba249f8b06cb6842fb58c836b736c7d5f48c

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 →