Skip to content

ProxyFall proxies in Playwright

Playwright automates Chromium, Firefox and WebKit from Node.js, Python, Java and .NET. Here's how to set ProxyFall up for browser automation with a proxy per browser or per context, in a couple of minutes.

Setup

Set up ProxyFall in Playwright

  1. 1

    Pass proxy: { server, username, password } when launching the browser (or creating a context).

  2. 2

    Put targeting and the session in the username.

  3. 3

    Use one context per proxy line to run several IPs in one browser.

Example

import { chromium } from "playwright";

const browser = await chromium.launch({
  proxy: { server: "http://gw.proxyfall.com:59731", username: "YOUR_LOGIN-country-us-session-run1-lifetime-30", password: "YOUR_PASSWORD" },
});
const page = await browser.newPage();
await page.goto("https://ipinfo.io/json");

Replace YOUR_LOGIN and YOUR_PASSWORD with the proxy login and password in your dashboard. The dashboard's generator writes these lines for any country, state, city or ISP.

Tips

Getting the most out of it

  • Browsers can't log in to SOCKS5 proxies: use the HTTP line.
  • Contexts can each take their own proxy, so one browser can use many IPs.

FAQ

Playwright and ProxyFall: questions, answered

Do ProxyFall proxies work with Playwright?

Yes. ProxyFall is a standard HTTP(S) and SOCKS5 proxy at gw.proxyfall.com:59731 with a login and password, which Playwright supports. Targeting goes in the login, so nothing else needs configuring.

How do I rotate IPs?

Leave the session out of the login and every new connection gets a new IP. Add -session-NAME-lifetime-30 to keep one IP for 30 minutes (anything from a few minutes to 24 hours).

How much does it cost?

Residential traffic costs $0.99/GB for 1 to 49 GB and down to $0.86/GB from 1 TB, with every targeting option included and GB that never expire. Your first deposit of $5 or more, by card or crypto, adds 250 MB free.

Your first 250 MB are on us.

Free with your first $5 deposit, with every targeting option and sticky IPs up to 24 hours. Then grow at the lowest price per GB, with no expiry.

250 MB free trial

With your first $5 deposit

Get started