Browser (CDP)
Connect with Playwright
Drive the remote browser with playwright-core over CDP.
Connect playwright-core to the remote browser with connectOverCDP, passing your API key as an Authorization
header.
import { chromium } from "playwright-core";
const browser = await chromium.connectOverCDP("wss://request.usestring.ai/v1/wss", {
headers: {
Authorization: "Bearer YOUR_API_KEY"
}
});
const context = browser.contexts()[0] ?? (await browser.newContext());
const page = context.pages()[0] ?? (await context.newPage());
await page.goto("https://example.com/");
const html = await page.content();
await browser.close();To pick the proxy tier or exit country, append query parameters to the endpoint URL — e.g.
wss://request.usestring.ai/v1/wss?proxy=standard&countryCode=DE. See
Proxy tier & geolocation.
Billing
The session is metered by bandwidth and duration and billed when it ends — bandwidth at $10.00/GB on the default
premium proxy tier, $5.00/GB on standard. Close the browser as soon as you're done. See
Browser pricing.