Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Radio Products → Get Stats By Stations

AI-generated

Summary

Retrieve radio product statistics for given date range and datatype.

Inputs

  • authentication — Authentication method: OAuth2 or API Key.
  • path_radio_product_id (required) — The unique identifier (ID) of the radio product to request.
  • query_datatype (required) — Select the datatype of the stats to retrieve: consumption, countries, listeners, or players.
  • query_from (required) — Start date/time for the stats (format as ISO8601).
  • query_to (required) — End date/time for the stats (format as ISO8601).
  • query_station_ids — Comma-separated list of station IDs to filter the stats.
  • returnFullResponse — If true, returns the full API response; otherwise returns a trimmed response.

Output shape

a JSON object containing the requested radio product statistics

Fields vary with query_datatype; may be paginated if many results; success returns 200, errors are handled by n8n error handling.

Examples

Example 1: Get listeners for a specific product between two dates.

authentication: oauth2; path_radio_product_id: 12345; query_datatype: listeners; query_from: 2023-01-01; query_to: 2023-12-31; query_station_ids: ; returnFullResponse: false

Example 2: Count consumptions for multiple stations within a time window.

authentication: apiKey; path_radio_product_id: 9876; query_datatype: consumption; query_from: 2024-06-01; query_to: 2024-06-30; query_station_ids: 101,102,103; returnFullResponse: true

Example 3: Retrieve country distribution stats for a product.

authentication: oauth2; path_radio_product_id: 5555; query_datatype: countries; query_from: 2022-01-01; query_to: 2022-12-31; query_station_ids: ; returnFullResponse: false

Links

Discussion