metrics

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}

Path parameters

playbackIdstring required

The 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

A single Metric object with the viewCount and playtimeMins metrics.

playbackIdPlaybackId — unresolved $ref
dStorageUrlDStorageUrl — unresolved $ref
viewCountViewCount — unresolved $ref
playtimeMinsPlaytimeMins — unresolved $ref

Changes