---
title: "get query result set"
method: GET
path: "/queries/{query_id}/results/{result_set_index}"
---

# get query result set

`GET /queries/{query_id}/results/{result_set_index}`

## Request

- Base URL: `https://api.yandex-query.cloud.yandex.net/api/fq/v1`
- URL: `https://api.yandex-query.cloud.yandex.net/api/fq/v1/queries/{query_id}/results/{result_set_index}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/shmel1k/apis/yq/docs/queries/:query_id/results/:result_set_index/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `offset` integer
- `limit` integer
- `db` string
- `project` string

## Headers

- `Authorization` string
- `x-request-id` string

## Response `200`

OK

- ResultSet
  - `columns` Column[], required
    - `name` string, required
    - `type` string, required
  - `rows` array[], required
    - AnyValue[]
      - union
        - string
        - number
        - integer
        - boolean
        - unknown[]
          - unknown

## Other responses

- `400`: Bad Request
- `412`: Precondition Failed

## Changes

- **2022-11-24** `a67282f76c41`: 2 warning
  - removed the optional property `details/items/status` from the response with the `400` status
  - removed the optional property `details/items/status` from the response with the `412` status
- **2022-11-10** `88d79b1ba69f`: 2 info
  - added the optional property `details/items/status` to the response with the `400` status
  - added the optional property `details/items/status` to the response with the `412` status

[Operation history](https://skmtc.dev/shmel1k/apis/yq/changes/queries/:query_id/results/:result_set_index/get.md)

---

[API](https://skmtc.dev/shmel1k/apis/yq.md) - [All operations](https://skmtc.dev/shmel1k/apis/yq/llms.txt) - [OpenAPI document](https://skmtc.dev/shmel1k/apis/yq/revisions/036b0af69dee?raw)
