Get active sessions count
Return the count of currently active browser sessions for your team. Requires scope browser.sessions.read. See Observability & Debugging.
GET
/
api
/
sessions
/
active-count
cURL
curl -X GET "https://api.hyperbrowser.ai/api/sessions/active-count" \
-H "x-api-key: $HYPERBROWSER_API_KEY"const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.hyperbrowser.ai/api/sessions/active-count', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));from hyperbrowser import Hyperbrowser
client = Hyperbrowser(api_key="your-api-key")
count = client.sessions.get_active_sessions_count(){
"activeSessionsCount": 123
}{
"message": "<string>"
}Was this page helpful?
cURL
curl -X GET "https://api.hyperbrowser.ai/api/sessions/active-count" \
-H "x-api-key: $HYPERBROWSER_API_KEY"const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.hyperbrowser.ai/api/sessions/active-count', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));from hyperbrowser import Hyperbrowser
client = Hyperbrowser(api_key="your-api-key")
count = client.sessions.get_active_sessions_count(){
"activeSessionsCount": 123
}{
"message": "<string>"
}