Analytics API Getting Started
The API uses JWT token for authentication. The API accepts the token in the
Authorization header, in the following format:
This header must be included with every request.
You can get JWT token from the OAuth2 token endpoint by setting the
token_type parameter to
jwt. This parameter must be set as HTTP POST parameter.
The OAuth2 flows are described here: Basic Authentication
The recommended authentication flow is Client credentials.
Every time field provided by the API is formatted by ISO8601 format (eg.
The API also accepts parameters in this format only.
- media: Media is a common word for both live broadcasts and recorded videos
- content type: The API has knowledge of two types of content that are live broadcasts and recorded videos
- content id: A numeric identifier of the media. For live it means channel ID, for video it means video ID
- segment: A part of the media watched by the user
Depending on your query and the underlying data size the response might take a minute.