Multi-Captcha Solver Adapter - v1.1.2
    Preparing search index...

    Class MultiCaptchaSolver

    The main class for solving different types of captchas using multiple services. It provides a unified interface to interact with various captcha providers.

    const solver = new MultiCaptchaSolver({
    apiKey: 'YOUR_API_KEY',
    captchaService: ECaptchaSolverService.TwoCaptcha,
    retries: 3
    });

    // Solve a reCAPTCHA v2
    const token = await solver.solveRecaptchaV2(
    'https://example.com',
    'site-key'
    );
    Index

    Constructors

    Methods

    • Retrieves the current balance from the selected captcha solving service.

      Returns Promise<number>

      A promise that resolves with the current account balance in USD

      When the API service returns an error

      When the API key is invalid

      When there's no balance in the account

      const balance = await solver.getBalance();
      console.log(`Current balance: $${balance}`);
    • Solves an hCaptcha challenge on a given website.

      Parameters

      • websiteURL: string

        The full URL of the page where the hCaptcha is present

      • websiteKey: string

        The hCaptcha site key from the page's HTML

      • Optionalproxy: ProxyOptions

        Optional proxy configuration for solving the captcha

      Returns Promise<string>

      A promise that resolves with the hCaptcha solution token

      When the API service returns an error

      When the API key is invalid

      const token = await solver.solveHCaptcha(
      'https://accounts.hcaptcha.com/demo',
      '4c672d35-0701-42b2-88c3-78380b0db560'
      );
      console.log(`hCaptcha token: ${token}`);
    • Solves an image-based captcha using optical character recognition.

      Parameters

      • base64string: string

        A base64 encoded string of the captcha image to be solved

      Returns Promise<string>

      A promise that resolves with the captcha solution text

      When the API service returns an error

      When the API key is invalid

      const imageBase64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...';
      const solution = await solver.solveImageCaptcha(imageBase64);
      console.log(`Captcha solution: ${solution}`);
    • Solves a reCAPTCHA v2 challenge on a given website.

      Parameters

      • websiteURL: string

        The full URL of the page where the reCAPTCHA is present

      • websiteKey: string

        The reCAPTCHA site key from the page's HTML

      • Optionalproxy: ProxyOptions

        Optional proxy configuration for solving the captcha

      Returns Promise<string>

      A promise that resolves with the reCAPTCHA token

      When the API service returns an error

      When the API key is invalid

      const token = await solver.solveRecaptchaV2(
      'https://example.com/login',
      '6Le-wvkSAAAAAPBMRTvw0Q4Muexq1bi0DJwx_mJ-'
      );
      console.log(`reCAPTCHA token: ${token}`);
    • Solves a reCAPTCHA v3 challenge on a given website.

      Parameters

      • websiteURL: string

        The full URL of the page where the reCAPTCHA is present

      • websiteKey: string

        The reCAPTCHA v3 site key from the page's HTML

      • minScore: number

        The minimum score required (0.1 to 0.9, higher means more human-like)

      • pageAction: string

        The action name for this request (e.g., 'login', 'submit', 'verify')

      • Optionalproxy: ProxyOptions

        Optional proxy configuration for solving the captcha

      Returns Promise<string>

      A promise that resolves with the reCAPTCHA v3 token

      When the API service returns an error

      When the API key is invalid

      const token = await solver.solveRecaptchaV3(
      'https://www.google.com/recaptcha/api2/demo',
      '6Le-wvkSAAAAAPBMRTvw0Q4Muexq1bi0DJwx_mJ-',
      0.7,
      'homepage'
      );
      console.log(`reCAPTCHA v3 token: ${token}`);