Actions92
- Channel Actions
- Channel > Config Actions
- Event Actions
- Integrations Actions
- Live Actions
- Misc > Countries Actions
- Misc > Stream Actions
- Option Actions
- Option > Record Actions
- Option > Record > Instant Actions
- Option > Record > Storage Actions
- Option > Timeshift Actions
- Option > Watermarking Actions
- Option > Simulcast Actions
- Players Actions
- Players > Ads Actions
- Players > Embeds Actions
- Players > Pictures Actions
- Prices Actions
- Restrictions Actions
- Stats > Channel > Connection History Actions
- Stats > Channel > Consumption Actions
- Stats > Channel > Export Stats Actions
- Stats > Channel > Geolocation Actions
- Stats > Channel > Technologies Actions
- Stats > Channel > Viewers Actions
- Stats > Channel > Viewing Actions
- Stats > Globals > Consumption Actions
- Stats > Globals > Geolocation Actions
- Stats > Globals > Viewers Actions
- Stats > Globals > Viewing Actions
- Thumbnail Actions
- Order Actions
Stats > Globals > Viewers → Viewers
AI-generatedSummary
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