---
title: "List label values"
method: GET
path: "/api/v1/label/{name}/values"
---

# List label values

`GET /api/v1/label/{name}/values`

Return the sorted list of known values for a given label name.
Optionally filtered by series selectors and/or a time range.

For example, querying `/api/v1/label/job/values` returns all
distinct values of the `job` label across all series.

When `match[]` selectors are provided, only values from series
matching those selectors are returned. When `start` and/or `end` are
provided, only series with samples in that time range are considered.

## Path parameters

- `name` string, required

## Query parameters

- `match[]` string[]
- `start` string
- `end` string
- `limit` integer

## Response `200`

Sorted list of distinct values for the given label name as
strings. Returns an empty array if no series have the label.

- LabelValuesResponse — Response for the label values endpoint (`/api/v1/label/{name}/values`). On success, `data` contains a sorted array of distinct values for the requested label.
  - `status` 'success' | 'error', required
  - `data` string[] — Alphabetically sorted list of distinct values for the given label. Returns an empty array if no series carry the label.
  - `error` string — Human-readable error message (present when status is `error`).
  - `errorType` string — Error category (present when status is `error`).

## Other responses

- `400` — Bad request. The label name is invalid, or a `match[]` selector is malformed. The `errorType` will be `bad_data`.
- `500` — Internal server error. The `errorType` will be `internal`.
- `503` — Service unavailable. The `errorType` will be `unavailable`.

---

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