Playwright proxy setup
For JavaScript-heavy targets you need a real browser. Playwright takes a proxy object at launch, with the username and password passed separately — so an authenticated residential gateway just works, headless or headed.
Connection details
Swap PROXY_USER / PROXY_PASS for the credentials on your dashboard. New here? Create an account to generate a key.
Playwright proxy example
Steer the exit IP from the username
Tips & gotchas
- Put targeting in the username field, e.g. PROXY_USER__cr.us — the server field stays host:port only.
- Node Playwright is identical: pass { server, username, password } to browserType.launch.
Playwright, answered
Why split the username and password in Playwright?
Chromium cannot parse credentials embedded in the proxy URL, so Playwright exposes username and password as separate fields. Keep the server value as http://host:port and put auth (and any targeting) in those fields.
Can I keep one IP for a whole browser session?
Yes — add a sticky session id to the username (PROXY_USER__sessid.abc123;sessttl.30). The browser then holds the same residential IP across navigations, which avoids re-triggering anti-bot checks.
Ready to route Playwright through residential IPs?
Create an account, paste the code above, and we'll add your first 1 GB of residential free on your first top-up. Pay by the GB after that — no subscription.