Actions92
- Channel Actions
- Channel > Config Actions
- Event Actions
- Integrations Actions
- Live Actions
- Misc > Countries Actions
- Misc > Stream Actions
- Option Actions
- Option > Record Actions
- Option > Record > Instant Actions
- Option > Record > Storage Actions
- Option > Timeshift Actions
- Option > Watermarking Actions
- Option > Simulcast Actions
- Players Actions
- Players > Ads Actions
- Players > Embeds Actions
- Players > Pictures Actions
- Prices Actions
- Restrictions Actions
- Stats > Channel > Connection History Actions
- Stats > Channel > Consumption Actions
- Stats > Channel > Export Stats Actions
- Stats > Channel > Geolocation Actions
- Stats > Channel > Technologies Actions
- Stats > Channel > Viewers Actions
- Stats > Channel > Viewing Actions
- Stats > Globals > Consumption Actions
- Stats > Globals > Geolocation Actions
- Stats > Globals > Viewers Actions
- Stats > Globals > Viewing Actions
- Thumbnail Actions
- Order Actions
Stats > Channel > Consumption → Consumption
AI-generatedSummary
Retrieves video consumption statistics for a specified Infomaniak Streaming Video channel over a given time range.
Inputs
- authentication (required) — Authentication method; either OAuth2 token or API key.
- path_channel (required) — Numeric ID of the Pack order (channel) to query.
- query_from (required) — Start date for the consumption period (e.g., ISO8601).
- query_to (required) — End date for the consumption period (e.g., ISO8601).
- query_per (required) — Granularity of the returned statistics (e.g., day, hour).
- query_account_id (required) — Account identifier associated with the channel.
- returnFullResponse — If true, returns the complete API response; otherwise only essential fields.
Output shape
An object containing consumption statistics for the channel, typically including usage counts per selected granularity.
The exact fields depend on the chosen granularity; pagination is not required as the endpoint returns a single aggregated response.
Examples
Example 1: Fetch hourly consumption stats for channel 42 from 2024-01-01 to 2024-01-02 using API key authentication.
authentication: apiKey; path_channel: 42; query_from: '2024-01-01T00:00:00Z'; query_to: '2024-01-02T00:00:00Z'; query_per: 'hour'; query_account_id: 7; returnFullResponse: false
Example 2: Get daily consumption stats for channel 17 over a month, returning the full response.
authentication: oauth2; path_channel: 17; query_from: '2024-01-01'; query_to: '2024-01-31'; query_per: 'day'; query_account_id: 3; returnFullResponse: true