- Documentation
- API Reference
- Projects
- importer.vidinfra.com
- Auth
- User Registration
- User Login
- Verify-email
- Forgot Password
- Forgot Password Verify OTP
- Forgot Password Set
- Resend OTP
- Logout
- Set Password
- Check Account exists
- Update Password
- Google Oauth Redirect
- Google Oauth Callback
- api-access-check
- New Auth token using Refresh token
- Github Oauth Redirect
- Google Oauth Callback Copy
- Get User Sessions
- Delete User Sessions
- User
- Organization
- Organization's invitations
- Audits
- Members
- API Keys
- Folders
- Videos
- Video Metas
- Video Captions
- Video Chapter
- Uploads
- Tags
- Players
- Webhook Endpoints
- Advertisements
- Webhook Event Logs
- Analytics Direct Api
- geo-distribution
- Project Views
- avg video watch
- Total watch Time
- Project Avg Watch per Unique user
- Total Player Error
- project popularity-analysis
- Project Collection Insights
- Collection Views
- Collection avg Watch time
- Collection Avg Watch per unique user
- Collection Geo Distribution
- Get all Users
- User media views
- User Avg video watch
- user Player log
- user sessions
- Get all Video
- video Player error
- Video View
- video Geo Distribution
- video Avg watch
- copy
- Streams
- Stream Metas
- Usages
- Encoding profile
- Project Matrics
- Access Control
- Analytics
- Project Get geo-distributionGET
- project viewsGET
- Project avg video watch GET
- Project Total WatchGET
- Project Avg Watch per Unique userGET
- Project All Player ErrorsGET
- Project Popularity Analysis GET
- Project Collections insights GET
- Collection Geo DistributionGET
- Collection avg watch timeGET
- Collection avg watch per unique UserGET
- Collection Player error GET
- Video Geo DistributionGET
- Video viewsGET
- Video Avg WatchGET
- Video Player LogGET
- User GET
- User Avg Video WatchGET
- User Total WatchGET
- User player error logGET
- Plan
- Upload Tokens
- subscribe
- Transaction
- Invoice
- vimeo video importer
- test
- transcoding service
- transcoding service v2
- Welcome to vidinfraGET
- health checkGET
- Regions ListGET
- keyPOST
- Untitled EndpointGET
Project avg video watch
Developing
GET
/projects/{projId}/analytics/{analyticsType}
GET
/projects/<project_id>/analytics/avg-video-watch?start_time=<time>&end_time=<time>&group_by=geo_region
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
analyticsType
stringÂ
required
Example:
avg-video-watch
Query Params
start_time
stringÂ
optional
Example:
2024-02-24T17:59:59.999Z
end_time
stringÂ
optional
Example:
2024-03-02T17:59:59.999Z
group_by
stringÂ
optional
Example:
geo_region
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/analytics/avg-video-watch?start_time=2024-02-24T17:59:59.999Z&end_time=2024-03-02T17:59:59.999Z&group_by=geo_region'
Responses
🟢200OK
application/json
Body
message
stringÂ
required
result
objectÂ
required
message
stringÂ
required
result
array [object {6}]Â
required
success
booleanÂ
required
Example
{"message":"project analytics resource was found.","result":{"message":"Dataset retrieved successfully","result":{"filters":[],"group_bys":["geo_region"],"metrics":[{"data":[{"avg_media_watch_time":169.72610294117646,"geo_region":""},{"avg_media_watch_time":3.5238095238095237,"geo_region":"Al Asimah"},{"avg_media_watch_time":2,"geo_region":"Al Aḩmadī"},{"avg_media_watch_time":1,"geo_region":"Baghdad"},{"avg_media_watch_time":261.28205128205127,"geo_region":"Barisal Division"},{"avg_media_watch_time":107.88010899182561,"geo_region":"Chittagong"},{"avg_media_watch_time":240.70274068868588,"geo_region":"Dhaka Division"},{"avg_media_watch_time":6.444444444444445,"geo_region":"England"},{"avg_media_watch_time":355.7063492063492,"geo_region":"Khulna Division"},{"avg_media_watch_time":105.70121951219512,"geo_region":"Mymensingh Division"},{"avg_media_watch_time":1539,"geo_region":"National Capital Territory of Delhi"},{"avg_media_watch_time":183.92926045016077,"geo_region":"Rajshahi Division"},{"avg_media_watch_time":278.49532710280374,"geo_region":"Rangpur Division"},{"avg_media_watch_time":41.5,"geo_region":"Sylhet Division"}],"filters":null,"group_bys":["geo_region"],"name":"avg_media_watch_time"}]}},"success":true}
🟢200OK