---
title: "Execute a saved query"
method: GET
path: "/queries/{id}/results"
tags: ["queries"]
---

# Execute a saved query

`GET /queries/{id}/results`

Execute a saved query.

SQL results are available in a variety of formats. By default, `application/json` will be returned. Set
the `Accept` header to one of the following values in accordance with your preference:

* `text/csv`
* `application/json`
* `application/json-l`
* `application/x-ndjson`

SPARQL results are available in a variety of formats. By default, `application/sparql-results+json` will
be returned. Set the `Accept` header to one of the following values in accordance with your preference:

- `application/sparql-results+xml`
- `application/sparql-results+json`
- `application/rdf+json`
- `application/rdf+xml`
- `text/csv`
- `text/tab-separated-values`
- `text/turtle`

## Path parameters

- `id` string, uuid, required

## Query parameters

- `includeTableSchema` boolean
- `queryruntoken` string

## Response `200`

default response

---

[API](https://skmtc.dev/data/apis/data-world-public-api.md) · [All operations](https://skmtc.dev/data/apis/data-world-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/data/data-world-public-api/revisions/0a0cb1f94dad/schema)
