Streaming Statistics
Get views in built-in player
Get the number of views in the built-in player.
Allows flexible grouping and filtering. The fields in the response depend on the selected grouping.
Note. This method operates only on data collected by the built-in HTML player. It will not show statistics if you are using another player or viewing in native OS players through direct .m3u8/.mpd/.mp4 links. For such cases, use calculations through CDN (look at method /statistics/cdn/uniqs) or statistics of the players you have chosen.
get/streaming/statistics/views
Query parameters
date_fromstring required
Start of time frame. Datetime in ISO 8601 format.
date_tostring required
End of time frame. Datetime in ISO 8601 format.
type'live' | 'vod' | 'playlist'
filter by entity's type
idstring
filter by entity's id
event'init' | 'start' | 'watch'
filter by event's name
hoststring
filter by host
countrystring
filter by country
groupstring[]
group=1,2,4 OR group=1&group=2&group=3
Response
OK
Example response
{
"data": [
{
"views": 1000,
"date": "2024-05-01",
"type": "vod"
},
{
"views": 2000,
"date": "2024-05-02",
"type": "vod"
},
{
"views": 1000,
"date": "2024-05-01",
"type": "live"
}
]
}