Is it possible to get a total viewer count via the Mediasite API?

I want to display the total number of viewers on a screen in our AV operations room. I was wondering if there was an API endpoint I could use to get viewer counts for our entire system.

1 Like

**Hey Lukas!
**
It sounds like you got the API working in Postman and you looking to try some new things. The great news is that there is already API endpoints for this in the Mediasite API.

I would suggest looking at the following section of our Mediasite API Documentation:

https://demo-intl.mediasite.com/Mediasite/api/v1/$metadata#PresentationAnalytics

These 3 endpoints might be a good starting point for you:

GET /api/v1/PresentationAnalytics('id')/BrowserTotals
GET /api/v1/PresentationAnalytics('id')/MediaPluginTotals
GET /api/v1/PresentationAnalytics('id')/SystemTotals

Let me know how you get on! This sounds like an interesting project. Perhaps, if you get it up and running, you could share the results in the ‘Usecases & Workshop’ category.

Nathan — The Mediasite Team

Thanks Nathan. I’ll give them a go soon.

Yeah, If I managed to get something going, I’ll post some pictures in the Usecases and Workflows category. I was thinking of getting Claude of ChatGPT to help me come up with a UI or something. Thanks again.

1 Like