(Available from version 1.11) This operation returns the popularity data for a specific live stream. Popularity data provides insight into how many times your stream is displayed to a possible viewer and how many times it's played.
If you don't send to and from query parameters, the last 7 days worth of data is returned.
Use the include query parameter to specify whether you want to return trend data. See the trend field in the response for information about sample intervals.
If the time range between from and to query parameters is:
Success
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v1.11/analytics/popularity/live_streams/tvctq36g?from=2023-04-14T10:31:54.486Z&to=2023-07-13T10:31:54.486Z&include=trend"
{- "live_stream": {
- "id": "tvctq36g",
- "plays": 2,
- "displays": 2,
- "trend": [
- {
- "plays": 1,
- "displays": 1,
- "sampled_at": "2023-05-26T12:01:00Z"
}, - {
- "plays": 1,
- "displays": 1,
- "sampled_at": "2023-05-26T12:02:00Z"
}
]
}, - "limits": {
- "from": "2023-04-14T10:31:54.486Z",
- "to": "2023-07-13T10:31:54.486Z"
}
}
(Available from version 1.11) This operation returns the popularity data for a specific VOD stream. Popularity data provides insight into how many times your video is displayed to a possible viewer and how many times it's played.
If you don't send to and from query parameters, the last 7 days worth of data is returned. See the trend field in the response for information about sample intervals.
Use the include query parameter to specify whether you want to return trend data. See the trend field in the response for information about sample intervals.
If the time range between from and to query parameters is:
from | string <date-time> Use this parameter, along with to, to return historic viewer data. The start of the range of time you want to view. Specify YYYY-DD-MMT HH:MM:SSZ where HH is a 24-hour clock in UTC. The range queried doesn't include minutes and seconds. If you include minutes and seconds, Wowza Video rounds up to the nearest hour when it is more than 30 minutes. If it is less than 30 minutes, Wowza Video rounds it down to the nearest hour. The maximum difference between from and to is 30 days. If you set the from query parameter without setting the to query parameter, the data returned will reflect 30 days starting at the from date, or data up to to the current day, whichever is shorter. Example: 2023-01-14T10:31:54.486Z |
to | string <date-time> Use this parameter, along with from, to return historic viewer data. The end of the range of time you want to view. Specify YYYY-DD-MMT HH:MM:SSZ where HH is a 24-hour clock in UTC. The range queried doesn't include minutes and seconds. If you include minutes and seconds, Wowza Video rounds up to the nearest hour when it is more than 30 minutes. If it is less than 30 minutes, Wowza Video rounds it down to the nearest hour. The maximum difference between from and to is 30 days. If you set the to query parameter without setting the from query parameter, the data returned will be from the past 30 days. Example: 2023-02-14T10:31:54.486Z |
include | string Specify the data you want returned in the response. The only valid value for this endpoint is trend. Valid value is: trend. Example: trend |
Success
object (vod_stream) | |||||||||||
|
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v1.11/analytics/popularity/vod_streams/tvctq36g?from=2023-04-14T10:31:54.486Z&to=2023-07-13T10:31:54.486Z&include=trend"
{- "vod_stream": {
- "id": "tvctq36g",
- "plays": 2,
- "displays": 2,
- "trend": [
- {
- "plays": 1,
- "displays": 1,
- "sampled_at": "2023-05-26T12:01:00Z"
}, - {
- "plays": 1,
- "displays": 1,
- "sampled_at": "2023-05-26T12:02:00Z"
}
]
}, - "limits": {
- "from": "2023-04-14T10:31:54.486Z",
- "to": "2023-07-13T10:31:54.486Z"
}
}