Get All Browser Grid Details

You can use the getGrid() SDK method to get the grid details of all the browser grids that are present in your project. The grid instance used in the following snippet is the component reference.

Info: To use this SDK method, you need intialize it with Admin scope. You can learn more about this requirement from this section

Ensure you import the following packages

copy
import com.zc.component.smartbrowz.*;
copy
List<\ZCGrid> gridList = grid.getGrid(); // Will return a list of details of all the grids that are present in the project.

Example of Expected Response

copy
{
  "status": "success",
  "data": [
    {
      "id": "3970000000006058",
      "name": "play",
      "memory": 1024,
      "browser_version": {
        "chrome_version": "137.0.7515.155",
        "firefox_version": "136.0.4"
      },
      "created_time": "Sep 10, 2025 07:04 PM",
      "modified_time": "Sep 10, 2025 07:04 PM",
      "api_key_modified_time": "1757511270919",
      "created_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "modified_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "project_details": {
        "project_name": "Project-Rainfall",
        "id": "38119000000022053",
        "project_type": "Live"
      },
      "endpoint_type": 1,
      "max_session_count": 1,
      "max_nodes_count": 10,
      "max_concurrent_count": 10,
      "config_type": 1
    },
    {
      "id": "3970000000005426",
      "name": "Automation",
      "memory": 1024,
      "browser_version": {
        "chrome_version": "137.0.7515.155",
        "firefox_version": "136.0.4"
      },
      "created_time": "Sep 10, 2025 12:47 PM",
      "modified_time": "Sep 23, 2025 03:12 PM",
      "api_key_modified_time": "1757488669690",
      "created_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "modified_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "project_details": {
        "project_name": "Project-Rainfall",
        "id": "38119000000022053",
        "project_type": "Live"
      },
      "endpoint_type": 2,
      "max_session_count": 1,
      "max_nodes_count": 5,
      "max_concurrent_count": 5,
      "config_type": 2
    },
    {
      "id": "3970000000005027",
      "name": "SDK",
      "memory": 1024,
      "browser_version": {
        "chrome_version": "137.0.7515.155",
        "firefox_version": "136.0.4"
      },
      "created_time": "Sep 10, 2025 11:33 AM",
      "modified_time": "Sep 10, 2025 04:27 PM",
      "api_key_modified_time": "1757484201284",
      "created_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "modified_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "project_details": {
        "project_name": "Project-Rainfall",
        "id": "38119000000022053",
        "project_type": "Live"
      },
      "endpoint_type": 2,
      "max_session_count": 1,
      "max_nodes_count": 5,
      "max_concurrent_count": 5,
      "config_type": 1
    },
    {
      "id": "3970000000005015",
      "name": "Puppeteer_Grid",
      "memory": 1024,
      "browser_version": {
        "chrome_version": "137.0.7515.155",
        "firefox_version": "136.0.4"
      },
      "created_time": "Sep 10, 2025 10:21 AM",
      "modified_time": "Sep 10, 2025 10:21 AM",
      "api_key_modified_time": "1757479864798",
      "created_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "modified_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "project_details": {
        "project_name": "Project-Rainfall",
        "id": "38119000000022053",
        "project_type": "Live"
      },
      "endpoint_type": 1,
      "max_session_count": 1,
      "max_nodes_count": 1,
      "max_concurrent_count": 1,
      "config_type": 1
    },
    {
      "id": "3970000000005013",
      "name": "Selenium_Gridt",
      "memory": 1024,
      "browser_version": {
        "chrome_version": "137.0.7515.155",
        "firefox_version": "136.0.4"
      },
      "created_time": "Sep 10, 2025 10:21 AM",
      "modified_time": "Sep 23, 2025 05:50 PM",
      "api_key_modified_time": "1757479864794",
      "created_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "modified_by": {
        "zuid": "111734674",
        "email_id": "emmy@zylker.com",
        "first_name": "Headless",
        "last_name": "2",
        "user_type": "SuperAdmin"
      },
      "project_details": {
        "project_name": "Project-Rainfall",
        "id": "38119000000022053",
        "project_type": "Live"
      },
      "endpoint_type": 2,
      "max_session_count": 1,
      "max_nodes_count": 1,
      "max_concurrent_count": 1,
      "config_type": 2
    }
  ]
}

Last Updated 2025-12-16 10:31:39 +0530 IST