Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Stations → Get Stats By Streams

AI-generated

Summary

Fetch Infomaniak Streaming Radio station statistics by ID

Inputs

  • authentication — Authentication method (OAuth2 or API Key)
  • path_radio_product_id (required) — The unique identifier (ID) of the radio product to request.
  • path_station_id (required) — Station identifier.
  • query_datatype (required) — Type of statistics to return (consumption, countries, listeners, players).
  • query_from — Start date or time for the query.
  • query_to — End date or time for the query.
  • queryParameters — Additional query parameters to include.
  • returnFullResponse — If true, the full response body is returned.

Output shape

JSON object containing station statistics

Response fields vary with query_datatype (consumption, countries, listeners, players); optional fields may be omitted; successful calls return HTTP 200 and may include a body only when returnFullResponse is true.

Examples

Example 1: Get listener count for a specific station

authentication: apiKey; path_radio_product_id: 123; path_station_id: "abc"; query_datatype: listeners; query_from: "2024-01-01"; query_to: "2024-01-31"; returnFullResponse: false

Links

Discussion