analytics
Fetches an analytics report over a custom date range
Changed onFetches an analytics report over a custom date range
post/v2/sites/{site_id}/analytics/queries/
Request
- Base URLhttps://api.jwplayer.com
- URLhttps://api.jwplayer.com/v2/sites/{site_id}/analytics/queries/
- AuthAPI key in header Authorization
Path parameters
site_idstring required
Unique identifier for a resource
Example:Ny05CEfj
Unique alphanumeric ID of the site
Query parameters
source'default' | 'ott'
Data set against which to run the request query
The default option includes <a href="https://docs.jwplayer.com/platform/docs/analytics-metrics-and-dimensions" target="_blank">all JWX data</a>, excluding OTT data.
The ott option (OTT data) includes the following subset of dimensions and metrics:
DIMENSIONS
- country_code
- custom_parameter_name
- custom_parameter_value
- eastern_date
- media_id
- platform_id
- playlist_id
- playlist_type
- tag
- upload_date
- video_duration
METRICS
- ad_impressions
- ads_per_viewer
- completes
- complete_rate
- logged_in_unique_viewers
- plays
- plays_per_viewer
- time_watched
- time_watched_per_viewer
- unique_viewers
format'json' | 'csv'
File type of the response query output
Request body
Response
Resources successfully retrieved
Changes
- info
endpoint added
- info