Video analytics
Returns play metrics and audience breakdowns for a specific video.
Authorization
BearerAuth AuthorizationBearer <token>
Pass the raw API key as a Bearer token (Authorization: Bearer <key>). Publishable keys start with mvi_pub_ (playback-scoped). Other prefixes denote private/admin keys for general REST routes. GET /v1/embeds/{embedId}/playback accepts publishable keys only.
In: header
Path Parameters
id*string
Format
uuidQuery Parameters
startDate*string
Start of date range (ISO 8601 date).
endDate*string
End of date range (ISO 8601 date).
Response Body
application/json
application/json
curl -X GET "https://api.moviie.ai/v1/analytics/video/497f6eca-6276-4993-bfeb-53cbbbba6f08?startDate=2024-01-01&endDate=2024-01-31"{
"metrics": {
"totalViews": 0,
"uniqueViewers": 0,
"totalWatchTimeMs": 0,
"avgWatchTimeMs": 0
},
"breakdowns": {
"property1": [
{
"label": "string",
"value": 0
}
],
"property2": [
{
"label": "string",
"value": 0
}
]
}
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}