Viewership
Query public total views metrics
Allows querying for the public metrics for viewership about a video. This can be called from the frontend with a CORS key, or even unauthenticated.
GET
/
data
/
views
/
query
/
total
/
{playbackId}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
playbackId
string
requiredThe playback ID to filter the query results. This can be a canonical playback ID from Livepeer assets or streams, or dStorage identifiers for assets
Response
200 - application/json
playbackId
string
The playback ID associated with the metric.
dStorageUrl
string
The URL of the distributed storage used for the asset
viewCount
integer
The number of views for the stream/asset.
playtimeMins
number
The total playtime in minutes for the stream/asset.
Was this page helpful?