Proxies for Playwright
Playwright supports proxies with usernames and passwords directly, per browser or per context. Sticky residential IPs keep each context on one address.
Our pick for Playwright
Residential
$2.64 per GB
- Setting
- The same IP for each session
- Targeting
- Country, state and city
- Protocols
- HTTP and SOCKS5
How to set it up for Playwright
The same IP for each session. Keep one IP for as long as a session lasts, usually 10 to 30 minutes, by adding a session ID to the username in the generator.
- Pass proxy: { server, username, password } to launch() or newContext().
- Use a different session ID per context to get a different IP for each.
- Use Residential Lite for large volumes on easier sites.
Other proxy types that work
Start with our pick. If Playwright still blocks or challenges you, move to the next type in the list; if it works, you can try the cheaper option for bulk work.
Steps
- Buy the smallest Residential plan, one gigabyte, to test with Playwright. Pay by card or crypto; the plan is delivered by itself, usually within a minute.
- Open the plan in your dashboard and copy the ready-to-paste line, or make a list in the generator with the country and session you need.
- Paste it into your Playwright code or settings, and press the test button on the plan page to see the IP and country.
- Run a small job on Playwright first. If it works, top up the same plan and keep the login; if it is blocked, try the next proxy type above.
A proxy changes where your traffic comes from. It does not change Playwright's rules: follow its terms and the law, and our acceptable use policy applies to every plan.
Questions about proxies for Playwright
Which proxy is best for Playwright?
Residential, set to the same ip for each session. Playwright supports proxies with usernames and passwords directly, per browser or per context. Sticky residential IPs keep each context on one address.
Can Playwright use a different proxy per context?
Yes, pass proxy settings to browser.newContext().
Does Playwright work with SOCKS5?
Yes, with server set to socks5://HOST:PORT.