get https://api.fastpix.io/v1/live/streams//viewer-count
This endpoint retrieves the current number of viewers watching a specific live stream, identified by its unique streamId
.
The viewer count is an approximate value, optimized for performance. It provides a near-real-time estimate of how many clients are actively watching the stream. This approach ensures high efficiency, especially when the stream is being watched at large scale across multiple devices or platforms.
Example
Suppose a content creator is hosting a live concert and wants to display the number of live viewers on their dashboard. This endpoint can be queried to show up-to-date viewer statistics.
Related guide: Manage streams