Skip to content

cloud-browser#15

Merged
jjsaunier merged 1 commit into
mainfrom
cloud-browser
Apr 8, 2026
Merged

cloud-browser#15
jjsaunier merged 1 commit into
mainfrom
cloud-browser

Conversation

@jjsaunier
Copy link
Copy Markdown
Member

Summary

Add Cloud Browser support to the SDK.

  • BrowserConfig exposes the full Cloud Browser parameter surface (proxy_pool, os, country, session, auto_close, timeout, debug, extensions, block_images, block_styles, block_fonts, block_media, screenshot, resolution, target_url, cache, blacklist, unblock, unblock_timeout, browser_brand, byop_proxy).
  • ScrapflyClient.cloudBrowser(config) builds the WebSocket URL ready for playwright.connectOverCDP() / puppeteer.connect().
  • byop_proxy accepts http, https, socks5, socks5h, socks5+udp, socks5h+udp. The +udp variants enable HTTP/3 (QUIC) via SOCKS5 UDP ASSOCIATE for providers that implement RFC 1928 §7.

See https://scrapfly.io/docs/cloud-browser-api/getting-started

Test plan

  • new BrowserConfig({...}).websocketUrl(apiKey) returns a valid wss://browser.scrapfly.io?... URL
  • byop_proxy: 'socks5h+udp://...' is properly URL-encoded as byop_proxy=socks5h%2Budp%3A%2F%2F...
  • Connect via playwright.connectOverCDP(client.cloudBrowser(config)) against the live Cloud Browser endpoint

Add Cloud Browser support to the SDK. BrowserConfig holds the full
parameter surface (proxy_pool, os, country, session, auto_close, timeout,
debug, extensions, block_*, screenshot, resolution, target_url, cache,
blacklist, unblock, unblock_timeout, browser_brand, byop_proxy) and
ScrapflyClient.cloudBrowser(config) builds the WebSocket URL ready
for playwright.connectOverCDP() / puppeteer.connect().

byop_proxy lets Custom plan users route browser traffic through their
own proxy. Supported schemes: http, https, socks5, socks5h, socks5+udp,
socks5h+udp. The +udp variants enable HTTP/3 (QUIC) via SOCKS5 UDP
ASSOCIATE for providers that implement RFC 1928 §7.

See https://scrapfly.io/docs/cloud-browser-api/getting-started
@jjsaunier jjsaunier merged commit d4cbdea into main Apr 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant