Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Stations → Get Listeners Per Minute

AI-generated

Summary

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

Inputs

  • authentication — Authentication method to use (OAuth2 or API Key).
  • path_radio_product_id (required) — ID of the radio product whose station stats are requested.
  • path_station_id (required) — ID of the specific station to query.
  • query_from (required) — Start time for the listener count window (ISO 8601).
  • query_to (required) — End time for the listener count window (ISO 8601).
  • queryParameters — Additional query parameters; currently supports 'query_station_ids' for multiple stations.
  • returnFullResponse — If true, returns the complete API response; otherwise only listener count data.

Output shape

array of objects each containing a minute timestamp and corresponding listener count

The response contains one entry per minute in the requested interval; if returnFullResponse is enabled the full API payload is returned.

Examples

Example 1: Get hourly listener metrics for a station between two dates

authentication=oauth2, path_radio_product_id=123, path_station_id=45, query_from='2024-09-01T00:00:00Z', query_to='2024-09-01T01:00:00Z', returnFullResponse=false

Example 2: Retrieve full API response for multiple stations

authentication=apiKey, path_radio_product_id=123, path_station_id=45, query_from='2024-09-01', query_to='2024-09-02', queryParameters={'query_station_ids':'1,2'}, returnFullResponse=true

Links

Discussion