---
title: "Database Monitoring: top queries"
method: GET
path: "/api/{org_id}/db_monitoring/queries"
tags: ["Traces"]
---

# Database Monitoring: top queries

`GET /api/{org_id}/db_monitoring/queries`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/db_monitoring/queries`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/db_monitoring/queries/get.ts> (a function with typed inputs; its response is checked against the schema)

Top query fingerprints with merged stats and _other remainder, merged with a bounded live tail over the un-rolled-up spans.

## Path parameters

- `org_id` string, required

## Query parameters

- `start_time` integer
- `end_time` integer
- `stream` string
- `system` string
- `instance` string
- `namespace` string
- `env` string
- `service` string
- `stmt_class` string
- `sort` string
- `limit` integer
- `search` string
- `include_server_fallback` boolean
- `fingerprint` string
- `baseline_start_time` integer
- `baseline_end_time` integer

## Response `200`

Success

- object

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
