---
title: "[BETA] Get aggregated metered connections for a given time period."
method: GET
path: "/api/admin/metrics/connection"
tags: ["Metrics"]
---

# [BETA] Get aggregated metered connections for a given time period.

`GET /api/admin/metrics/connection`

**Enterprise feature**

**[BETA]** This API is in beta state, which means it may change or be removed in the future.

Gets metered connections count for the selected period, either aggregated by day or by month.

## Query parameters

- `grouping` 'daily' | 'monthly', required
- `from` string, date, required
- `to` string, date, required

## Response `200`

meteredConnectionsSchema

- MeteredConnectionsSchema — Contains the recorded metered groups connections segmented by day/month
  - `grouping` 'monthly' | 'daily', required — Whether the data is aggregated by month or by day.
  - `dateRange` object, required — The date range there is data for. The range is inclusive and goes from the start of the `from` date to the end of the `to` date
    - `from` string, date, required — The start of the dateRange
    - `to` string, date, required — The end of the dateRange
  - `apiData` object[], required — Contains the recorded daily/monthly connections for each metered group
    - `meteredGroup` string, required — The metered group representing charging unit in the organization using Unleash
    - `dataPoints` object[], required — The recorded data points for the metered group
      - `period` string, required — The date of the data point. Formatted as a full date (e.g. 2023-04-01) if the data is aggregated by day or as a month (e.g. 2023-04) if the data is aggregated by month.
      - `connections` number, required — Number of connections. 1 connection = 7200 backend SDK requests per day

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/versions/b2c3116e633e/schema)
