Browsers
The browser object
Section titled “The browser object”{ "id": "2c4f6a9e-…", "status": "active", "cdpUrl": "wss://…", "liveUrl": "https://…", "timeoutAt": "2026-11-09T10:30:00.000Z", "startedAt": "2026-11-09T10:15:00.000Z", "finishedAt": null, "proxyUsedMb": "0", "proxyCost": "0", "browserCost": "0", "directUsedMb": "0", "directCost": "0", "agentSessionId": null, "recordingUrl": null, "metadata": { "team": "checkout" }, "extensions": [], "profileId": "8d1e…", "proxySticky": true, "proxyImages": true, "finishReason": null}| Field | |
|---|---|
status |
active or stopped |
cdpUrl |
The Chrome DevTools Protocol address for Playwright’s connect_over_cdp, Puppeteer’s connect or any CDP client. null once stopped |
liveUrl |
The live view: watch the screen, or take control. null once stopped |
timeoutAt |
When it stops by itself |
browserCost |
Browser time charged. Final when the browser stops; while it runs, the dashboard shows the amount so far, reported about every 30 seconds |
proxyUsedMb, proxyCost |
Residential proxy traffic and its cost, final when the browser stops |
directUsedMb, directCost |
BrowserReal’s own: direct traffic and its cost, final when the browser stops |
recordingUrl, recordingAvailable |
On GET /browsers/{id} only: see Files and recordings |
extensions |
[{ id, runtimeId, version }], the extensions installed |
profileId, proxySticky, proxyImages |
BrowserReal’s own: the profile, whether a residential proxy keeps one address, and whether images load through the proxy |
finishReason |
BrowserReal’s own: stopped, timeout, balance (the balance ran out), failed, lost (the machine went away) or admin |
error |
BrowserReal’s own: tabs that ran out of memory or crashed, and why the profile could not be saved, when it could not |
cdpUrl and liveUrl are secrets: whoever has one can drive the browser, with everything its profile is signed in
to. They stop working when the browser stops. See Live view and take control.
A tab that uses more than half the browser’s memory (2 GB), or the largest one when the browser is nearly out, is
closed so that the browser keeps running: your client’s pending call fails at once with Target crashed (Playwright’s
page.on("crash") fires), the other tabs go on, and you can open a new page. When the browser stops, error says so:
A tab ran out of memory (2.2 GB) and was closed: https://….
Create a browser
Section titled “Create a browser”POST /browsers → 201 the browser
Every field is optional; {} starts a clean browser, without a proxy, for an hour.
| Field | Type | |
|---|---|---|
timeout |
integer | Minutes until it stops by itself, 1–240. Default 60 |
profileId |
uuid | A profile to start from and save back to. A profile that other browsers run on already is shared live with them: this request still starts a browser of its own |
metadata |
object | Up to 10 string pairs (keys up to 100 characters, values up to 1,000), for your own bookkeeping and for filtering lists and History |
proxyCountryCode |
string | null | A residential proxy in this country ("de"). Omitted or null: no proxy. See Proxies |
proxySticky |
boolean | BrowserReal’s own. false: a new residential address for every connection. Default true |
proxyImages |
boolean | BrowserReal’s own. false: images load from the machine’s own address rather than through the proxy, to save proxy traffic (charged as direct traffic). Default true |
customProxy |
object | Your proxy: { host, port, username?, password?, protocol? }. protocol is http, https or socks5; left out, https on port 443 and http otherwise |
networkPolicyId |
uuid | A network policy |
extensionIds |
uuid[] | Up to 3 extensions |
enableRecording |
boolean | Record the screen. Default false |
enableAudio |
boolean | BrowserReal’s own. Stream browser sound and include it in recordings when recording is enabled. Default false |
enableAdBlocking |
boolean | BrowserReal’s own. Load uBlock Origin Lite. Default false |
browserScreenWidth, browserScreenHeight |
integer | A fixed screen size, 320–6144 by 320–3456. Default 1920 by 1080 |
allowResizing |
boolean | Let your client resize the window (Browser.setWindowBounds). Default false |
solveCaptchas |
boolean | Click Cloudflare Turnstile’s checkbox. Default true |
pdfRendererEnabled |
boolean | Show PDFs in Chrome’s viewer. false turns the viewer off, so a PDF is downloaded instead of shown. Default true |
curl -X POST https://browser.datum.network/api/v4/browsers \ -H "X-Browser-Use-API-Key: $DATUM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"timeout": 30, "proxyCountryCode": "gb", "enableRecording": true, "metadata": {"team": "checkout"}}'Errors: 402 balance_exhausted, 404 for an unknown profile, policy or extension, 409 profile_in_use,
422 for a value not accepted, 429 too_many_sessions, 429 no_capacity or 503 browser_capacity,
503 proxy_pool_empty, 503 start_failed. See Errors.
An Idempotency-Key header keeps a repeated create request from starting a second browser: see the
API overview.
List browsers
Section titled “List browsers”GET /browsers → a page of browsers, newest first
| Query | |
|---|---|
pageSize, pageNumber |
Pagination |
filterBy |
active or stopped |
metadata |
key or key=value; repeat it to require several |
curl "https://browser.datum.network/api/v4/browsers?filterBy=active&metadata=team=checkout" \ -H "X-Browser-Use-API-Key: $DATUM_API_KEY"Get a browser
Section titled “Get a browser”GET /browsers/{id} → the browser, with recordingUrl and recordingAvailable
Stop a browser
Section titled “Stop a browser”PATCH /browsers/{id} → the browser
{ "action": "stop" }The profile is saved, downloads and the recording are kept, the machine is deleted, and the minutes are charged. Stopping a stopped browser does nothing.
While another CDP client is still connected, the browser is not stopped: the response is 200 with the browser,
still active, and a stopRefused message. This keeps one agent from ending a browser another is using. Close your
own connection first, or send "force": true to stop it for everyone:
curl -X PATCH https://browser.datum.network/api/v4/browsers/$ID \ -H "X-Browser-Use-API-Key: $DATUM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"action": "stop", "force": true}'A refused stop is not an error, so check the status it returns: a browser left active runs, and is billed, until
its timeout. The Browser Use SDKs’ stop has no force, and the Python SDK does not show stopRefused.
A browser a person has taken control of in the live view is not stopped by an agent,
even with force.