Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Stations → Export Stats By Stream

AI-generated

Summary

Exports station statistics for a given radio product over a defined time range.

Inputs

  • authentication (required) — 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) — The unique identifier (ID) of the station to request.
  • query_datatype (required) — Type of statistic to request (e.g., consumption, listeners, listeners_per_minute, players).
  • query_from (required) — Start timestamp for the query (ISO 8601 format).
  • query_to (required) — End timestamp for the query (ISO 8601 format).
  • queryParameters — Additional query parameters such as list of stream IDs or HLS stats flag.
  • returnFullResponse — Whether to return the complete API response payload.

Output shape

JSON object containing the requested station statistics for the given time period, or the full API response if returnFullResponse is true.

When returnFullResponse is false, only a summary subset is returned; pagination is not applicable.

Examples

Example 1: Export listeners per minute for a station between two dates using OAuth2 authentication.

authentication: oauth2; path_radio_product_id: 123; path_station_id: 456; query_datatype: listeners_per_minute; query_from: "2023-01-01T00:00:00Z"; query_to: "2023-01-02T00:00:00Z"; queryParameters: {}; returnFullResponse: true

Links

Discussion