---
title: "Get live user counts per script"
method: GET
path: "/live-users"
tags: ["Live Users"]
---

# Get live user counts per script

`GET /live-users`

## Request

- Base URL: `https://api.jnkie.com/api/v2`
- URL: `https://api.jnkie.com/api/v2/live-users`
- Auth: HTTP bearer

Returns active session counts grouped by script ID for all scripts owned by the authenticated user.

## Response `200`

Live user counts

- object
  - `counts` object: Map of scriptId → active session count
  - `total` integer: Total active sessions across all scripts

## Other responses

- `401`: Unauthorized
- `429`: Rate limit exceeded
- `502`: Heartbeat service unavailable

---

[API](https://skmtc.dev/jnkie/apis/junkie-key-system-rest-api-v2.md) - [All operations](https://skmtc.dev/jnkie/apis/junkie-key-system-rest-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/jnkie/apis/junkie-key-system-rest-api-v2/revisions/1ff91682e5d9?raw)
