Getting Browser Instances
Please read the Material Usage Rules on this site.
Description: This method returns the list of browser processes available for the current user with detailed information. Results can be filtered by profile ID or process ID, optionally sorted, and limited by the number of returned entries. Important: these actions are applied only to browser instances launched via the API.
Request parameters:
| Parameter | Type | Format | Default | Description |
|---|---|---|---|---|
| workspaceId | integer | int64 | -1 | Workspace identifier. -1 means the default workspace. |
| start | integer | int32 | (empty) | Starting index for pagination. |
| total | integer | int32 | (empty) | Maximum number of results to return. |
| profileId | string | uuid | (empty) | Filter by profile ID (optional). |
| processId | integer | int32 | (empty) | Filter by browser process ID (optional). |
| sorting | string | (empty) | Sorting parameters: ConnectionString, ProcessId, ProfileId (optional). |
Example request:
GET
CURL:
curl 'http://localhost:8160/v1/browser_instances?workspaceId=-1&start=0&total=1000&profileId=123e4567-e89b-12d3-a456-426614174000&processId=1234&sorting=name%20ASC' \
--header 'Api-Token: YOUR_SECRET_TOKEN'
C#:
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("http://localhost:8160/v1/browser_instances?workspaceId=-1&start=0&total=1000&profileId=123e4567-e89b-12d3-a456-426614174000&processId=1234&sorting=name%20ASC"),
Headers =
{
{ "Api-Token", "YOUR_SECRET_TOKEN" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
Cube:
http://localhost:8160/v1/browser_instances?workspaceId=-1&start=0&total=1000&profileId=&processId=&sorting=

Additionally:
User-Agent: {-Profile.UserAgent-}
Api-Token: Token from UserArea2.

Response API:
| Response code | Result |
|---|---|
200 OK | OK |
401 Unauthorized | Unauthorized |
403 Forbidden | Forbidden |
500 Internal Server Error | Internal Server Error |
Success Response (200 OK):
{
"totalCount": 1,
"items": [
{
"profileId": "123e4567-e89b-12d3-a456-426614174000",
"processId": 1,
"connectionString": "ws://127.0.0.1:12345/devtools/browser/example"
}
]
}
Error Response (500):
{
"message": null
}