Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Hls Stream → Export Stats

AI-generated

Summary

Export HLS stream statistics for a given radio product and station.

Inputs

  • authentication (required) — Authentication method: either OAuth2 or API Key.
  • path_radio_product_id (required) — Unique identifier of the radio product.
  • path_station_id (required) — Unique identifier of the station.
  • query_datatype (required) — Type of statistic to request, such as consumption, listeners, listeners_per_minute, or players.
  • query_from (required) — Start timestamp for the statistics (ISO 8601).
  • query_to (required) — End timestamp for the statistics (ISO 8601).
  • queryParameters — Additional query parameters, e.g., timezone.
  • returnFullResponse — If true, returns the full HTTP response; otherwise only key stats.

Output shape

JSON object containing the requested HLS stream statistics.

May include pagination links or optional fields depending on datatype; otherwise a single response record.

Examples

Example 1: Export listeners per minute for a station from 2023-01-01 to 2023-01-02 UTC.

authentication: apiKey, 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: {"query_timezone":"UTC"}, returnFullResponse: false

Example 2: Export consumption stats for a product using OAuth2.

authentication: oauth2, path_radio_product_id: 789, path_station_id: 101, query_datatype: consumption, query_from: 2023-06-01, query_to: 2023-06-30, queryParameters: {"query_timezone":"Europe/Paris"}, returnFullResponse: true

Links

Discussion