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 > Viewing → Viewing Time
AI-generatedSummary
Fetch Infomaniak Streaming Video global viewing statistics for a specified time range and granularity.
Inputs
- authentication (required) — Authentication method: OAuth2 or API Key.
- query_from (required) — Starting date for consumption stats (format YYYY-MM-DD).
- query_to (required) — Ending date for consumption stats (format YYYY-MM-DD).
- query_per (required) — Granularity for the time period (day, hour, minute, month, quarter, week, year).
- query_account_id (required) — Identifier of the Infomaniak account.
- returnFullResponse (required) — Whether to return the full API response or a summarized version.
Output shape
JSON object containing viewing time statistics aggregated according to the selected period.
May include pagination links; error responses follow standard Infomaniak API error envelopes; optional fields may be omitted.
Examples
Example 1: Fetch viewing time for account 1234 from 2024-01-01 to 2024-01-31 at daily granularity using OAuth2.
authentication: oauth2, query_from: 2024-01-01, query_to: 2024-01-31, query_per: day, query_account_id: 1234, returnFullResponse: false