Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Globals > Viewing → Viewing Histogram Par Channel

AI-generated

Summary

Retrieve a consumption histogram for specified channels over a chosen interval

Inputs

  • authentication — Authentication method: OAuth2 or API Key
  • query_from (required) — Starting date for consumption data
  • query_to (required) — Ending date for consumption data
  • query_per (required) — Granularity of the histogram (day, hour, minute, month, quarter, week, year)
  • query_account_id (required) — Identifier of the account whose statistics to fetch
  • returnFullResponse — If true, returns the full response body; otherwise only summary

Output shape

object where each key is a channel identifier and the value is an array of consumption counts per selected period

The structure may include timestamps and counts; pagination is not applicable. Errors are propagated as n8n error nodes.

Examples

Example 1: Daily viewing hours for account 12345 over September 2024

authentication: OAuth2; query_from: 2024-09-01; query_to: 2024-09-30; query_per: day; query_account_id: 12345; returnFullResponse: false

Example 2: Hourly usage for the last week across all accounts

authentication: API Key; query_from: now-7d@d; query_to: now@d; query_per: hour; query_account_id: 0; returnFullResponse: true

Example 3: Debugging with full response for a month

authentication: OAuth2; query_from: 2024-01-01; query_to: 2024-12-31; query_per: month; query_account_id: 9876; returnFullResponse: true

Links

Discussion