---
title: "Get live query results"
method: GET
path: "/api/osquery/live_queries/{id}/results/{actionId}"
tags: ["Security Osquery API"]
---

# Get live query results

`GET /api/osquery/live_queries/{id}/results/{actionId}`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/osquery/live_queries/{id}/results/{actionId}</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Get the results of a live query using the query action ID.

## Path parameters

- `id` string, required — The ID of the live query result you want to retrieve.
- `actionId` string, required — The ID of the query action that generated the live query results.

## Query parameters

- `kuery` string, nullable — The kuery to filter the results by.
- `page` integer, nullable — The page number to return. The default is 1.
- `pageSize` integer, nullable — The number of results to return per page. The default is 20.
- `sort` string, nullable — The field that is used to sort the results.
- `sortOrder` 'asc' | 'desc' — Specifies the sort order.

## Response `200`

Indicates a successful call.

- SecurityOsqueryAPIGetLiveQueryResultsResponse — The response for getting live query results.
  - `data` object
    - `edges` object[] — The result rows from the query execution.
      - `_id` string
      - `_source` object — The Elasticsearch document source containing query results.
    - `total` integer — The total number of result rows.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
