Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Globals > Viewers → Viewers

AI-generated

Summary

Fetch global viewer statistics for an Infomaniak streaming account over a specified period.

Inputs

  • authentication (required) — Authentication method, either OAuth2 or API Key.
  • query_from (required) — Start date for the consumption period (inclusive).
  • query_to (required) — End date for the consumption period (inclusive).
  • query_per (required) — Granularity of the statistic (day, hour, minute, month, quarter, week, year).
  • query_account_id (required) — Identifier of the Infomaniak account.
  • returnFullResponse — If true, returns the complete API response; otherwise a summarized version.

Output shape

an object containing viewer statistics for the requested period and account

The response format varies with returnFullResponse; without it a summarized object is returned, with it the full API payload is returned. No pagination is indicated.

Examples

Example 1: OAuth2 auth, daily stats for January 2024, account ID 98765, no full response

authentication: OAuth2; query_account_id: 98765; query_from: "2024-01-01"; query_to: "2024-01-31"; query_per: "day"; returnFullResponse: false

Example 2: API Key auth, hourly stats for December 2023, account ID 12345, return full response

authentication: API Key; query_account_id: 12345; query_from: "2023-12-01"; query_to: "2023-12-31"; query_per: "hour"; returnFullResponse: true

Example 3: OAuth2 auth, monthly stats for January 2023, account ID 54321, no full response

authentication: OAuth2; query_account_id: 54321; query_from: "2023-01-01"; query_to: "2023-01-31"; query_per: "month"; returnFullResponse: false

Links

Discussion