Skip to main content

Visual CAPTCHA solving

Anchor browser solves CAPTCHA challenges using a vision-based approach, along with extension-based fallbacks. The vision-based approach imitates human behavior to solve any CAPTCHA (including Cloudflare) without multiple challenges.
Proxy is required for CAPTCHA solving configuration.
For the full list of available options, view the interactive api documentation

Enable CAPTCHA solving

import Anchorbrowser from 'anchorbrowser';

(async () => {
  const anchorClient = new Anchorbrowser({apiKey: process.env.ANCHOR_API_KEY});
  
  const session = await anchorClient.sessions.create({
    browser: {
      captcha_solver: {
        active: true
      }
    },
    session: {
      proxy: {
        active: true  // Required
      }
    }
  });
  
  console.log("Session created with CAPTCHA solver:", session.data.id);
})().catch(console.error);

Configure Text-based CAPTCHA solving

import AnchorBrowser from 'anchorbrowser';

(async () => {
  const anchorClient = new AnchorBrowser({apiKey: process.env.ANCHOR_API_KEY});
  
  const session = await anchorClient.sessions.create({
    browser: {
      captcha_solver: {
        active: true,
        image_selector: 'ol_capcha img',
        input_selector: 'ol-captcha input'
      }
    },
    session: {
      proxy: {
        active: true  // Required
      }
    }
  });
  
  console.log("Session created with text-based CAPTCHA solver:", session.data.id);
})().catch(console.error);