Solving Captchas
Looking for full developer docs? See them here . This feature is only available on the Scale plan and Enterprise plans.
Some sites won't allow you to bypass their captchas or strictly enforce them to be solved on some sites. You can solve these captchas with Browserless without much effort. You can have a listener waiting to see if a captcha is found and you can also solve them programmatically.
Every captcha you solve costs 10 units from your plan.
Many passive captchas can be prevented from showing with our BrowserQL , that hides signs of browser automation.
Find a captcha programmatically
You can listen for captchas on the site, in puppeteer it would be like this:
const cdp = await page.createCDPSession();
await new Promise((resolve) =>
cdp.on("Browserless.captchaFound", () => {
console.log("Found a captcha!");
return resolve();
}),
);
Solve a captcha programmatically
You can solve the captcha from code, in puppeteer it would be like this:
const cdp = await page.createCDPSession();
const { solved, error } = await cdp.send("Browserless.solveCaptcha");
console.log({
solved,
error,
});
Script Examples
Puppeteer
Here's a sample snippet you can run to demonstrate this works.