{"_id":"2captcha-nodejs","_rev":"3-4c10233b522c1e5e80eb439fd5dae44a","name":"2captcha-nodejs","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"2captcha-nodejs","version":"0.0.1","description":"This is a boilerplate of an Apify actor.","dependencies":{"request-promise":"^4.2.5"},"devDependencies":{},"scripts":{"start":"node main.js","test":"echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"},"author":{"name":"It's not you it's me"},"license":"ISC","main":"captchaapi.js","repository":{"type":"git","url":"git+https://anhhpt86@bitbucket.org/anhhpt86/2captcha_node_js.git"},"keywords":["google","captcha","anti","captcha","2captcha"],"homepage":"https://bitbucket.org/anhhpt86/2captcha_node_js#readme","gitHead":"eb47633fbf6f356bf3881d1f2af8ba1be6bd6ded","_id":"2captcha-nodejs@0.0.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-sNOyPpz3GaP+lOYLmzjcuqUi50F9OvK/9abobDhAb3DP42g0dFIHIQzfwRO8pD7YF9A6X5FM3X2NJHTye65faQ==","shasum":"d03e9799a28c6d58af1fb986aa5ce1c10321d8e4","tarball":"https://registry.npmjs.org/2captcha-nodejs/-/2captcha-nodejs-0.0.1.tgz","fileCount":4,"unpackedSize":6788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLOx7CRA9TVsSAnZWagAAhNAP/RX7QrJvKFhSLHWCAziy\nlXqwzQjMZoI39Od36KA7l/AjNcHVCI8gll28tmx0ekjTJSvTaau+SEewPrw0\n/43r5UhOqpJLHFimYrnKdDl8ZKh7btzYTFnXrxz9JEwINU48kh1f9G5lBpha\nvWaoeY+6M9hD0FPU0PiEN852JQSk8CCzW7Ivl9BJ6ckyuZZIiJCEQh4PK0Dc\nsuSxRLudZNpYyf45g1OxucIQrJV0l/MXDY4G5Vr5yVe5Y2uAYDW0jLlzKHZ1\nSjm6o1QVkBf5fYxLOwqoah5+Gl8Hlgq1FcBzmHjcDCOOnTrLaiYla5gMEPtz\ngmaGxW5r99enBMEjoZa3ogYxdsdmk5AvkzFTPbUrymoxmkorL/6mhYkKHjYz\nUWd4ZDzGnpU8NaN3GexTSfQfZc4gCZkZC1dB3eJ6woOFXvyjC4eLTZ9O5tXK\nUnGJKpldqFWMO8jFJgvlDJodi+96Wez+AjixAJnIlwv/Rsb/eIUl011EYY6D\nFUbvZ+A7R4sOlI6kT/0z2/AnxYirzIK7HKzYuXh3zW38owlXItvjA0Ru30QS\nEWitfKaxcBGiUrxqmjvHy/IbvLQd8bcXsPXRdgNvILtipOvH2gQXltVWJc3M\nLVCNQsOtOJTDWsnLXzh3YF6fb50YpX8doaoNSUzC2P8pk0lDK/R7gv3d4NJN\nctiU\r\n=yjlM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg0UuOV9BHcgBj5mq1tOUUqnL5tTXQ70t821PCHAwcygIgdE2ctKBvn/apaG1Esqwu+btyN9nVyCNZAZTTnTLmwiU="}]},"_npmUser":{"name":"anhhpt86","email":"anhhpt86@gmail.com"},"directories":{},"maintainers":[{"name":"anhhpt86","email":"anhhpt86@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2captcha-nodejs_0.0.1_1613556858831_0.16667096178111152"},"_hasShrinkwrap":false},"0.0.2":{"name":"2captcha-nodejs","version":"0.0.2","description":"This is a boilerplate of an Apify actor.","dependencies":{"request-promise":"^4.2.5"},"devDependencies":{},"scripts":{"start":"node main.js","test":"echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"},"author":{"name":"It's not you it's me"},"license":"ISC","main":"captchaapi.js","repository":{"type":"git","url":"git+https://anhhpt86@bitbucket.org/anhhpt86/2captcha_node_js.git"},"keywords":["google","captcha","anti","captcha","2captcha"],"homepage":"https://bitbucket.org/anhhpt86/2captcha_node_js#readme","gitHead":"eb47633fbf6f356bf3881d1f2af8ba1be6bd6ded","_id":"2captcha-nodejs@0.0.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ADT4FfExzcY508Yy51ZL6kvjAQWGa2vQwkJYYWY9ZQCBrNALBoYcpL4E7mtFqMfjo9TSBBkRPIDrbuEBhrmjBw==","shasum":"b5310fa1b7426839912cb6500c7d338fd2ac2813","tarball":"https://registry.npmjs.org/2captcha-nodejs/-/2captcha-nodejs-0.0.2.tgz","fileCount":4,"unpackedSize":6857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLO2uCRA9TVsSAnZWagAAJvwP/057v5tTatjJ2thCgoCC\nfzu/9xo8clU1US4E0n1YyxoG9RTE9xzWfXnFHFgsTXN/2J3QEJ5uvfXYrl2P\nCNsgJhTktQc/95f7tU/0ZvQDHwm5/1Ho6HMZTAq+/5VX1cTbpfcWZc9V/7sx\nmmEU83fZNop8ZiclICv3O+l/x20az05IyyGl5RJaGe+KrOQou124xEIVzbc9\nThvDPlNfWwugMdC8Mtktd1TmGD2HhJbHeoCQPil1/NOZEtanTRF4syaYkRQU\n4kiLbJ+a61vHIxph9C20LdS25Cg3iMWXpj/Lk/rBpkvNatVLXvwzUsiw52Pt\nR8h3wE2rhP3lu/zyjVmlHSZey0+nzEfIZSpNjp7ao0LwZe7yYEn5wnTyR1Qg\nblU6esCgQ68ZkeaNfyncD141n5jBQCUpFCS4u4dTrTCGZqXSnQ3Z8LbrgG4h\nzulOg9ZjgMisIaCJsT2ohkffOr5dzUBNtt1QSmgv3c5iK3bdK9W9CaQcPlS0\nbMRZxrpN70rWENpCvksIdnhXbnsQbopzWIpaUL25rcO3oCBKM98A603y3bJq\nACp4vEF0hM+BXySfscaUxnyvSwQhcr6h335jF4CAc9bPGVpPVEE/f0+QVRBu\nTXXdxDnpzN/dbjT+Cy2XdsEaqaNkmIM+x7Z5dyPf/eGLeFPpH2kWHIBoWWft\nNOlU\r\n=rqiQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEeP451cutJhzBJt0k5Andvdk8dgaHvO/U3ltK3SMlgsAiA4V+M0A/K0gqiVAQ1l+a+vicV8nzsOZIE3zfMznU2zaw=="}]},"_npmUser":{"name":"anhhpt86","email":"anhhpt86@gmail.com"},"directories":{},"maintainers":[{"name":"anhhpt86","email":"anhhpt86@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2captcha-nodejs_0.0.2_1613557165616_0.8054939168331283"},"_hasShrinkwrap":false},"0.0.3":{"name":"2captcha-nodejs","version":"0.0.3","description":"This is a boilerplate of an Apify actor.","dependencies":{"request-promise":"^4.2.5"},"devDependencies":{},"scripts":{"start":"node main.js","test":"echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"},"author":{"name":"It's not you it's me"},"license":"ISC","main":"captchaapi.js","repository":{"type":"git","url":"git+https://anhhpt86@bitbucket.org/anhhpt86/2captcha_node_js.git"},"keywords":["google","captcha","anti","captcha","2captcha"],"homepage":"https://bitbucket.org/anhhpt86/2captcha_node_js#readme","gitHead":"eb47633fbf6f356bf3881d1f2af8ba1be6bd6ded","_id":"2captcha-nodejs@0.0.3","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Px3wTOFfpIAPQWJKYw3/5u73umW4fv82xPjog0n2fMLPFNBnuT1CQx4PqzM/L6/soi0XEqpJZh0HYpgd3MIATA==","shasum":"42f2c255264475e6c7049986bf0840eb4c093520","tarball":"https://registry.npmjs.org/2captcha-nodejs/-/2captcha-nodejs-0.0.3.tgz","fileCount":4,"unpackedSize":6868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLO4VCRA9TVsSAnZWagAAgMIP/RP5oUEvjeD7BAeYhHVH\nfu5gdH5VnT6sNw0pC75VNq8b4yTwxQuCzcDQYxMhzmPyPPOoF6e9Mko09zuo\nqtyyhDLgzXsijUOmQLyIOiCM6z1woXfewNjSRejPDD23LCiIUpJdcEqLfNNl\n1WooffG+oOKmiW5T0J/GIBT7bp3SzVo6u9xgBUnNwAXxIwcCWg+U282TeEGm\n5Hrep/VvH86BJMzrCXt35nvRHDSg1fhNM9V8Su4XGneJS1a9GqmuwMp7VJwJ\nTa95ejMFNE7B3MKM7hOpxLCTFpmJSqYBgVFZ3nZEW63wrMhSeft+bRmyVy2R\nOhLo0iogqiUc9eabYId5djCkU/SHPBFxtjiP0xDwge7BDLXfQlWiMVP9rLNd\nxADJ0QhAca/psuCseqA+YHVBJXhV06oUUF2UdxN09pXtz60FS988r/MuiEjk\nDywld9rHOLhDEVYbIo2Vz7PAuUCgrcr8RnQ303DOoyVhUsi/F/gxzcXJhKLx\nMFNg5wFf6l4o8JMRnl6pS5le1BCZ5Lrgg661LiDDPXX6FzznthPctvgJOqJc\nRHJuS3LTk//7NtCSXVifX9LN4G6WD2HRijV1y7lAEWhdpnlFNed7f2oxJBIh\nKpTxA7K3BKtjDZ025qe8B7xmrj/W8YB8H9u5bGWqnca81+mtXRn9UB5Yz3VN\n80io\r\n=0Ese\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVbPvfr51GQ309xSq3dfApLx2PA/I0N8V8dcRv+WlrRAIgSrc+ZU/qZagd66oLbt/dy6rW3dpakUpl5yXesa7gAUc="}]},"_npmUser":{"name":"anhhpt86","email":"anhhpt86@gmail.com"},"directories":{},"maintainers":[{"name":"anhhpt86","email":"anhhpt86@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2captcha-nodejs_0.0.3_1613557269054_0.013929630315703934"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-17T10:14:18.830Z","0.0.1":"2021-02-17T10:14:19.050Z","modified":"2022-04-04T10:18:47.739Z","0.0.2":"2021-02-17T10:19:25.806Z","0.0.3":"2021-02-17T10:21:09.205Z"},"maintainers":[{"name":"anhhpt86","email":"anhhpt86@gmail.com"}],"description":"This is a boilerplate of an Apify actor.","homepage":"https://bitbucket.org/anhhpt86/2captcha_node_js#readme","keywords":["google","captcha","anti","captcha","2captcha"],"repository":{"type":"git","url":"git+https://anhhpt86@bitbucket.org/anhhpt86/2captcha_node_js.git"},"author":{"name":"It's not you it's me"},"license":"ISC","readme":"**Install**\n\ncd 2Captcha_Node_Js\n\nnpm i 2captcha-nodejs\n\n---\n\n## Usage\n\n```javascript\nconst { solveCaptchaV2 } = require('2captcha-nodejs');\n//default value\nconst siteDetails = {\n    sitekey: '6LccSjEUAAAAAN-WiRxCZ5CzsjR_123456', // key site Captcha\n    pageurl: 'https://captcha-delivery.com', // url destination \n};\nconst api = {\n    in: 'https://2captcha.com/in.php',\n    res: 'https://2captcha.com/res.php',\n    key: '123456789', // account key at 2captcha.com\n    pollingInterval: 5000\n};\nconst params = {\n    key: api.key,\n    method: 'userrecaptcha',\n    googlekey: siteDetails.sitekey,\n    pageurl: siteDetails.pageurl,\n    json: 1,\n    version:'v2', // v3, Enterprise\n    header_acao:1,\n\n    // proxy: 'username@password.com',\n    // proxyType:'HTTP',\n    // min_score:0.3, // using with google captcha v3\n    // invisible:1, // using with google captcha v2 invisible\n    // action:'globalRecaptchaCallback', // callbackk function javascript\n};\n(async () => {\n\n    // solve the captcha with API\n    console.log(\"* Waiting g-recaptcha-reponse\");\n\n    const token = await solveCaptchaV2(params, api);\n    console.log('* Receive g-recaptcha-reponse: ' + token);\n    \n    // unsccessful case \n    if (token.includes('ERROR') || token.includes('CAPCHA_NOT_READY')){\n        process.exit(1)\n    }\n   \n  })();\n```\n\n---\n\n## Motivation\n\nThese days captchas are unfortunately everywhere, with reCAPTCHA having the biggest \"market share\" in that space (> 80%). The situation got really bad, with privacy minded users (tracking blocker, VPNs) being penalized heavily and having to solve a lot of reCAPTCHA challenges constantly while browsing the web.\n\nThese small codes allow us to get automatically google token from 2Captcha Service and bypass google's protection. It is very important for crawler's activites.\n\n---","readmeFilename":"README.md"}