- 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 views
Developing
GET
/projects/{projId}/analytics/{analyticsType}
Provides the Number of Views group by Country of a project#
GET
/projects/<project_id>/analytics/views
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:
views
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/views'
Responses
🟢200OK
application/json
Body
object {0}
Examples
{"message":"Users by country retrieved successfully","result":[{"name":"BD","value":7451},{"name":"","value":35},{"name":"DE","value":17},{"name":"KW","value":9},{"name":"IQ","value":8},{"name":"GB","value":7},{"name":"US","value":7},{"name":"SE","value":6},{"name":"OM","value":5},{"name":"IN","value":4},{"name":"NL","value":3},{"name":"IT","value":2},{"name":"FR","value":2},{"name":"AU","value":1},{"name":"JP","value":1},{"name":"AF","value":1}]}
🟢200OK
🟢200OK
🟢200OK