# Start using Headless Browser

### Creating a Headless Browser user

1. Create a [dashboard](https://dashboard.oxylabs.io/) account and navigate to Scraping Solutions → Headless Browser → Pricing.&#x20;
2. 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.&#x20;
3. After receiving access, you’ll need to create a Headless Browser user in the dashboard.&#x20;
4. 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.&#x20;

#### Playwright example in Python

Install the Playwright library through your terminal:

```
pip install playwright
```

Use your Headless Browser credentials and run the code:

```
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://oxylabs.io/')
    print(page.title())
    browser.close()
```

#### Playwright example in JavaScript

Install the Playwright library through your terminal:

```
npm init -y
npm install playwright
```

Enter your Headless Browser credentials and run the code:

```
const { chromium } = require('playwright');

(async () => {
    const username = 'your-username';
    const password = 'your-password';
    const endpoint = 'ubc.oxylabs.io';
    const browserUrl = `wss://${username}:${password}@${endpoint}`;

    const browser = await chromium.connectOverCDP(browserUrl);
    const page = await browser.newPage();
    await page.goto('https://oxylabs.io/');
    console.log(await page.title());
    await browser.close();
})();
```

For more information and examples on using the Headless Browser, visit our [**extensive documentation**](https://developers.oxylabs.io/scraping-solutions/unblocking-browser) or contact our support team at [**support@oxylabs.io**](mailto:support@oxylabs.io).

### Browser types

For now, Headless Browser offers remote Chrome and Firefox browsers, each having unique strengths:

* **Chrome:** The fastest and most reliable browser, capable of handling CAPTCHAs, emulating devices, and supporting custom browser arguments.
* **Firefox:** The stealthiest option, featuring built-in anti-detection tools and advanced fingerprint management.

Headless Browser uses the WebSocket protocol and provides separate connection endpoints for each browser.

* **Chrome:** wss\://ubc.oxylabs.io
* **Firefox:** wss\://ubs.oxylabs.io

Check out our [Chrome documentation](https://developers.oxylabs.io/scraping-solutions/unblocking-browser/chrome) and [Firefox documentation](https://developers.oxylabs.io/scraping-solutions/unblocking-browser/firefox) to find more details and examples.

### Additional free features

* Built-in proxy servers for routing requests through specific geographic locations.
* Session inspection for visual debugging of browser automation sessions.
* Specifying device type (Chrome only) for handling responsive layouts, mobile content, and CAPTCHAs or UI elements.
* Dynamic CAPTCHA (Chrome only) for manually triggering the handling of dynamic, post-load CAPTCHAs.
* Browser arguments (Chrome only) for handling various browser actions, such as disabling web notifications.
