Сounts the number of unique viewers of a video entity over CDN. It doesn’t matter what player you used. All unique viewers for the specified period of time are counted. How does it work? Calculating the number of unique viewers for a Live stream or VOD over CDN involves aggregating and analyzing various metrics to ensure each individual viewer is counted only once, regardless of how many times they connect or disconnect during the stream. This method provides statistics for any video viewing by unique users, regardless of viewing method and a player you used. Thus, this is the most important difference from viewing through the built-in player:
/statistics/stream/viewers
and /statistics/vod/viewers
.
Data Processing and Deduplication
We us IP Address & User-Agent combination. Each unique combination of IP address and User-Agent string might be considered a unique viewer.
This approach allows to accurately estimate the number of unique viewers. However, this is not foolproof due to NAT (Network Address Translation) and shared networks. Thus if your users fall under such restrictions, then the number of unique viewers may be higher than calculated.
Why is there no “Unique Views” method?
Based on CDN data, we can calculate the number of unique viewers only. Thus only your player will be able to count the number of unique views (clicks on the Play button) within the player session (i.e. how many times 1 unique viewer clicked the Play button within a unique player’s session).API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Start of time frame. Format is date time in ISO 8601.
End of time frame. Format is date time in ISO 8601.
Filter by entity's type
live
, vod
, playlist
Filter by entity's id. Put ID of a Live stream, VOD or a playlist to be calculated. If the value is omitted, then the calculation is done for all videos/streams of the specified type. When using this "id" parameter, be sure to specify the "type" parameter too. If you do not specify a type, the "id" will be ignored.
OK
The response is of type object
.