Project User Stats
Get a live snapshot of how many users are actively streaming and how many are waiting in queue for a project.
GET
Return real-time counts of live users (active streaming sessions) and queued users (waiting for a worker) for a single project. Use this to power live status indicators, capacity dashboards, and autoscaling triggers without pulling the full session list.
Live and queue state is read from Redis, so this endpoint is fast enough to poll on a short interval. A few seconds between polls is plenty — the counts update in near real time.
Typical workflow
Prerequisites
| Requirement | Where to get it |
|---|---|
| User ID | Finding your IDs |
| Project ID | Finding your IDs |
| API Key | API authentication |
Path parameters
The ID of the project to fetch live and queue user counts for.
Query parameters
The ID of the account that owns the project. Must match the project’s owner.
Your Streampixel API key. Note the all-lowercase casing — this parameter is
apikey, not apiKey.Response
Number of users currently in an active streaming session for this project. Sessions in
Terminated or Terminating state are excluded.Number of users waiting in the project’s queue for a worker to become available.
Error reference
| Status | Message | Cause |
|---|---|---|
400 | projectId, userId and apikey are required | One or more required parameters were omitted. |
401 | Invalid User | The supplied userId doesn’t match any account. |
401 | Unauthorized: Invalid API Key | The apikey doesn’t match the user’s current key. |
403 | Access denied | The project exists but isn’t owned by userId. |
404 | Project not found | No project with the supplied projectId. |
500 | Internal server error | Unexpected failure. Retry; if it persists, contact support. |
Polling pattern
For a live dashboard, poll on a short interval and stop the timer when the page is hidden. This keeps the UI responsive without hammering the API.Node.js / Browser
Next
List projects
Enumerate every project so you can fetch stats for each.
Rate limits & errors
Limits per endpoint and the standard error response format.