Fetches an analytics report over a custom date rangepost https://api.jwplayer.com/v2/sites/{site_id}/analytics/queries/Fetches an analytics report over a custom date rangePath Paramssite_idstringrequiredlength between 8 and 8Unique alphanumeric ID of the siteQuery ParamssourcestringenumDefaults to defaultData set against which to run the request query The default option includes all JWX data, 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 defaultottAllowed:defaultottformatstringenumDefaults to jsonFile type of the response query outputjsoncsvAllowed:jsoncsvBody Paramsdimensionsarray of stringsDimensions to include in the report query responsedimensionsADD stringend_datestringrequiredLast date of a query date range in YYYY-MM-DD format This date is based on UTC -4/ UTC -5. Time zone is affected by whether daylight saving time or standard time is in effect.filterarray of objectsDefines how to restrict the data returned in the responsefilterADD objectinclude_metadataintegerIndicates that eligible dimensions are enriched with additional metadata Depending on the dimension, enriched metadata appears either in the includes or metadata.name object of the query response. This feature requires an Enterprise account. Possible Values: 0: Do not include enriched metadata 1: Include enriched metadata Default: 0metricsarray of objectsrequiredMetrics to include in the report query responsemetrics*ADD objectpageintegerIndex of the page of results The value of the first page of results is 0. The number of total pages is inversely related to the page_length.page_lengthinteger(JSON only) Total number of records returned on each page of results If not set, the default value is 10. This value must be ≤ 100.relative_timeframestringenumPreconfigured time range for a report query7 Days30 Days90 DaysLast QuarterMonth To DateTodayYesterdayAllowed:7 Days30 Days90 DaysLast QuarterMonth To DateTodayYesterdaysortarray of objectsDefines the field by which to sort the data and the order of the sortsortADD objectstart_datestringrequiredFirst date of a query date range in YYYY-MM-DD format This date is based on UTC -4/ UTC -5. Time zone is affected by whether daylight saving time or standard time is in effect.Response 200Resources successfully retrievedUpdated 3 months ago