Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Channel > Viewers → Unique Viewers.

AI-generated

Summary

Retrieves unique viewer statistics for a specified Infomaniak streaming channel over a given time interval.

Inputs

  • authentication — Authentication method for the Infomaniak API (OAuth2 or API Key).
  • path_channel (required) — The unique identifier (ID) of the Pack order to request.
  • query_from (required) — The starting date for the consumption period in ISO format or as a string.
  • query_to (required) — The ending date for the consumption period in ISO format or as a string.
  • query_per (required) — Granularity for the statistics (day, hour, minute, month, quarter, week, year).
  • query_account_id (required) — The account identifier associated with the channel.
  • returnFullResponse — If true, the full API response is returned; otherwise only summarized data.

Output shape

a JSON object representing the unique viewer count and related metadata returned by the API

The shape matches the Infomaniak viewer statistics endpoint; optional fields may be present and pagination is not applicable.

Examples

Example 1: Get unique viewers for channel ID 123 from 2024-01-01 to 2024-01-31 with daily granularity

authentication=apiKey&path_channel=123&query_from=2024-01-01&query_to=2024-01-31&query_per=day

Example 2: Fetch hourly unique viewers for a channel using OAuth2 and request the full response

authentication=oauth2&path_channel=456&query_from=2024-02-01T00:00:00Z&query_to=2024-02-01T23:59:59Z&query_per=hour&returnFullResponse=true

Example 3: Retrieve quarterly unique viewers for a channel without needing full response

authentication=apiKey&path_channel=789&query_from=2023-01-01&query_to=2023-12-31&query_per=quarter

Links

Discussion