Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Radio Products → Get Consumption By Station

AI-generated

Summary

Fetches consumption statistics for a specified radio product within a date range.

Inputs

  • authentication — Choose authentication method: OAuth2 or API Key.
  • path_radio_product_id (required) — Numeric ID of the radio product to query.
  • query_from (required) — Start date for the consumption period (inclusive).
  • query_to (required) — End date for the consumption period (inclusive).
  • queryParameters — Additional query parameters; currently supports 'query_station_ids' to filter by station IDs.
  • returnFullResponse — If true, the full API response is returned; otherwise only parsed consumption data.

Output shape

an array of consumption records

Each record includes consumption metrics for the specified period; optional returnFullResponse returns the complete API payload.

Examples

Example 1: Retrieve consumption stats for product ID 123 from Jan 1 to Jan 31, 2024 using OAuth2 and get full response.

authentication: oauth2, path_radio_product_id: 123, query_from: "2024-01-01", query_to: "2024-01-31", returnFullResponse: true

Links

Discussion