Results
Read saved query results. Each query saves its result in the background. A result is pending or processing, then ready or failed.
List results
/v1/resultsList saved query results in the database named by the X-Database-Id header, newest first.
Query parameters
| Name | Type | Description |
|---|---|---|
limit | integer | Results to return. Default 100, maximum 1000. |
offset | integer | Number of results to skip. Default 0. |
Headers
| Name | Type | Description |
|---|---|---|
X-Database-Id (required) | string | Database ID. Required. |
Response 200 — List of results
| Name | Type | Description |
|---|---|---|
count (required) | integer | Number of results returned in this response |
has_more (required) | boolean | Whether there are more results available after this page |
limit (required) | integer | Limit used for this request |
offset (required) | integer | Pagination offset used for this request |
results (required) | ResultInfo[] |
Fields of results
| Name | Type | Description |
|---|---|---|
results[].created_at (required) | string | |
results[].error_message | string | |
results[].id (required) | string | |
results[].status (required) | string |
Example response
{
"count": 0,
"has_more": true,
"limit": 0,
"offset": 0,
"results": [
{
"created_at": "2026-01-01T00:00:00Z",
"error_message": "string",
"id": "string",
"status": "string"
}
]
}
Errors
| Status | Description |
|---|---|
400 | Missing or malformed X-Database-Id header |
404 | Database not found |
Get result
/v1/results/{id}Get a saved query result by ID. Send the X-Database-Id header of the database it belongs to. Choose the format with ?format= (json, arrow, csv, md or parquet) or the Accept header. ?format= wins; an unknown value is ignored.
| Result status | Response |
|---|---|
ready | 200 with the rows in the chosen format |
pending or processing | 202 with a Retry-After header. Poll again. |
failed | 409 with error_message |
Use offset and limit to read part of the result. When more rows follow, a Link header with rel="next" points to the next page. Rows have no guaranteed order, so paging is not a reliable way to read a whole result. Parquet ignores offset and limit and returns the whole file.
JSON responses have a size limit: a result too large to return as JSON gets 413 RESULT_TOO_LARGE. Arrow, CSV, Markdown and Parquet stream with no size limit, so use them for large results. All formats except Parquet carry X-Total-Row-Count, the row count of the whole result.
JSON, CSV and Markdown write NaN and ±Inf as null or an empty cell. Arrow and Parquet keep the original values.
Path parameters
| Name | Type | Description |
|---|---|---|
id (required) | string | Result ID |
Query parameters
| Name | Type | Description |
|---|---|---|
offset | integer | Rows to skip. Default 0. |
limit | integer | Maximum rows to return. Default: all rows. |
format | ResultsFormatQuery | json, arrow, csv, md (or markdown) or parquet. Overrides the Accept header. |
Headers
| Name | Type | Description |
|---|---|---|
X-Database-Id (required) | string | ID of the database the result belongs to. Required. |
Response 200 — The result rows. JSON returns GetResultResponse. Arrow returns an IPC stream. CSV uses LF line endings and double-quote escaping. Markdown returns one pipe table. Parquet returns the stored file. q= values in Accept are ignored; use ?format= to choose.
| Name | Type | Description |
|---|---|---|
columns | string[] | Column names, in order. Present when status is ready. |
error_message | string | Why the result failed. Present only when status is failed. |
nullable | boolean[] | Whether each column, in the same order as columns, can hold nulls. |
result_id (required) | string | |
row_count | integer | Number of rows in this response. |
rows | any[][] | Result rows. Each row is an array of values in column order. |
status (required) | string | pending, processing, ready or failed. |
total_row_count | integer | Number of rows in the full result, ignoring offset and limit. If row_count is smaller, more rows are available on later pages. |
Example response
{
"columns": [
"string"
],
"error_message": "string",
"nullable": [
true
],
"result_id": "string",
"row_count": 0,
"rows": [
[
null
]
],
"status": "string",
"total_row_count": 0
}
Response 202 — The result is not ready yet. Poll the same URL.
| Name | Type | Description |
|---|---|---|
columns | string[] | Column names, in order. Present when status is ready. |
error_message | string | Why the result failed. Present only when status is failed. |
nullable | boolean[] | Whether each column, in the same order as columns, can hold nulls. |
result_id (required) | string | |
row_count | integer | Number of rows in this response. |
rows | any[][] | Result rows. Each row is an array of values in column order. |
status (required) | string | pending, processing, ready or failed. |
total_row_count | integer | Number of rows in the full result, ignoring offset and limit. If row_count is smaller, more rows are available on later pages. |
Example response
{
"columns": [
"string"
],
"error_message": "string",
"nullable": [
true
],
"result_id": "string",
"row_count": 0,
"rows": [
[
null
]
],
"status": "string",
"total_row_count": 0
}
Errors
| Status | Description |
|---|---|
400 | Invalid offset or limit |
404 | Result not found |
409 | The query failed. error_message says why. |
413 | JSON only: the rows are too large to return as JSON (RESULT_TOO_LARGE). Retrying will not help. Request arrow, csv, md or parquet instead. |
429 | JSON only: too many large JSON reads are running. Retry shortly, or use a streaming format. |
503 | JSON only: the result's size could not be checked. Retry shortly, or use a streaming format. |