> For the complete documentation index, see [llms.txt](/llms.txt). This page's section is indexed at [/baas/llms.txt](/baas/llms.txt).

# Connection URL Patterns

# Connection URL Patterns

Every browser connection to Browserless (Puppeteer, Playwright, or BrowserQL) uses a WebSocket URL; the [REST APIs](/rest-apis/intro) use an HTTPS URL to the same regional hosts. Either way there's no account-specific URL to look up: you build the URL yourself from a regional endpoint, a path, and your API token, and any region works with any account. This page covers all valid WebSocket paths and explains when to use each one.

- A Browserless API token from your [account dashboard](https://browserless.io/account/)

## Connection URL Builder

## Complete URL Anatomy

A full connection URL combines a regional endpoint, a path, your API token, and any launch options:

```bash
wss://production-sfo.browserless.io/chromium/playwright?token=TOKEN&blockAds=true
```

| Component | Example value | Description |
|-----------|---------------|-------------|
| Protocol | `wss://` | WebSocket Secure, required for all connections |
| Regional endpoint | `production-sfo.browserless.io` | Choose the [region](#regional-endpoints) closest to your target |
| Path | `/chromium/playwright` | Browser and protocol mode |
| Auth | `token=TOKEN` | Your API token |
| Launch options | `blockAds=true` | Query parameters that configure the browser |

See [Launch parameters](/baas/launch-options) for the full list of query parameters.

## Connection Paths

All paths accept WebSocket connections. Paths are case-sensitive.

### CDP

CDP is the default connection mode. Use it with Puppeteer, Playwright in CDP mode, or any library that speaks chrome-devtools-protocol. Connect to `/chromium` or `/chrome`; both work with the same client code. Choose CDP for the widest library compatibility.

| Path | Browser | Notes |
|------|---------|-------|
| `/` | Chromium | Default; equivalent to `/chromium` |
| `/chromium` | Chromium | Open-source Chromium build |
| `/chrome` | Chrome | Licensed Google Chrome binary |

### Playwright Native

Playwright Native uses Playwright's own browser server protocol instead of CDP. Use it when you need Playwright-specific APIs: `page.route()` for network interception, `APIRequestContext`, or multi-browser support with Firefox and WebKit. Connect using `playwright.connect({ wsEndpoint })` with a `/chromium/playwright`, `/firefox/playwright`, or `/webkit/playwright` path.

| Path | Browser | Notes |
|------|---------|-------|
| `/chromium/playwright` | Chromium | Playwright native protocol on Chromium |
| `/chrome/playwright` | Chrome | Playwright native protocol on Chrome |
| `/firefox/playwright` | Firefox | Playwright native protocol on Firefox |
| `/webkit/playwright` | WebKit | Playwright native protocol on WebKit/Safari |
| `/edge/playwright` | Edge | Playwright native protocol on Microsoft Edge |

For a feature comparison of `connect` vs `connectOverCDP`, see [connect vs connectOverCDP](/baas/advanced-configurations/playwright-customizations#connect-vs-connectovercdp).

### Stealth

Stealth routes layer anti-detection hardening on top of the browser. Use stealth when the target site has bot detection. `/stealth` provides the strongest baseline with a purpose-hardened browser. `/chromium/stealth` and `/chrome/stealth` add anti-detection to your chosen browser binary. See [Stealth Routes](/baas/bot-detection/stealth) for guidance on choosing the right variant.

| Path | Browser | Notes |
|------|---------|-------|
| `/stealth` | Stealth browser | Purpose-hardened binary; highest evasion baseline |
| `/chromium/stealth` | Chromium | Chromium with anti-detection layer |
| `/chrome/stealth` | Chrome | Chrome with anti-detection layer |

Any stealth route also accepts the [`emulationOs`](/baas/bot-detection/os-emulation) query parameter (`windows`, `macos`, `linux`, `android`, or `ios`) to present a coherent OS fingerprint instead of the default Linux identity. `android` and `ios` present a phone or tablet.

> **Chrome vs Chromium**
> `/chrome` and `/chromium` paths use different browser binaries but share the same feature set: CDP proxy, session replay, captcha solving, and proxy support all work on both. Chrome uses the licensed Google Chrome binary, which includes proprietary codec and DRM support. Chromium uses the open-source build, which does not. For most automation tasks, either works identically.

## Regional Endpoints

Browserless runs in multiple regions. Use the endpoint closest to your target sites or your own infrastructure to reduce latency. All paths and protocol modes work identically across regions.

| Region | Endpoint |
|--------|----------|
| US West (San Francisco) | `production-sfo.browserless.io` |
| Europe (London) | `production-lon.browserless.io` |
| Europe (Amsterdam) | `production-ams.browserless.io` |

## FAQ & Troubleshooting

<details>
<summary>Where do I find my WebSocket URL, endpoint, or region?</summary>

There's nothing to find: the URL isn't account-specific, so it doesn't appear in the dashboard. Build it yourself by picking any [regional endpoint](#regional-endpoints) and appending a path and your API token:

```bash
wss://production-sfo.browserless.io/chromium/playwright?token=YOUR_API_TOKEN_HERE
```

Your account has no assigned region; pick whichever is closest to you or your target sites. The only account-specific value is the token, which lives in your [account dashboard](https://browserless.io/account/). If a tool asks for a "base URL" or "host" without the `wss://` protocol, use `production-sfo.browserless.io` (or your chosen region).

</details>

<details>
<summary>Why am I getting <code>401 Unauthorized: Invalid API key</code>?</summary>

The token in your URL isn't valid: it's missing, mistyped, truncated, regenerated since you copied it, or from a different account. Copy the current token from your [account dashboard](https://browserless.io/account/) and pass it as `?token=` in the URL. If your client strips query parameters (some frameworks do), check the final URL it actually dials.

</details>

<details>
<summary>Why does my WebSocket fail with <code>HTTP Authentication failed; no valid credentials available</code>?</summary>

Put your token in the URL as `?token=YOUR_API_TOKEN_HERE` and check that it's current in your [account dashboard](https://browserless.io/account/). This is Chrome's wording for a `401` on the WebSocket handshake. Chrome hides the response body, so you don't see the real reason. Browser WebSockets can't send an `Authorization` header, so a token you passed as a header over HTTP isn't sent once you switch to `wss://`. A `401` also comes back when the token is invalid, the account is out of units, or your plan doesn't allow a requested proxy option. Make the same request over HTTPS to read the full error message.

</details>

<details>
<summary>My tool or template uses <code>wss://chrome.browserless.io</code> and won't connect</summary>

That's the legacy v1 domain, and many older tutorials, n8n templates, and code generators still emit it. Replace it with a current regional endpoint, keeping your token:

```bash
# Old (v1, no longer works for v2 accounts)
wss://chrome.browserless.io?token=YOUR_API_TOKEN_HERE

# New
wss://production-sfo.browserless.io?token=YOUR_API_TOKEN_HERE
```

See the [migration guide](/baas/migrate) for the other v1-to-v2 changes.

</details>

<details>
<summary>Is there an Asia-Pacific region?</summary>

Not currently. The regions are San Francisco, London, and Amsterdam; measure latency from your own infrastructure against all three and pick the fastest. If what you actually need is requests exiting from a specific country (say, India), that's a proxy setting rather than a region: use the [residential proxy](/baas/bot-detection/proxies) with `proxyCountry`.

</details>

<details>
<summary>Why am I getting a <code>403 Forbidden</code> error?</summary>

Your API token is missing or expired. Pass it as a `?token=` query parameter in the WebSocket or HTTP URL. Verify the token in your [account dashboard](https://browserless.io/account/).

</details>

<details>
<summary>My script works locally but fails on Browserless</summary>

Local browser settings may differ from the Browserless environment. Use `launch` parameters to match your local setup (viewport, user agent, timezone). See [launch parameters](/baas/launch-options) for the full list.

</details>

## Next steps

  <a href="/baas/launch-options" className="next-step-card-link">
    
      <h3 className="next-step-card-title">Launch Options</h3>
      Customize browser behavior with query parameters
    
  </a>

  <a href="/baas/session-management" className="next-step-card-link">
    
      <h3 className="next-step-card-title">Session Management</h3>
      Reuse and persist browser sessions across connections
    
  </a>

  <a href="/baas/bot-detection/stealth" className="next-step-card-link">
    
      <h3 className="next-step-card-title">Stealth Routes</h3>
      Choose the right stealth configuration for bot detection evasion
    
  </a>