Provides the Avg Video Watch By Region of a video#
📣 this endpoint provides the Avg Video Watch By Region of the contents of a video across different regions✳ list of request parameters
start_time
end_time
group_by = time_interval_hour
🔰 this endpoint gives all the avgerage views information analytics of a video📢 Info message : Here URL is contructed like GET/projects/<project_id>/videos/<video_id>/analytics/avg-video-watch?start_time=<time>&end_time=<time>&group_by=time_interval_hourhere time should be formated in RFC3339
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
projId
stringÂ
required
Example:
66a1084b-4b6b-4001-a4ad-d34d13463068
videoId
stringÂ
required
Example:
a16297d4-6146-44b8-9b0f-e0bdcbfa2705
analyticsType
stringÂ
required
Example:
avg-video-watch
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
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'http://localhost:8080/v1/projects/66a1084b-4b6b-4001-a4ad-d34d13463068/videos/a16297d4-6146-44b8-9b0f-e0bdcbfa2705/analytics/avg-video-watch?start_time=2024-02-25T17:59:59.999Z&end_time=2024-03-03T17:59:59.999Z&group_by=time_interval_hour'
Responses
🟢200OK
application/json
Body
object {0}
Example
{"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":[{"avg_media_watch_time":3.6666666666666665,"time_interval_hour":"2024-02-28T07:00:00Z"},{"avg_media_watch_time":2,"time_interval_hour":"2024-03-02T07:00:00Z"}],"filters":null,"group_bys":["time_interval_hour"],"name":"avg_media_watch_time"}]}},"success":true}