Aggregate stream duration and peak viewership stats for all channels within a Team

Thanks for your reply! Do you know if it is possible to only retrieve info for videos that were past broadcasts? The type in the “Get Videos” endpoint doesn’t clarify this for me here unless type = “archive” is the same as past broadcasts.

The reason I need to use get-videos instead of get-streams for a given userid is because I need to see duration data for the past streams-- live streams are a little less important for my metrics. However, even if I use get-videos, I’m not sure how to get the average concurrent viewers or peak viewers during that past broadcast since there is no response variable related to that.

Thus, I am curious what the best way to accomplish the following would be:

  1. Grab all channels for a given team (done, use get team endpoint)
  2. For each user id in the team above, find stream duration, avg. concurrent viewers and peak viewers for all past broadcasts (need help with this one)
  3. Also find # Ad breaks and total ad duration per past broadcast (impossible using the API as you already mentioned)