Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Query
  • Access management
  • Pricing policy
    • Terraform
    • SDK
      • Overview
      • Authentication
        • All methods
        • create-query
        • get-query
        • get-query-status
        • stop-query
        • get-query-results
      • YQL to JSON type mapping
    • Apache Airflow™
  • Integrations
  • Audit Trails events
  • FAQ

In this article:

  • Request
  • Response
  • Example
  1. Reference
  2. HTTP API
  3. Methods
  4. get-query-results

get-query-results

Written by
Yandex Cloud
Updated at July 1, 2026
View in Markdown
  • Request
  • Response
  • Example

This method returns query results. A query containing multiple SELECT statements returns multiple query results. If this is the case, you can access results by their index.

When using the HTTP API, you must authenticate by providing the required headers. You can also specify optional headers to control how requests are executed. The HTTP API may return errors.

RequestRequest

GET request to /queries/{query_id}/results/{<query_result_number_starting_from_0>}?project={folder_id}, where {folder_id} is the folder ID and {query_id} is the query ID.

SQL query arguments are provided in the URL as query string variables.

Argument Description Default value Limitations
offset The number of rows to skip before starting to return rows from the query result set 0 Cannot be negative
limit Number of result rows 100 This value must be between 1 and 1,000

ResponseResponse

If successful, the response returns an HTTP 200 status code and query results.

{
  "columns": [
    {
      "name": "column0",
      "type": "Int32"
    },
    {
      "name": "column1",
      "type": "Int32"
    }    
  ],
  "rows": [
    [
      "1",
      "2"
    ],
    [
      "3",
      "4"
    ]    
  ]
}
Field Description
columns Result column array
columns[].name Column name
columns[].type Column data type
rows Result row array Each row array’s element count matches the number of columns in the columns field

Conversion rules from YQL data types to JSON-compatible data types are described in the YQL to JSON type mapping section.

ExampleExample

Request:

curl \
  --request 'GET' \
  'https://api.yandex-query.cloud.yandex.net/api/fq/v1/queries/cseugn35bc3r********/results/0?project=b1gaue5b382m********&offset=0&limit=100' \
  --header 'accept: application/json'

Response:

{
  "columns": [
    {
      "name": "column0",
      "type": "Int32"
    },
    {
      "name": "column1",
      "type": "Int32"
    }    
  ],
  "rows": [
    [
      "1",
      "2"
    ],
    [
      "3",
      "4"
    ]
  ]
}

Was the article helpful?

Previous
stop-query
Next
YQL to JSON type mapping
© 2026 Direct Cursus Technology L.L.C.