---
title: "List Usage by Host"
method: GET
path: "/v2/usage/hosts"
tags: ["Usage v2"]
---

# List Usage by Host

`GET /v2/usage/hosts`

Lists aggregated usage information for all hosts during a time period.

## Query parameters

- `from` string, required
- `to` string, required
- `limit` integer
- `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 host.
    - `total_bytes` integer — The number of bytes of disk the host 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)
