Skip to content

GET /connect

Creates a browser and returns its CDP WebSocket URL as plain text. Pass that returned URL to Playwright, Puppeteer, Selenium, or any CDP client.

URL: GET http://localhost:9222/connect

Auth: None.

Parameter Default Example Description
headlesstrueheadless=falseRun with or without a visible browser window.
oslinuxos=windowsFingerprint OS: windows, linux, android, macos.
browser_namechromebrowser_name=chromeBrowser fingerprint type.
browser_version_minlatestbrowser_version_min=146Minimum Chrome version to emulate.
browser_version_maxlatestbrowser_version_max=146Maximum Chrome version to emulate.
proxynoneproxy=http://user:pass@host:portRoute browser traffic through an HTTP proxy.
browser_languageautobrowser_language=en-USAccept-Language value.
ui_languageautoui_language=en-USBrowser UI locale.
screen_width_minautoscreen_width_min=1366Minimum screen width.
screen_height_minautoscreen_height_min=768Minimum screen height.
vncfalsevnc=trueReturn an x-vnc-url header for live viewing.
keepAlivefalsekeepAlive=trueKeep the browser open across CDP disconnects.
sessionIdnonesessionId=br_...Reconnect to an existing keep-alive session.
maxLifetimenonemaxLifetime=300Hard session TTL in seconds.
tokennonetoken=YOUR_API_KEYAPI key query parameter for cloud or authenticated deployments.
Terminal window
curl "http://localhost:9222/connect?headless=true&os=windows&proxy=http://user:pass@host:port"