---
title: "Get the live queries in a cluster"
method: GET
path: "/live_queries"
tags: ["cluster-info"]
---

# Get the live queries in a cluster

`GET /live_queries`

Get the Live Queries in a Yugabyte Cluster

## Query parameters

- `api` 'YSQL' | 'YCQL'

## Response `200`

Live Queries of a Cluster

- LiveQueryResponseSchema — Live Query Response Schema
  - `data` LiveQueryResponseData — Live Query Response Data
    - `ysql` LiveQueryResponseYSQLData — Schema for Live Query Response YSQL Data
      - `error_count` integer — Count of Errors
      - `queries` LiveQueryResponseYSQLQueryItem[]
        - `id` string, uuid
        - `node_name` string
        - `db_name` string
        - `session_status` string
        - `query` string
        - `elapsed_millis` integer
        - `query_start_time` string
        - `app_name` string
        - `client_host` string
        - `client_port` string
    - `ycql` LiveQueryResponseYCQLData — Schema for Live Query Response YCQL Data
      - `error_count` integer — Count of Errors
      - `queries` LiveQueryResponseYCQLQueryItem[]
        - `id` string, uuid
        - `node_name` string
        - `keyspace` string
        - `query` string
        - `type` string
        - `elapsed_millis` integer
        - `client_host` string
        - `client_port` string

## Other responses

- `400` — API Error
- `500` — API Error

---

[API](https://skmtc.net/yugabyte/apis/yugabyte-cloud.md) · [All operations](https://skmtc.net/yugabyte/apis/yugabyte-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yugabyte/yugabyte-cloud/revisions/a851ee3a0a88/schema)
