PW
Browser Automation
Playwright proxy integration
Playwright has built-in proxy support with separate username and password fields, so no extra packages are needed. Pass the Aethyn server, username (with any targeting suffix), and password to launch, and the browser routes through a residential IP.
Setup steps
- 1Install Playwright: pip install playwright (or npm i playwright).
- 2Pass a proxy object to chromium.launch().
- 3Put targeting suffixes in the username field.
- 4Browse with a real, fingerprint-consistent browser.
Code
Playwright (Python)
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(proxy={
"server": "http://proxy.aethyn.io:2099",
"username": "aethyn-XXXXX-country-us",
"password": "PASSWORD",
})
page = browser.new_page()
page.goto("https://httpbin.org/ip")
print(page.content())
browser.close()Playwright (Node.js)
import { chromium } from "playwright";
const browser = await chromium.launch({
proxy: {
server: "http://proxy.aethyn.io:2099",
username: "aethyn-XXXXX-country-us",
password: "PASSWORD",
},
});
const page = await browser.newPage();
await page.goto("https://httpbin.org/ip");
console.log(await page.content());
await browser.close();Replace aethyn-XXXXX and PASSWORD with your dashboard credentials. See the full targeting reference and protocol/port list. Or use the official proxy-builder-sdk to build targeting strings without hand-assembling usernames.
Tips
- Keep server as host:port and put credentials in username/password.
- Set a per-context proxy to run multiple identities in one process.
- For the hardest targets, use the Elite tier with city/ISP targeting.
Playwright proxy FAQ
Does Playwright support per-context proxies?
Yes. You can pass a proxy at browser.newContext() level, letting you run several residential identities from a single browser instance.
Docs, solutions & blog
Related solution guideEnd-to-end workflow that pairs with this integration.Node.js SDKproxy-builder-sdk on npm — TypeScript types, forPlaywright(), and multi-provider support.Premium residential proxiesCost-efficient rotating residential pool from €2.00/GB for bulk scraping and monitoring.Elite residential proxiesCurated high-trust pool with city and ISP targeting for hard anti-bot targets.Quickstart docsCredentials, endpoints, and your first proxied request.Related blog articleDeeper context on proxies, errors, and anti-bot for this stack.