Playwright is great as long as the job is simple: open a page, click something, grab a screenshot. Things get messier when you need several isolated browsers, each with its own settings and its own IP. Keeping all of that in code is a pain. It's easier to let Aurorium handle the profiles and leave Playwright to do what it does best — act on the page.
Here's a working minimum in JavaScript. We'll create an Aurorium profile, attach a Node Proxy proxy to it, launch the browser, check on IP Score which address the site actually sees, and then shut everything down cleanly. It's not a finished app, just a skeleton you can grow your own scripts from.
Who does what
In short: Aurorium stores profiles, assigns proxies and launches the browser. Playwright attaches to the window that's already running and does whatever your script tells it to. Node Proxy supplies the IP address in the country you need, which that browser uses to reach the web.
The only thing tying them together is the ws address. The script asks the local Aurorium API to start a profile, gets that address back and connects Playwright through it. Every request parameter is covered in the Aurorium Local API docs, which are worth a look whenever something doesn't behave.
What you'll need
Node.js, an empty project folder and Playwright itself:
npm init -y
npm install playwrightNext, open Aurorium, sign in and go to Automation → API. That's where you create an API key. You'll see it exactly once, so save it to your password manager right away instead of hoping to find it later.
Don't hard-code the key. In PowerShell you can put it in an environment variable:
$env:AURORIUM_API_KEY="YOUR_API_KEY"By default the local API listens on http://127.0.0.1:50325/api/v1 and only works on the machine where Aurorium is running. To avoid repeating headers in every call, we'll write a tiny wrapper. There's one catch it handles: it checks the code field in the response, not the HTTP status. Zero means success. Anything else is an error, even if the server technically replied with 200.
const BASE = "http://127.0.0.1:50325/api/v1";
const KEY = process.env.AURORIUM_API_KEY;
async function api(path, method = "GET", body) {
const response = await fetch(BASE + path, {
method,
headers: {
Authorization: `Bearer ${KEY}`,
"Content-Type": "application/json"
},
body: body ? JSON.stringify(body) : undefined
});
const result = await response.json();
if (result.code !== 0)
throw new Error(`${result.code}: ${result.msg}`);
return result.data;
}A profile with a proxy
For this example we'll use Node Proxy residential proxies. These are IPs of regular home connections, so the site sees a visitor from the chosen country rather than a data-center server. You pick the country and city when you create a proxy list in the dashboard. If you need the same address for weeks, say for long-running checks from one location, Node Proxy static proxies are the better fit.
Host, port, login and password are in the same dashboard. In the script they look like this:
const proxy = {
type: "http",
host: "YOUR_PROXY_HOST",
port: 10000,
user: "YOUR_LOGIN",
password: "YOUR_PASSWORD"
};These are placeholders, so swap in your own values. The http type has to match what the dashboard gave you. Aurorium also understands SOCKS5, SOCKS4 and the other options listed in its docs.
Before creating the profile, I'd check the proxy itself. It takes a second and saves time: if there's a typo in the login, you find out now, not after the browser starts. The response includes the external IP and country.
const check = await api("/proxy/check", "POST", {
proxy
});
if (!check.ok) {
throw new Error("Proxy check failed");
}
console.log("External IP:", check.exit_ip);
console.log("Country:", check.country);Now the profile. The only required field is name. I added the OS just to make it clearer, and the proxy goes in right away:
const profile = await api("/profile", "POST", {
name: "Playwright test",
os: "windows",
proxy
});
console.log("Profile ID:", profile.profile_id);Hold on to profile_id: you'll need it to start, stop and delete the profile. You can also assign a proxy to an existing profile, but for a first test this is quicker.
Launching the browser and attaching Playwright
A profile starts with POST /browser/start. You can also pass a page to open as soon as it's up:
const started = await api("/browser/start", "POST", {
profile_id: profile.profile_id,
headless: false,
open_urls: ["https://ip-score.com/"]
});
console.log("CDP address:", started.ws);headless: false keeps the window visible, which is handy while debugging because you can watch what's happening. The ws field is the Chrome DevTools Protocol address Playwright connects to.
Here's where people often trip up: Playwright doesn't launch its own browser here. It hooks into the window Aurorium already opened, with all its settings and the proxy. That's why we use connectOverCDP instead of the usual launch:
const { chromium } = require("playwright");
const browser = await chromium.connectOverCDP(
started.ws
);
const context = browser.contexts()[0];
const page = context.pages()[0] || await context.newPage();If Aurorium has already opened IP Score, the script grabs that tab. If not, it opens a new one.
Which IP does the site see?
The simplest check is to open ip-score.com and see what it reports. Playwright waits for the DOM, prints the URL and page title, and saves a full-page screenshot:
await page.goto("https://ip-score.com/", {
waitUntil: "domcontentloaded",
timeout: 45000
});
console.log("URL:", page.url());
console.log("Page title:", await page.title());
await page.screenshot({
path: "ip-score-result.png",
fullPage: true
});Compare the IP and country in the screenshot with what /proxy/check returned. Small differences, like a different city, are normal: geo databases don't always agree on the same address. If the page didn't load at all, check the proxy credentials, its type and whether the site itself is up, one at a time.
Another quick option is the Node Proxy proxy checker. It's free and shows whether the proxy works, plus its exit IP, country and city.
From here it's regular Playwright: navigating between pages, finding elements, reading text. What exactly you do depends on the site and its rules.
Don't forget to stop the profile
If the script ends but the profile is still running, the browser just sits there. Stop it explicitly:
await api("/browser/stop", "POST", {
profile_id: profile.profile_id
});Deleting is a separate step. Stopping closes the browser; deleting removes the profile itself. Stop a running profile first, or pass force=true when you delete it.
await api(`/profile/${profile.profile_id}`, "DELETE");
console.log("Profile deleted");To see which profiles exist and what state they're in, call GET /profile. For narrower searches the API also accepts name, folder_id and status.
const data = await api("/profile?page=1&page_size=50");
for (const item of data.list) {
console.log(item.profile_id, item.name, item.status);
}Putting it all together
Here are the same steps in one file. The key part is try...finally: even if the page fails to load or times out, the finally block still stops the profile.
// run.js: check proxy -> profile -> browser -> page -> stop
const { chromium } = require("playwright");
// paste BASE, KEY, api() and the proxy object from the examples above
async function main() {
const check = await api("/proxy/check", "POST", { proxy });
if (!check.ok) throw new Error("Proxy check failed");
const profile = await api("/profile", "POST", {
name: "Playwright test",
os: "windows",
proxy
});
try {
const started = await api("/browser/start", "POST", {
profile_id: profile.profile_id,
headless: false
});
const browser = await chromium.connectOverCDP(started.ws);
const context = browser.contexts()[0];
const page = context.pages()[0] || await context.newPage();
await page.goto("https://ip-score.com/", {
waitUntil: "domcontentloaded",
timeout: 45000
});
await page.screenshot({ path: "ip-score-result.png", fullPage: true });
} finally {
await api("/browser/stop", "POST", { profile_id: profile.profile_id });
console.log("Profile stopped");
}
}
main().catch(console.error);One last tip: don't fire up dozens of profiles at once. Get one profile to reliably start, go through the proxy, open a page and close. Then add more, save results to JSON and cap the number of parallel launches. That way it's much easier to tell what broke and where.



