Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Channel > Consumption → Consumption Per Resolution

AI-generated

Summary

Fetch channel consumption statistics per selected resolution timeframe.

Inputs

  • authentication (required) — Authentication method (OAuth2 or API Key) used to connect to Infomaniak.
  • path_channel (required) — Identifier of the channel (Pack order ID) whose stats are requested.
  • query_from (required) — Start date for the consumption period (inclusive).
  • query_to (required) — End date for the consumption period (exclusive).
  • query_per (required) — Resolution granularity for the stats (e.g., day, hour, week).
  • query_account_id (required) — Account identifier for which consumption is measured.
  • returnFullResponse (required) — If true, the full API response is returned; otherwise only summary data.

Output shape

an array of consumption objects per resolution, each containing resolution and usage metrics

The structure of each item is defined by the Infomaniak API; optional fields may be omitted depending on returnFullResponse.

Examples

Example 1: Get daily video consumption for channel ID 123 from Jan 1 to Jan 31, 2024, using OAuth2.

authentication: oauth2; path_channel: 123; query_from: 2024-01-01; query_to: 2024-02-01; query_per: day; query_account_id: 456; returnFullResponse: false

Links

Discussion