Scale your headless browser automation with rotating residential IPs.
While standard HTTP request libraries are great for static HTML, modern web scraping requires rendering complex JavaScript environments. Tools like Puppeteer and Playwright allow you to spin up headless Chrome instances, but if you don't route them through a residential proxy, your server IP will be instantly blacklisted.
One of the biggest hurdles developers face when setting up headless browsers is proxy authentication. Unlike standard API requests, Chromium does not allow you to pass a username and password directly inside the proxy server URL.
If you try to pass http://user:[email protected] as a launch argument, Puppeteer will crash or throw a connection error.
To do this correctly, you must pass the host and port in the launch arguments, and then use the page.authenticate() method to pass your TrustProxy credentials. Here is the exact blueprint:
const puppeteer = require("puppeteer");
(async () => {
const browser = await puppeteer.launch({
args: ["--proxy-server=http://pool.trustproxy.io:8000"]
});
const page = await browser.newPage();
// Authenticate with TrustProxy
await page.authenticate({
username: "your_trustproxy_user",
password: "your_trustproxy_pass"
});
await page.goto("https://whatismyip.com");
await browser.close();
})();
Running a headless browser is resource-intensive. If you are spending the compute power to render full pages, you cannot afford to have your IP blocked on the first request. TrustProxy's rotating residential pool ensures every new browser instance gets a fresh, highly trusted consumer IP address.
Get seamless integration with Puppeteer, Playwright, and Selenium. Never worry about CAPTCHAs or proxy connection errors again.
View Developer PricingA proxy provider you can just trust.