Browser API
Control a remote RunHBrowser through RunHarvester proxies with Puppeteer or Playwright over a single wss:// URL.
Browser API gives your script a remote browser named RunHBrowser. You create a browser account on the RunHarvester site, copy its wss:// connection URL, and hand that URL to Puppeteer or Playwright (Node.js, Python, Java, or .NET). The browser runs on RunHarvester infrastructure and every request it makes leaves through a RunHarvester proxy, so the target site sees a proxy address and never the address of your machine or of RunHarvester itself.
wss://<login>:<password>@browser.runharvester.comYour script keeps its normal automation code. Pages, goto, evaluate, request interception, cookies, screenshots, and several tabs all work. See Blocking policy for the few things that do not.
How it fits together
- Create a browser account on the Browser API page of the dashboard. It issues a login and a password and shows the connection URL.
- Optionally add modifiers to the login to choose an exit country, a proxy type, a persistent profile, a named session, or a customer proxy. See Connection URL.
- Connect from your script. RunHarvester checks the account and balance, picks a route, starts a browser, and opens the WebSocket.
- Traffic is metered per gigabyte and charged in portions while the session runs. See Billing.
Start with the Quickstart.
Security model
- The URL is a secret. It contains the password. Credentials are accepted only from the HTTP
Authorization: Basicheader that Puppeteer and Playwright build from the URL; a URL with a query string (?...) is refused with HTTP 400. Treat the URL like an API key and keep it in an environment variable or secret store. - Wrong login and wrong password look the same. Both answer
401 UNAUTHORIZED, so a caller cannot probe which logins exist. Repeated wrong passwords lead to429 RATE_LIMITED. - The browser is isolated from private networks. Requests to private, loopback, and link-local addresses are refused, and only ports 80 and 443 are reachable.
- Dangerous browser commands are blocked. Commands that would touch the host, such as downloads, file URLs, and browser-wide control, answer a
POLICY_BLOCKEDerror. See Blocking policy. - Some site categories are never reachable. A platform-wide blocklist covers government, banking, payments, crypto exchanges, and adult content. You can add your own allow and deny lists per account.
- Proxy details stay private. Browser API reports only the network class of a session (
datacenter,residential,own, orcustom), never which provider or route carried it. - The Live view never receives your secrets. The CDP URL and password are not passed to it.
- The session timeline is minimal. Events show hosts only, never paths or query strings, and are kept for 30 days.
Limits at a glance
| Limit | Value |
|---|---|
| Browser accounts per user | 10 |
| Concurrent sessions per account | 5 |
| Session length | 30 minutes |
| Reconnect window after a disconnect | 60 seconds |
| Profiles per account | up to 1000 (at least one is always kept) |
| Stored size of one profile | up to 50 MB |
| Live sessions per profile | 1 |
Sticky exit-IP time (ttl) | 0 to 120 minutes |
| Largest WebSocket message | 8 MB |
| Reachable ports | 80 and 443 |
Support can raise limits for a user. Details on each limit are in Profiles and sessions.
Dashboard
The Browser API page of the dashboard has these tabs:
| Tab | What it does |
|---|---|
| Accounts | Create browser accounts with a generated password or your own (16 to 64 letters and digits). Reveal the password and rotate it; both actions are audited. Set the account's defaults and its allow and deny lists. |
| Profiles | List and manage persistent profiles. Generate URLs creates up to 999 new profile URLs at once, with the country and proxy chosen once per batch. |
| Sessions | A timeline of running and past sessions with their events (hosts only, kept 30 days). Kill ends a running session. Live view lets you watch a running session and, by an explicit switch, take control of it. |
| Connection | The connection URL for your accounts, ready to copy. |
| Analytics | Usage analytics for your sessions. |
| Docs | Links to this documentation. |
The traffic rates for every network class are shown on the same page.
Next steps
- Quickstart: connect in five languages.
- Connection URL: every modifier and the priority rules.
- Profiles and sessions: persistence, reconnect, and limits.
- Blocking policy: what is blocked and how it looks.
- Captcha: automatic and manual solving.
- Billing: portions, classes, and balance behavior.
- Errors and close codes: handshake errors and WebSocket close codes.
Last updated on