Skip to main content
GET
/
browsers
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

const browsers = await client.browsers.list();

console.log(browsers);
[
  {
    "created_at": "2023-11-07T05:31:56Z",
    "cdp_ws_url": "wss://api.onkernel.com/browser/cdp?jwt=eyJ0eXAi...",
    "browser_live_view_url": "https://api.onkernel.com/browser/remote?jwt=eyJ0eXAi...",
    "headless": false,
    "stealth": false,
    "session_id": "htzv5orfit78e1m2biiifpbv",
    "persistence": {
      "id": "my-awesome-browser-for-user-1234"
    },
    "timeout_seconds": 123,
    "profile": {
      "id": "<string>",
      "name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "last_used_at": "2023-11-07T05:31:56Z"
    },
    "proxy_id": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

List of browsers

created_at
string<date-time>
required

When the browser session was created.

cdp_ws_url
string
required

Websocket URL for Chrome DevTools Protocol connections to the browser session

Example:

"wss://api.onkernel.com/browser/cdp?jwt=eyJ0eXAi..."

headless
boolean
required

Whether the browser session is running in headless mode.

Example:

false

stealth
boolean
required

Whether the browser session is running in stealth mode.

Example:

false

session_id
string
required

Unique identifier for the browser session

Example:

"htzv5orfit78e1m2biiifpbv"

timeout_seconds
integer
required

The number of seconds of inactivity before the browser session is terminated.

browser_live_view_url
string

Remote URL for live viewing the browser session. Only available for non-headless browsers.

Example:

"https://api.onkernel.com/browser/remote?jwt=eyJ0eXAi..."

persistence
object

Optional persistence configuration for the browser session.

profile
object

Browser profile metadata.

proxy_id
string

ID of the proxy associated with this browser session, if any.

I