# Unblocking Browser

Unblocking Browser enables you to run and control remote headless browsers without the complexity of managing them locally or on your own infrastructure. It provides a seamless way to execute browser-based automation, testing, and web scraping without dealing with browser setup, resource constraints, or detection challenges.&#x20;

## Supported Libraries

Unblocking Browser works with any library that supports the **Chrome DevTools Protocol (CDP)**. This includes:

* [Playwright](https://playwright.dev/) (for the Firefox endpoint, the latest supported Playwright version is 1.51.x)
* [Puppeteer](https://pptr.dev/)
* Other CDP-compatible automation frameworks

## Browser Options

Unblocking Browser offers two specialized browser environments:

* [Chrome-based browser](/~/changes/1231/scraping-solutions/unblocking-browser/chrome.md) – high-performance remote browsers running on dedicated servers with residential proxies
* [Firefox-based browser](/~/changes/1231/scraping-solutions/unblocking-browser/firefox.md) – advanced stealth-focused Firefox implementation with built-in anti-detection features and automatic residential proxy integration.

Additionally, Unblocking Browser allows two location-related functionalities:

* Performance optimization for the US-based users
* Geo-location parameters for country-level targeting.

## Quick Start Examples

{% tabs %}
{% tab title="Python" %}

```python
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')
    print(page.title())
    browser.close()
```

{% endtab %}

{% tab title="JavaScript (Playwright)" %}

```javascript
import { chromium } from '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://example.com');
    console.log(await page.title());
    await browser.close();
})();
```

{% endtab %}

{% tab title="JavaScript (Puppeteer)" %}

```javascript
import puppeteer from 'puppeteer';

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

  const browser = await puppeteer.connect({
    browserWSEndpoint: browserUrl
  });
  const page = await browser.newPage();
  await page.goto('https://example.com');
  console.log(await page.title());
  await browser.close();
})();
```

{% endtab %}
{% endtabs %}

See the browser-specific documentation for detailed configuration options:

* [Chrome-based browser](/~/changes/1231/scraping-solutions/unblocking-browser/chrome.md)
* [Firefox-based browser](/~/changes/1231/scraping-solutions/unblocking-browser/firefox.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.oxylabs.io/~/changes/1231/scraping-solutions/unblocking-browser.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
