---
title: "Get consumption by station"
method: GET
path: "/1/radios/{radio_product}/stats/station_consumption"
tags: ["Stats > Radio Products"]
---

# Get consumption by station

`GET /1/radios/{radio_product}/stats/station_consumption`

## Request

- Base URL: `https://api.infomaniak.com`
- URL: `https://api.infomaniak.com/1/radios/{radio_product}/stats/station_consumption`
- Auth: HTTP bearer

This endpoint allows you to retrieve product consumption stats by station.

## Path parameters

- `radio_product` integer, required

## Query parameters

- `from` string, required: Specify the starting date to get stats
- `station_ids` string: List of station ids for get stats
- `to` string, required: Specify the ending date to get stats

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required: Result of the HTTP request
  - `data` 0cc1b8a9StatConsumptionByStation[]
    - `station_id` integer, required: The station id related to this stat
    - `total_bytes` integer, required: The total of bytes consumed on the date range
    - `average_bytes_by_listeners` number, required: The average of bytes consumed by listeners
    - `average_bytes_by_day` number, required: The average of bytes consumed by day
    - `max_bytes` integer, required: The max bytes consumed in one day

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) - [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) - [OpenAPI document](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/revisions/96ca7c8a0545?raw)
