Stats > Radio Products

Get countries

This endpoint allows you to retrieve product countries stats.

get/1/radios/{radio_product_id}/stats/countries

Path parameters

radio_product_idinteger 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": [
    {
      "streams": "1,3,5",
      "stations": "10,15",
      "country": "FR",
      "listeners": 10,
      "listeners_30s": 10,
      "average_listeners_by_day": 0.05,
      "average_listeners_30s_by_day": 0.05
    }
  ]
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.