Get a Specific Browser Grid
You can get the details of a specific browser grid in your project by passing the Grid ID or grid name to the getGrid() SDK method.
Info: To use this SDK method, you need intialize it with Admin scope. You can learn more about this requirement from this section
Using the Grid ID
You can pass the Grid ID of the required browser grid to the getGrid() SDK method. The grid instance used in the following snippet is the component reference.
Ensure you import the following packages
copy
import com.zc.component.smartbrowz.*;
copy
ZCBrowserGrid gridDetails = grid.getGrid(3970000000005013l); // get grid details using the Grid ID
Using the Grid’s Name
You can pass the name of the required browser grid to the getGrid() SDK method. The grid instance used in the following snippet is the component reference.
Ensure you import the following packages
copy
import com.zc.component.smartbrowz.*;
copy
ZCBrowserGrid gridDetails = grid.getGrid("Selenium_Grid"); // get grid details using the name of the grid
Example of Expected Response
copy
{
"status": "success",
"data": {
"id": "3970000000006058",
"name": "Selenium_Grid",
"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 24, 2025 11:55 AM",
"api_key_modified_time": "1757511270919",
"created_by": {
"zuid": "111734674",
"is_confirmed": false,
"email_id": "emmy@zylker.com",
"first_name": "Headless",
"last_name": "2",
"user_type": "SuperAdmin"
},
"modified_by": {
"zuid": "111734674",
"is_confirmed": false,
"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
}
}
Last Updated 2025-12-16 10:31:39 +0530 IST
Yes
No
Send your feedback to us
Skip
Submit