Stats > Radio Products

Get countries by continent

This endpoint allows you to retrieve product total countries stats by continent.

get/1/radios/{radio_product}/stats/countries_continent

Request

  • Base URL
    https://api.infomaniak.com
  • URL
    https://api.infomaniak.com/1/radios/{radio_product}/stats/countries_continent
  • Auth
    HTTP bearer

Path parameters

radio_productinteger required

The unique identifier (ID) of the radio product to request.

Query parameters

fromstring required

Specify the starting date to get stats

Example:2022-01-01, 2022-01-01 00:00:00, 1640995200
station_idsstring

List of station ids for get stats

Example:1,3,5
tostring required

Specify the ending date to get stats

Example:2022-12-31, 2022-12-31 00:00:00, 1672444800

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "listeners": {
      "AS": 5,
      "AN": 10,
      "AF": 9,
      "SA": 3,
      "EU": 15,
      "NA": 2
    },
    "listeners_30s": {
      "AS": 5,
      "AN": 10,
      "AF": 9,
      "SA": 3,
      "EU": 15,
      "NA": 2
    }
  }
}

Changes

No recorded changes to this operation across all 40 revisions of this API.