Standard Functions
BrowserAI is fully CDP-compatible, meaning every Puppeteer function and feature works right out of the box. You can explore the complete Puppeteer API in the official Puppeteer docs. But we didn’t stop there—we’ve added custom CDP functions, fine-tuned for high-performance scraping and stealth browsing. Take full control of your automation stack and push the limits of what’s possible. The following are a few common browser navigation functions to get you started.Get HTML page
Get HTML page
Click on Element
Click on Element
Screenshot
Screenshot
- Node.js
- Python
- C#
Scroll to Bottom
Scroll to Bottom
Block Endpoints
Block Endpoints
Country Routing
Country Routing
-country flag, after your “USER” credentials, followed by the 2-letter ISO code for that country.EU Region
You can target the entire European Union region in the same manner as “Country” above by adding “eu” after “country” in your request:-country-eu
Requests sent using -country-eu will use IPs from one of the countries below which are included automatically within “eu”:Custome Functions
Captcha Solver
BrowserAI’s built-in CAPTCHA solver automatically handles all CAPTCHAs, keeping your automation uninterrupted. Use custom CDP functions to monitor and fine-tune the solving process directly in your code.CAPTCHA Solver - Automatic Solve
Captcha.solve
Captcha.solve
- Node.js
- Python
Custom functions for CAPTCHA status
Custom functions for CAPTCHA status
- Asynchronous
- Synchronous
- Node.js
- Python
CAPTCHA Solver - Manual Control
To manually configure or disable the default CAPTCHA solver—allowing you to call it manually or handle solving yourself—use the following CDP commands and settings.Captcha.setAutoSolve
Captcha.setAutoSolve
- Node.js
- Python
Disable auto-solver for a specific CAPTCHA type only - Examples
Disable auto-solver for a specific CAPTCHA type only - Examples
- Node.js
- Python
Manually solving CAPTCHAs - Examples
Manually solving CAPTCHAs - Examples
- Node.js
- Python
CaptchaOptions for other Captcha types
CaptchaOptions for other Captcha types
- CF Challenge
- HCaptcha
- usercaptcha (reCAPTCHA)
Emulation Functions
Emulation.getSupportedDevices
Emulation.getSupportedDevices
Emulation.setDevice
Emulation.setDevice
Landscape mode
If you wish to change the orientation to landscape (for devices that support it), add the stringlandscape after the device_name.Custom Client SSL/TLS Certificates
Use this command to install custom client SSL/TLS certificates for domain authentication when required. These certificates remain active for the current BrowserAI session and are automatically removed when the session ends.Browser.addCertificate
Browser.addCertificate
Code examples
Code examples
-
Replace placeholder values
USER:PASSwith your valid BrowserAI credentials. -
Replace
client.pfxwith the actual path to your certificate file. This file should be a valid SSL/TLS client certificate in .pfx format. -
Replace
secretwith the actual password for the certificate.