metrics
Query realtime viewership
Requires a private (non-CORS) API key to be used.
get/data/views/now
Query parameters
playbackIdstring
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
creatorIdstring
The creator ID to filter the query results
breakdownBy[]string[]
The list of fields to break down the query results. Specify this query-string multiple times to break down by multiple fields.
Response
A list of Metric objects
Example response
[
{
"playbackId": "1bde4o2i6xycudoy",
"device": "iPhone",
"browser": "Safari",
"country": "United States",
"viewCount": 100,
"errorRate": 0.1
}
]