Viewership
Query public total views metrics
GET
/
data
/
views
/
query
/
total
/
{playbackId}
Authorization
Path
curl --request GET \
--url https://livepeer.studio/api/data/views/query/total/{playbackId} \
--header 'Authorization: <authorization>'
{
"dStorageUrl": "<string>",
"playbackId": "<string>",
"playtimeMins": 123,
"viewCount": 123
}
Authorizations
Authorization
string
headerrequiredBearer api-key
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
dStorageUrl
string
The URL of the distributed storage used for the asset
playbackId
string
The playback ID associated with the metric
playtimeMins
number
requiredThe total playtime in minutes for the asset
viewCount
integer
requiredThe number of views for the asset
Was this page helpful?
curl --request GET \
--url https://livepeer.studio/api/data/views/query/total/{playbackId} \
--header 'Authorization: <authorization>'
{
"dStorageUrl": "<string>",
"playbackId": "<string>",
"playtimeMins": 123,
"viewCount": 123
}