---
title: "Get Usage By App"
method: GET
path: "/v2/usage/apps/{name}"
tags: ["Usage v2"]
---

# Get Usage By App

`GET /v2/usage/apps/{name}`

Gets the aggregated usage information for an app matching the name provided as a path parameter during a time period. The `results` will either have a singular item, or be an empty array.

## Path parameters

- `name` string, required

## Query parameters

- `from` string, required
- `to` string, required
- `retention` string

## Response `200`

OK

- object
  - `from` string — The calculated starting time (exclusive) used internally.
  - `to` string — The calculated ending time (exclusive) used internally.
  - `results` object[]
    - `name` string — The name of the app.
    - `total_bytes` integer — The number of bytes of disk the app consumes over the time range.

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/mezmo/apis/pipeline-api.md) · [All operations](https://skmtc.net/mezmo/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mezmo/pipeline-api/revisions/fb2535545d90/schema)
