Chrome

Headless Browser supports two specialized browser environments, one of which is Chrome. Learn more on how to start using it.

The Headless Browser Chrome environment provides high-performance remote browsers running on dedicated servers and using residential proxies for connection. These browser environments are fast, stable, and highly configurable. They can act as a drop-in replacement for your local browser infrastructure.

Key Features

  • Fast and stable performance

  • Any proxy country selection

  • Compatible with Chrome DevTools Protocol (CDP)

Connection Details

Connect to UBC using the following WebSocket endpoint:

wss://ubc.oxylabs.io

Basic Usage

from playwright.sync_api import sync_playwright

username = "your-username"
password = "your-password"
endpoint = "ubc.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://example.com')
    browser.close()

United States Proxy Infrastructure

Users, who mainly operate in the US, can connect directly to US-based infrastructure via the special entry point. This ensures faster loading time and better browsing efficiency. To establish connection, enter the following:

Code examples:

circle-info

Note: this solution primarily shortens the response time for the US-based users, and should not be confused with proxy geo-location selection. More on that in the following section.

Browser Arguments

Headless Browser Chrome accepts additional browser arguments passed with connection URL in the format of ?bargs=. These GET parameters specify command-line arguments that browsers should be started with.

  1. If the argument should have value, we use bargs=argname:argvalue;

  2. If the argument is just a flag, we use bargs=flagname .

Currently, Oxylabs Headless Browser Chrome supports the following arguments:

Argument
Description

force-color-profile:<profile>

Force all monitors to be treated as though they have the specified color profile.

window-position:X,Y

Specifies the initial window position.

hide-scrollbars

Prevents creating scrollbars for web content – useful for taking consistent screenshots.

enable-features:<feature1>,<feature2>,<feature3>

Comma-separated list of feature names to enable.

disable-notifications

Disables the Web Notification and the Push APIs.

Usage example:

Was this helpful?