Browser (CDP)
Connect with Puppeteer
Drive the remote browser with puppeteer-core.
Connect puppeteer-core to the remote browser by pointing browserWSEndpoint at the /wss endpoint and passing your
API key as an Authorization header.
import puppeteer from "puppeteer-core";
const browser = await puppeteer.connect({
browserWSEndpoint: "wss://request.usestring.ai/v1/wss",
headers: {
Authorization: "Bearer YOUR_API_KEY"
}
});
const page = await browser.newPage();
await page.goto("https://example.com/");
const html = await page.content();
await page.screenshot({ path: "screenshot.png" });
await browser.disconnect();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 or disconnect the browser as soon as you're done. See
Browser pricing.