create_browser_session
Spin up a new cloud browser session.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
timeout | int | No | 60 | Session timeout in minutes (5–1440). Timer starts after the session is ready. |
proxy_location | ProxyLocation | No | None | Route browser traffic through a geographic proxy. |
extensions | list[Extensions] | No | None | Browser extensions to install. Options: "ad-blocker", "captcha-solver". |
browser_type | PersistentBrowserType | No | None | Browser type. Options: "chrome", "msedge". |
Returns BrowserSessionResponse
| Field | Type | Description |
|---|---|---|
browser_session_id | str | Unique ID. Starts with pbs_. |
status | str | None | Current session status. |
browser_address | str | None | CDP address for connecting to the browser. |
app_url | str | None | Link to the live browser view in the Cloud UI. |
timeout | int | None | Configured timeout in minutes. |
started_at | datetime | None | When the session became ready. |
created_at | datetime | When the session was requested. |
Example: Chain multiple tasks in one session
get_browser_session
Get the status and details of a session.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
browser_session_id | str | Yes | The session ID. |
Returns BrowserSessionResponse
get_browser_sessions
List all active browser sessions.
Returns list[BrowserSessionResponse]
close_browser_session
Close a browser session and release its resources.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
browser_session_id | str | Yes | The session ID to close. |

