Start using Headless Browser
Creating a Headless Browser user
Create a dashboard account and navigate to Scraping Solutions → Headless Browser → Pricing.
Choose a pricing plan that works for you and contact our sales team to continue. You may also get a free trial to test the product.
After receiving access, you’ll need to create a Headless Browser user in the dashboard.
Enter a username and password that will be used for authentication.
Making your first request
You can connect to Headless Browser using Playwright, Puppeteer, or any tools that support the Chrome DevTools Protocol (CDP). Additionally, you can integrate directly with AI applications through the Model Context Protocol (MCP), enabling full automation of your browsing workflows.
Let’s try a basic connection to the Headless Browser using Playwright.
Playwright example in Python
Install the Playwright library through your terminal:
pip install playwrightUse your Headless Browser credentials and run the code:
from playwright.sync_api import sync_playwright
username = "your-username"
password = "your-password"
endpoint = "hb.oxylabs.io"
browser_url = f"wss://{username}:{password}@{endpoint}"
with sync_playwright() as p:
browser = p.chromium.connect_over_cdp(browser_url)
page = browser.new_page()
page.goto('https://oxylabs.io/')
print(page.title())
browser.close()Playwright example in JavaScript
Install the Playwright library through your terminal:
Enter your Headless Browser credentials and run the code:
For more information and examples on using the Headless Browser, visit our extensive documentation or contact our support team at support@oxylabs.io.
Additional free features
Built-in proxy servers for routing requests through specific geographic locations.
Country, city and state-level geotargeting for pinpointing the exact location your session runs from.
Session inspection and recording for visual debugging of browser automation sessions.
Specifying device type for handling responsive layouts, mobile content, and CAPTCHAs or UI elements.
CAPTCHA handling and dynamic manual triggering for dynamic, post-load CAPTCHAs.
Last updated
Was this helpful?

