---
title: "Get historical metrics for a host"
method: GET
path: "/metrics/history/{id}"
tags: ["Host Metrics"]
---

# Get historical metrics for a host

`GET /metrics/history/{id}`

## Path parameters

- `id` integer, required

## Query parameters

- `range` '1h' | '6h' | '24h' | '7d' | '30d'
- `from` string, date-time
- `to` string, date-time

## Response `200`

Array of metric history rows.

## Other responses

- `403` — Access denied.
- `404` — Host not found or no access.

---

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