---
title: "Get scheduled query results"
method: GET
path: "/api/osquery/scheduled_results/{scheduleId}/{executionCount}/results"
tags: ["Security Osquery API"]
---

# Get scheduled query results

`GET /api/osquery/scheduled_results/{scheduleId}/{executionCount}/results`

**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/scheduled_results/{scheduleId}/{executionCount}/results</span></div>

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

Get paginated query result rows (the actual osquery output data) for a specific scheduled query execution.

## Path parameters

- `scheduleId` string, required — The schedule ID of the scheduled query.
- `executionCount` integer, required — The execution count for this scheduled query run.

## 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.
- `startDate` string — The start date filter (ISO 8601) to narrow down results.

## Response `200`

Indicates a successful call.

- SecurityOsqueryAPIGetScheduledQueryResultsResponse — The response for getting scheduled query results.
  - `data` object — The query results data wrapper.
    - `edges` object[] — The paginated list of query result rows.
    - `inspect` object — Debug/inspection data for the search query.
    - `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/revisions/deb2e8b751e7/schema)
