Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Radio Products → Export Stats By Station

AI-generated

Summary

Export statistics for a selected radio product within a specified date range.

Inputs

  • authentication — Authentication method (OAuth2 or API Key).
  • path_radio_product_id (required) — Unique identifier of the radio product to request.
  • query_datatype (required) — Type of statistic to retrieve (e.g., consumption, listeners, listeners_per_minute, players).
  • query_from (required) — Start of the time range in ISO 8601 format.
  • query_to (required) — End of the time range in ISO 8601 format.
  • queryParameters — Additional query parameters such as station IDs or timezone.

Output shape

a JSON object containing the requested statistics for the product

The response includes the selected metric data; fields may be omitted if not applicable; no pagination is indicated.

Examples

Example 1: Export consumption statistics for product ID 9876 from Jan 1 to Jan 31 using OAuth2.

authentication=oauth2; path_radio_product_id=9876; query_datatype=consumption; query_from=2024-01-01; query_to=2024-01-31

Example 2: Export listener counts for product ID 12345 using API Key, specifying timezone and station IDs.

authentication=apiKey; path_radio_product_id=12345; query_datatype=listeners; query_from=2024-02-01; query_to=2024-02-28; queryParameters={"station_ids":"1,2","timezone":"Europe/Paris"}

Links

Discussion