Infomaniak Streaming Video icon

Infomaniak Streaming Video

Interact with Infomaniak Streaming Video API

Actions92

Stats > Channel > Viewers → Viewers Histogram Share

AI-generated

Summary

Fetch viewer count histogram for an Infomaniak streaming channel over a specified interval

Inputs

  • authentication (required) — Authentication method (OAuth2 or API Key)
  • path_channel (required) — Channel identifier (Pack order ID)
  • query_from (required) — Start date for the histogram period
  • query_to (required) — End date for the histogram period
  • query_per (required) — Granularity of the histogram interval (day, hour, minute, month, quarter, week, year)
  • query_account_id (required) — Account identifier
  • returnFullResponse (required) — Whether to return the complete API response payload

Output shape

JSON object containing a histogram of viewer counts per selected interval

May include additional metadata; set returnFullResponse to true for the full payload

Examples

Example 1: Retrieve daily viewership histogram for channel 42 from 2024-01-01 to 2024-01-02

authentication: oauth2, path_channel: 42, query_from: 2024-01-01, query_to: 2024-01-02, query_per: day, query_account_id: 1, returnFullResponse: true

Example 2: Get hourly viewership data for channel 7 using API key

authentication: apiKey, path_channel: 7, query_from: 2024-01-01T00:00:00Z, query_to: 2024-01-01T23:59:59Z, query_per: hour, query_account_id: 3, returnFullResponse: false

Example 3: Request quarterly viewership histogram for channel 10 with full response

authentication: oauth2, path_channel: 10, query_from: 2023-01-01, query_to: 2023-12-31, query_per: quarter, query_account_id: 5, returnFullResponse: true

Links

Discussion