Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Globals > Viewers → Viewers Histogram

AI-generated

Summary

Retrieve viewers histogram for a given account and date range

Inputs

  • authentication — Authentication method (OAuth2 or API Key)
  • query_from (required) — Start date for the histogram (inclusive)
  • query_to (required) — End date for the histogram (exclusive)
  • query_per (required) — Time interval for histogram bins (day, hour, minute, month, quarter, week, year)
  • query_account_id (required) — Infomaniak account identifier
  • returnFullResponse — If true, returns the full API response; otherwise returns a summary

Output shape

array of objects representing viewer counts per interval

When returnFullResponse is false the node returns only the histogram data; when true it returns the complete API response which may include additional metadata. Pagination is not indicated.

Examples

Example 1: Fetch daily viewer histogram for account 42 from Jan 1 to Jan 31 using OAuth2

authentication=oauth2, query_from=2024-01-01, query_to=2024-02-01, query_per=day, query_account_id=42, returnFullResponse=false

Example 2: Get hourly viewer histogram for account 7 over the past week using API Key

authentication=apiKey, query_from=2024-09-20, query_to=2024-09-27, query_per=hour, query_account_id=7, returnFullResponse=true

Example 3: Retrieve yearly viewer histogram for account 101 with full response

authentication=oauth2, query_from=2020-01-01, query_to=2021-01-01, query_per=year, query_account_id=101, returnFullResponse=true

Links

Discussion