---
updatedAt: 2026-09-08T20:26:09.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# Fetch a page of query results

Fetch the results of a paginated "/v1/meta/export/query" request.

Note that paginate must be set to true and rowCount should be set high enough to contain the total expected result set.

This endpoint uses long polling behavior. If a query is in progress when a request is made, the server will delay responding for up to 30 seconds. If the query completes in that time period, the results will be returned with a 200 response code. Otherwise a 202 response code will be returned, and the client should retry the request. The endpoint will also return an error if the query failed.

Queries for paginated data will return an `X-Observe-Total-Rows` header and an `X-Observe-Next-Page` header with a URL for the next page, as long as one is needed. You can use the `X-Observe-Cursor-Id` and the `offset` and `numRows` parameters to construct your own next page URL with different page sizes.

The results can be returned as CSV or NDJSON. The query parameters are used to specify which page of results to fetch.
* Set Accept header to `text/csv` or `application/x-ndjson`
* Default: CSV

The number of rows in the full result set is returned in the X-Observe-Total-Rows response header.


# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Observe by Snowflake API",
    "description": "# Overview\nWelcome to the Observe API Docs!\n\nThe Observe API is a RESTful API. POST bodies and responses are typically JSON-encoded.\n\n## Authentication\nRequests to the Observe API are authenticated with an API token. The token can be supplied using HTTP Bearer authentication:\n```\n// passing token as bearer token\ncurl -H \"Authorization: Bearer <customerid> <token>\" https://<customerid>.<observe-domain>.com/v1/...\n```\n",
    "version": "1.0.230307"
  },
  "servers": [
    {
      "url": "https://{customerid}.observeinc.com",
      "description": "US west server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        }
      }
    },
    {
      "url": "https://{customerid}.{cluster}.observeinc.com",
      "description": "Specific regional cluster (prod)",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "cluster": {
          "enum": [
            "eu-1",
            "ap-1"
          ],
          "default": "eu-1",
          "description": "For regional clusters, choose one."
        }
      }
    },
    {
      "url": "https://{customerid}.{domain}.com",
      "description": "Specific Observe server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "domain": {
          "default": "OBSERVE_DOMAIN",
          "description": "The Observe domain for your instance."
        }
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Export",
      "description": "Export query results from Observe.\n"
    }
  ],
  "paths": {
    "/v1/meta/export/query/page": {
      "get": {
        "summary": "Fetch a page of query results",
        "operationId": "exportQueryPage",
        "tags": [
          "Export"
        ],
        "description": "Fetch the results of a paginated \"/v1/meta/export/query\" request.\n\nNote that paginate must be set to true and rowCount should be set high enough to contain the total expected result set.\n\nThis endpoint uses long polling behavior. If a query is in progress when a request is made, the server will delay responding for up to 30 seconds. If the query completes in that time period, the results will be returned with a 200 response code. Otherwise a 202 response code will be returned, and the client should retry the request. The endpoint will also return an error if the query failed.\n\nQueries for paginated data will return an `X-Observe-Total-Rows` header and an `X-Observe-Next-Page` header with a URL for the next page, as long as one is needed. You can use the `X-Observe-Cursor-Id` and the `offset` and `numRows` parameters to construct your own next page URL with different page sizes.\n\nThe results can be returned as CSV or NDJSON. The query parameters are used to specify which page of results to fetch.\n* Set Accept header to `text/csv` or `application/x-ndjson`\n* Default: CSV\n\nThe number of rows in the full result set is returned in the X-Observe-Total-Rows response header.\n",
        "parameters": [
          {
            "name": "cursorId",
            "in": "query",
            "description": "The ID of a cursor",
            "schema": {
              "type": "string"
            },
            "required": true,
            "examples": {
              "A cursor id": {
                "value": "123e4567-e89b-12d3-a456-426614174000"
              }
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Offset into the result set for the page to begin at",
            "schema": {
              "type": "string",
              "format": "int64"
            },
            "required": false,
            "examples": {
              "An offset": {
                "value": 1000
              }
            }
          },
          {
            "name": "numRows",
            "in": "query",
            "description": "The number of rows to return in the page",
            "schema": {
              "type": "string",
              "format": "int64"
            },
            "required": false,
            "examples": {
              "A number of rows": {
                "value": 1000
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The query is completed and the requested page of results are returned in the body in the format requested by the Accept header. The total number of rows in the full result set is returned in the X-Observe-Total-Rows response header.\n\n## Description of result data formats\n\n### Content-type: application/x-ndjson\nThe results are returned with each row represented as distinct json objects separated by newlines.\nThe contents of the json object representing each row is keys representing each column in the output, with values representing the value of that that column for that row.\n\n### Content-type: text/csv\nThe results are returned in csv format, the first row in csv is a header row with the names of the columns.\n",
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "type": "string"
                },
                "example": "{\"timestamp\":\"2023-03-08T18:59:42.397994726Z\",\"log\":\"I0308 18:59:42.397931             60689787 apiserver/authorize.go:545] msg=\\\"VerifyAuthorization failed\\\" customer_id=999999999999 service=collector operation=2 token=\\\"xxxxxx... (hash h:xxxxxxx)\\\"\",\"namespace\":\"prod\",\"containerName\":\"collector\"}\n{\"timestamp\":\"2023-03-08T18:59:42.674391618Z\",\"log\":\"I0308 18:59:42.397945             60689787 httputil/helpers.go:70] serveStatusError(401): \\\"Unauthorized\\\"\",\"namespace\":\"prod\",\"containerName\":\"collector\"}\n"
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                },
                "example": "\"timestamp\",\"log\",\"namespace\",\"containerName\"\n\"2023-03-08T18:59:42.397994726Z\",\"I0308 18:59:42.397931             60689787 apiserver/authorize.go:545] msg=\"\"VerifyAuthorization failed\"\" customer_id=999999999999 service=collector operation=2 token=\"\"xxxxxx... (hash h:xxxxxxx)\"\"\",\"prod\",\"collector\"\n\"2023-03-08T18:59:42.674391618Z\",\"I0308 18:59:42.397945             60689787 httputil/helpers.go:70] serveStatusError(401): \"\"Unauthorized\"\"\",\"prod\",\"collector\"\n"
              }
            },
            "headers": {
              "X-Observe-Next-Page": {
                "schema": {
                  "type": "string"
                },
                "description": "A link to the next page of results if there is one, otherwise this header is not present."
              },
              "X-Observe-Total-Rows": {
                "schema": {
                  "type": "integer"
                },
                "description": "The number of rows in the full result set."
              }
            }
          },
          "202": {
            "description": "The query is still in progress; even after waiting for 30 seconds from the request being recieved.\n\nThe body of the response will be empty.  The response headers contain the following:\n",
            "headers": {
              "X-Observe-Next-Page": {
                "schema": {
                  "type": "string"
                },
                "description": "A link to the first page of results."
              }
            }
          },
          "400": {
            "description": "Invalid request."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Authorization: Bearer <customerid> <apitoken>\n"
      }
    }
  }
}
````