Get Video Statistics
Changed onReturns time-series views and watch time, plus country-level aggregates, at the library level or for a specific video. Control the time window with dateFrom/dateTo and the granularity with hourly. Statistics are available for the last 1 year. Basic safeguards prevent spam and bot inflation by de-duplicating sessions and ignoring obviously invalid events.
Request
- Base URLhttps://video.bunnycdn.com
- AuthAPI key in header AccessKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The ID of the video library.
Query parameters
Optional start of the time range (UTC). If omitted or invalid, the last 30 days are returned. Starts more than 1 year ago are moved to 1 year ago.
Optional end of the time range (UTC). If omitted with a valid start, defaults to now; otherwise the last 30 days are returned.
Optional. If true, returns hourly data; otherwise daily (UTC). Default is daily.
Optional video GUID to filter results. When omitted, returns library-level aggregates.
Response
Statistics including time-series views and watch time, country breakdowns, and engagement score when available.
Changes
- info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info