Infomaniak Streaming Radio icon

Infomaniak Streaming Radio

Interact with Infomaniak Streaming Radio API

Actions141

Stats > Hls Stream → Get Listeners

AI-generated

Summary

Retrieves listener statistics for a specified Infomaniak streaming radio product and station within a given time range.

Inputs

  • authentication — Authentication method: OAuth2 or API Key
  • path_radio_product_id (required) — ID of the radio product
  • path_station_id (required) — ID of the station
  • query_from (required) — Start timestamp for the statistics query
  • query_to (required) — End timestamp for the statistics query
  • returnFullResponse — If true, returns the entire response body; otherwise only essential data

Output shape

An array of listener statistic objects

Each object includes timestamp and listener count; success response is HTTP 200, errors return a standard error envelope.

Examples

Example 1: Get listener count for a product and station over a day

authentication=oauth2; path_radio_product_id=12345; path_station_id=6789; query_from=2023-09-01T00:00:00Z; query_to=2023-09-01T23:59:59Z; returnFullResponse=false

Example 2: Short‑interval stats for a specific station

authentication=apiKey; path_radio_product_id=54321; path_station_id=98765; query_from=2023-09-02T12:00:00Z; query_to=2023-09-02T12:30:00Z; returnFullResponse=true

Example 3: Full response for debugging

authentication=oauth2; path_radio_product_id=11111; path_station_id=22222; query_from=2023-09-03T00:00:00Z; query_to=2023-09-03T23:59:59Z; returnFullResponse=true

Links

Discussion