New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

capsolver-npm

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capsolver-npm

manage to solve captcha challenges with node

  • 2.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-5.05%
Maintainers
0
Weekly downloads
 
Created
Source

capsolver-npm

manage to solve captcha challenges with node

  • ❗ API key it's required Get here
  • 👌🏼 Now in Typescript

npm version

Install

npm i capsolver-npm

Usage

  • Initialize and use Solver and SolverError
const { Solver, SolverError } = require('capsolver-npm');

const solver = new Solver({
  apiKey: 'CAP-XXXXXX ...',
});

async function main() {
  await solver
    .recaptchav2({
      //  parameters ...
    })
    .then((s: any) => {
      console.log(s);
    })
    .catch((e: typeof SolverError) => {
      console.log(
        `taskId \x1b[33m${e.errorTaskId} \x1b[31m${e.errorCode} \x1b[0m(${e.errorDescription})`
      );
    });
}

main();
  • Debug custom implementation parameters to send.
  • When provide proxy is required, match the following pattern: ip:port:user:pass

📁 Updated examples

Figure out here.

🔨 Supported Methods

  • Consider null as an optional parameter.
  • Refer to the official documentation for more details.

Solving AwsWaf with Classification ... | Solving AwsWaf ...

await solver.awswafclassification({
  websiteURL: null,
  images,
  question,
});

await solver.awswaf({
  proxy,
  websiteURL,
  awsKey: null,
  awsIv: null,
  awsContext: null,
  awsChallengeJS: null,
});

await solver.awswafproxyless({
  websiteURL,
  awsKey: null,
  awsIv: null,
  awsContext: null,
  awsChallengeJS: null,
});

Solving DataDome ...

await solver.datadome({
  proxy,
  websiteURL,
  captchaUrl,
  userAgent,
});

Solving FriendlyCaptcha ...

await solver.friendlycaptchaproxyless({
  websiteURL,
  websiteKey,
});

Solving GeeTest ...

await solver.geetest({
  proxy,
  websiteURL,
  gt,
  challenge,
  captchaId: null,
  geetestApiServerSubdomain: null,
});

await solver.geetestproxyless({
  websiteURL,
  gt,
  challenge,
  captchaId: null,
  geetestApiServerSubdomain: null,
});

Solving ImageToText ...

await solver.image2text({
  body,
  module: null,
  score: null,
});

Solving Imperva ...

await solver.imperva({
  websiteURL,
  reeseScriptURL,
});

Solving MTCaptcha ...

await solver.mtcaptcha({
  proxy,
  websiteURL,
  websiteKey,
});

Solving ReCaptchaV2 with Classification ... | Solving ReCaptchaV2 / Enterprise ...

await solver.recaptchav2classification({
  websiteURL: null,
  question,
  image,
});

await solver.recaptchav2({
  proxy,
  websiteURL,
  websiteKey,
  userAgent: null,
  isInvisible: null,
  pageAction: null,
  enterprisePayload: null,
  apiDomain: null,
  cookies: null,
});

await solver.recaptchav2proxyless({
  websiteURL,
  websiteKey,
  userAgent: null,
  isInvisible: null,
  pageAction: null,
  enterprisePayload: null,
  apiDomain: null,
  cookies: null,
});

await solver.recaptchav2enterprise({
  proxy,
  websiteURL,
  websiteKey,
  userAgent: null,
  enterprisePayload: null,
  apiDomain: null,
  cookies: null,
});

await solver.recaptchav2enterpriseproxyless({
  websiteURL,
  websiteKey,
  userAgent: null,
  enterprisePayload: null,
  apiDomain: null,
  cookies: null,
});

Solving ReCaptchaV3 / Enterprise ...

await solver.recaptchav3({
  proxy,
  websiteURL,
  websiteKey,
  pageAction,
  enterprisePayload: null,
  apiDomain: null,
  cookies: null,
});

await solver.recaptchav3proxyless({
  websiteURL,
  websiteKey,
  pageAction,
  enterprisePayload: null,
  apiDomain: null,
  cookies: null,
});

await solver.recaptchav3enterprise({
  proxy,
  websiteURL,
  websiteKey,
  pageAction,
  enterprisePayload: null,
  apiDomain: null,
  cookies: null,
});

await solver.recaptchav3enterpriseproxyless({
  websiteURL,
  websiteKey,
  pageAction,
  enterprisePayload: null,
  apiDomain: null,
  cookies: null,
});

Solving Turnstile ...

await solver.turnstileproxyless({
  websiteURL,
  websiteKey,
  metadata: null,
});

Solving VisionEngine ...

await solver.visionengine({
  websiteURL: null,
  module,
  image,
  imageBackground,
  question: null,
});
Big Disclaimer

By using this package, you acknowledge and agree that:

  • You are solely responsible for how you use the API and the author does not assume any liability for misuse, abuse, or violations of Capsolver’s terms of service.
  • This package provides a service connector for the Capsolver API and is not affiliated.

FAQs

Package last updated on 08 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc