Integration guide
Use a proxy with Playwright
Playwright takes proxy settings at launch or per browser context.
Get your details
Copy the host, port, username and password for your proxy from the dashboard. Where this page writes <host>, <port>, <username> or <password>, paste your own values.
Set the proxy at launch
Credentials go in their own fields, not in the server URL.
import { chromium } from "playwright";
const browser = await chromium.launch({
proxy: {
server: "http://<host>:<port>",
username: process.env.PROXY_USER,
password: process.env.PROXY_PASS,
},
});
const page = await browser.newPage();
await page.goto("https://api.ipify.org");
console.log(await page.textContent("body"));
await browser.close();One proxy per account
To give each account its own address, create a browser context per account, each with its own proxy option. Pair one static IP with one profile and keep it for the life of the account.
Keep reading
Ready to connect?
Create an account and copy your proxy details from the dashboard.