---
title: "Get aggregated usage"
method: GET
path: "/v2/usage/{subscriptionId}"
tags: ["Usage"]
---

# Get aggregated usage

`GET /v2/usage/{subscriptionId}`

## Request

- Base URL: `https://api.app.subskribe.com`
- URL: `https://api.app.subskribe.com/v2/usage/{subscriptionId}`
- Auth: API key in header `X-API-Key`

Retrieve the current aggregated usage data for a subscription between 2 instants

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `from` integer, required
- `to` integer, required

## Response `200`

successful operation

- UsageAggregateOutput[]
  - `subscriptionId` string
  - `subscriptionChargeGroupId` string
  - `attributeReferences` AttributeReference[]
    - `attributeDefinitionId` string
    - `attributeValue` string
  - `startAt` integer
  - `endAt` integer
  - `observedDataPoints` integer
  - `usageSum` number
  - `usageMax` number
  - `usageMin` number

---

[API](https://skmtc.dev/dealhub/apis/subskribe-api.md) - [All operations](https://skmtc.dev/dealhub/apis/subskribe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dealhub/apis/subskribe-api/revisions/c1ee531b82ce?raw)
