Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Stations → Get Listeners Per Minute Per Stream

AI-generated

Summary

Retrieve per‑minute listener counts for a specified radio product and station within a given time range.

Inputs

  • authentication — Authentication method: OAuth2 or API Key.
  • path_radio_product_id (required) — The unique identifier of the radio product to request.
  • path_station_id (required) — The unique identifier of the station to request.
  • query_from (required) — Start time for the request (inclusive).
  • query_to (required) — End time for the request (inclusive).
  • queryParameters — Additional query parameters; includes optional 'query_station_ids' for selecting multiple stations.
  • returnFullResponse — If true, returns the full API response; otherwise only the listener data array is provided.

Output shape

An array of objects each representing per‑minute listener counts for the requested station(s).

The shape is consistent regardless of authentication method; when returnFullResponse is true the full API payload is returned, otherwise only the listener data array is provided.

Examples

Example 1: Basic request using OAuth2 for a single station over a day

authentication: oauth2; path_radio_product_id: 123; path_station_id: 456; query_from: 2024-01-01T00:00:00Z; query_to: 2024-01-01T23:59:59Z; returnFullResponse: false

Example 2: API Key auth requesting multiple stations with full response

authentication: apiKey; path_radio_product_id: 789; path_station_id: 101; query_from: 2024-02-01; query_to: 2024-02-02; query_station_ids: 101,102; returnFullResponse: true

Example 3: Default values with minimal parameters

authentication: oauth2; path_radio_product_id: 0; path_station_id: 0; query_from: ; query_to: ; queryParameters: {}; returnFullResponse: false

Links

Discussion