Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Channel > Consumption → Consumption

AI-generated

Summary

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

Links

Discussion