Documentation Index
Fetch the complete documentation index at: https://docs.anchorbrowser.io/llms.txt
Use this file to discover all available pages before exploring further.
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.
CAPTCHA solving requires either an active proxy or a configured browser profile (the profile may carry its own egress IP and stable identity).
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);