---
title: "Get customer usage for an aggregator"
method: GET
path: "/v1/customers/{id}/usage/{aggregator_id}"
tags: ["Customers > Usage"]
---

# Get customer usage for an aggregator

`GET /v1/customers/{id}/usage/{aggregator_id}`

Get the usage of a customer for a specific aggregator over a period.

## Path parameters

- `id` string, required
- `aggregator_id` string, required

## Query parameters

- `start_date` string, date-time, required — ISO-8601 date string.
- `end_date` string, date-time, required — ISO-8601 date string.

## Response `200`

- CustomerUsage
  - `aggregator_id` string, required — Aggregator ID.
  - `total` number, required — Total usage over the period.
  - `count` number, required — Number of events behind the total.
  - `period_start` string, required — Period start (ISO-8601).
  - `period_end` string, required — Period end (ISO-8601).

## Other responses

- `404` — Customer or aggregator not found

---

[API](https://skmtc.dev/hyperline/apis/hyperline-api.md) · [All operations](https://skmtc.dev/hyperline/apis/hyperline-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hyperline/hyperline-api/revisions/19fa5f22e39b/schema)
