Cloudflare Docs
Stream
Edit this page
Give us feedback
Set theme to dark (⇧+D)

Live viewer counts for third party players

The Stream player has full support for live viewer counts by default. To get the viewer count for live videos for use with third party players, make a GET request to the /views endpoint.

https://customer-<CODE>.cloudflarestream.com/<INPUT_ID>/views

Below is a response for a live video with several active viewers:

{ "liveViewers": 113 }