Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Stations → Get Consumption By Stream

AI-generated

Summary

Fetch consumption statistics for a specified radio station and product over a given time range.

Inputs

  • authentication — Authentication method; either OAuth2 or API Key.
  • path_radio_product_id (required) — Numeric identifier of the radio product.
  • path_station_id (required) — Numeric identifier of the station.
  • query_from (required) — Start of the consumption period (e.g., ISO date).
  • query_to (required) — End of the consumption period (e.g., ISO date).
  • queryParameters — Additional query parameters for the request.
  • returnFullResponse — If true, the full API response is returned; otherwise a simplified summary.

Output shape

an object containing consumption statistics for the requested stream

When returnFullResponse is false only a summarized object is returned; when true the complete API payload is provided. Fields may be optional depending on the response.

Examples

Example 1: Retrieve consumption data for station 456 of product 123 from 2024-01-01 to 2024-01-31 with HLS stats enabled

authentication: OAuth2; path_radio_product_id: 123; path_station_id: 456; query_from: 2024-01-01; query_to: 2024-01-31; queryParameters: {query_stream_ids: ""; query_with_hls_stats: true}; returnFullResponse: false

Links

Discussion