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

# GET /api/loki/query

`GET /api/loki/query`

Instant query against Loki.

        Evaluates a LogQL query at a single point in time. Intended for metric
        queries such as rate() or count_over_time(). Accepts Loki query params:
        query, limit, time, 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/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)
