Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Stations → Get Consumption

AI-generated

Summary

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

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) — The unique identifier (ID) of the station to request.
  • query_from (required) — Start timestamp or identifier for consumption data.
  • query_to (required) — End timestamp or identifier for consumption data.
  • queryParameters — Additional query parameters for the request.
  • returnFullResponse — If true, the full API response is returned; otherwise only essential data.

Output shape

an object containing consumption statistics for the specified station and time range

When returnFullResponse is false, only essential fields are included; when true, the complete API response is returned; errors are propagated as workflow errors.

Examples

Example 1: Retrieve consumption stats for product 12 and station 34 between 2023-01-01 and 2023-01-02 using OAuth2 and HLS stats.

OAuth2 auth, path_radio_product_id:12, path_station_id:34, query_from:2023-01-01T00:00:00Z, query_to:2023-01-02T00:00:00Z, queryParameters:{withHlsStats:true}, returnFullResponse:false

Example 2: Fetch the full consumption payload for station 88 using an API key over June 2023.

apiKey auth, path_radio_product_id:99, path_station_id:88, query_from:2023-06-01, query_to:2023-06-30, queryParameters:{}, returnFullResponse:true

Links

Discussion