Engagement
GET /api/analytics/engagement
Curva de retención por segundo para un contenido.
Requiere analytics.read. Consulta Resumen para los parámetros compartidos y el alcance de categorías.
Parámetros
| Parámetro | Obligatorio | Descripción |
|---|---|---|
contentId | Sí | ID de vídeo o de evento en vivo |
contentType | No | vod (predeterminado) o live |
from, to | No | Rango ISO 8601 |
maxSeconds | No | Limitar la longitud de la curva de retención |
Solicitud
curl -X GET "https://app.ignitevideo.cloud/api/analytics/engagement?contentId=VIDEO_ID&contentType=vod" \
-H "Authorization: Bearer YOUR_API_KEY"Respuesta
{
"contentType": "vod" | "live",
"contentId": string,
"from": string,
"to": string,
"totalSessions": number,
"retention": [
{
"second": number,
"watched": number,
"reached": number,
"watchedRatio": number,
"reachedRatio": number
},
[...]
]
}