Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Channel > Viewers → Viewers Per Resolution Histogram.

AI-generated

Summary

Fetch viewer statistics for a channel segmented by resolution within a date range

Inputs

  • authentication — Authentication method to use (OAuth2 or API Key)
  • path_channel — The channel identifier (Pack order ID) to query
  • query_from — Start date for the statistics (inclusive)
  • query_to — End date for the statistics (inclusive)
  • query_per (required) — Resolution granularity for the histogram (e.g., day, hour, week)
  • query_account_id (required) — Identifier of the account whose channel is being queried
  • returnFullResponse — If true, returns the complete API response; otherwise returns a simplified histogram

Output shape

an array of objects, each containing a resolution label and the corresponding viewer count for that resolution

The result is a histogram; if returnFullResponse is true the full API payload may be included, otherwise only the aggregated counts are returned. No pagination.

Examples

Example 1: Retrieve hourly viewer distribution for channel ID 123 from Jan 1 to Jan 7

authentication: oauth2; path_channel: 123; query_from: 2024-01-01T00:00:00Z; query_to: 2024-01-07T23:59:59Z; query_per: hour; query_account_id: 456; returnFullResponse: false

Links

Discussion