Skip to main content
Version: v2

Connection URL Patterns

Browserless supports various connection URL patterns for different use cases and library integrations. Understanding these patterns helps you choose the right connection method for your specific automation needs.

Pattern Examples

PatternDescriptionExample
Puppeteer/Playwright CDPStandard WebSocket connection for Puppeteer and Playwright CDP modewss://production-sfo.browserless.io?token=TOKEN
Playwright NativePlaywright server mode connection with native protocol supportwss://production-sfo.browserless.io/chromium/playwright?token=TOKEN
Stealth ModeEnhanced bot detection evasion with stealth capabilitieswss://production-sfo.browserless.io/chrome/stealth?token=TOKEN

Connection URL Builder

Use the interactive builder below to generate the appropriate connection URL for your use case:

BaaS Connection URL Builder

Connection URL:

wss://production-sfo.browserless.io/?token=YOUR_TOKEN

Code Snippet:

const browser = await puppeteer.connect({
  browserWSEndpoint: 'wss://production-sfo.browserless.io/?token=YOUR_TOKEN',
});

Pattern Details

Puppeteer/Playwright CDP Pattern

The standard WebSocket connection pattern used by most Puppeteer and Playwright CDP implementations. This is the most common pattern for browser automation.

Use cases:

  • Standard web scraping
  • Form automation
  • Screenshot generation
  • PDF creation

Playwright Native Pattern

Playwright's native protocol connection that provides enhanced performance and additional features not available in CDP mode.

Use cases:

  • High-performance automation
  • Advanced Playwright features
  • Network interception
  • Mobile device emulation

Stealth Mode Pattern

Enhanced connection pattern with built-in bot detection evasion capabilities.

Use cases:

  • Sites with sophisticated bot detection
  • E-commerce automation
  • Social media automation
  • Data extraction from protected sites

Regional Endpoints

All patterns support the same regional endpoints for latency optimization:

RegionEndpointLocation
US Westproduction-sfo.browserless.ioSan Francisco, USA
Europe UKproduction-lon.browserless.ioLondon, England
Europe Amsterdamproduction-ams.browserless.ioAmsterdam, Netherlands