---
title: "GET /api/loki/query_range"
method: GET
path: "/api/loki/query_range"
tags: ["Loki"]
---

# GET /api/loki/query_range

`GET /api/loki/query_range`

Range query against Loki.

        Queries logs or metrics over a time range. Accepts Loki query params:
        query, limit, start, end, since, step, interval, direction.

## Response `200`

OK

- object

## Other responses

- `400` — Operation exception. Please check the response body for details.
- `401` — Unauthenticated access. Please login first.
- `403` — Unauthorized access. Please check your permissions.
- `500` — Unexpected error. Please check the response body for the stack trace.

## Changes

- **2026-09-30** `1b06275847c0` — 1 info
  - endpoint added
- **2026-07-08** `8e288db87087` — 1 breaking
  - api path removed without deprecation
- **2026-07-02** `e7a1b57437d5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ceph/apis/ceph-rest-api/changes/api/loki/query_range/get.md)

---

[API](https://skmtc.dev/ceph/apis/ceph-rest-api.md) · [All operations](https://skmtc.dev/ceph/apis/ceph-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ceph/apis/ceph-rest-api/revisions/1b06275847c0?raw)
