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 > Channel > Viewers → Unique Viewers.
AI-generatedSummary
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