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
requiredThe number of views for the asset.
playtimeMins
number
requiredThe total playtime in minutes for the asset.
Was this page helpful?