Video views
Developing
GET
/projects/{projId}/videos/{videoId}/analytics/{analyticsType}
Provides the Number of Views group by Country of a Video
GET
/projects/<project_id>/videos/<video_id>/analytics/views?start_time=<time>&end_time=<time>&group_by=time_interval_hour
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.vidinfra.com/v1/projects/66a1084b-4b6b-4001-a4ad-d34d13463068/videos/a16297d4-6146-44b8-9b0f-e0bdcbfa2705/analytics/views'
Response Response Example
200 - OK - Success
{"message":"video analytics resource was found.","result":{"message":"Dataset retrieved successfully","result":{"filters":[{"field":"media_id","operator":"equal","values":["a16297d4-6146-44b8-9b0f-e0bdcbfa2705"]}],"group_bys":["time_interval_hour"],"metrics":[{"data":[{"time_interval_hour":"2024-02-28T05:00:00Z","total_media_views":1},{"time_interval_hour":"2024-02-28T07:00:00Z","total_media_views":4},{"time_interval_hour":"2024-02-29T05:00:00Z","total_media_views":1},{"time_interval_hour":"2024-02-29T10:00:00Z","total_media_views":1},{"time_interval_hour":"2024-02-29T11:00:00Z","total_media_views":1},{"time_interval_hour":"2024-03-01T04:00:00Z","total_media_views":1},{"time_interval_hour":"2024-03-01T06:00:00Z","total_media_views":1},{"time_interval_hour":"2024-03-01T18:00:00Z","total_media_views":1},{"time_interval_hour":"2024-03-01T19:00:00Z","total_media_views":1},{"time_interval_hour":"2024-03-02T07:00:00Z","total_media_views":1}],"filters":null,"group_bys":["time_interval_hour"],"name":"total_media_views"}]}},"success":true}
Request
Path Params
projId
stringÂ
required
Example:
66a1084b-4b6b-4001-a4ad-d34d13463068
videoId
stringÂ
required
Example:
a16297d4-6146-44b8-9b0f-e0bdcbfa2705
analyticsType
stringÂ
required
Example:
views
Query Params
start_time
stringÂ
optional
Example:
2024-02-25T17:59:59.999Z
end_time
stringÂ
optional
Example:
2024-03-03T17:59:59.999Z
group_by
stringÂ
optional
Example:
time_interval_hour
Responses
Modified at 2025-06-19 04:59:01