Skip to main content
GET
/
api
/
v1
/
explorer
/
query-runs
/
{run_id}
/
results
Get Query Run Results
curl --request GET \
  --url https://api.allium.so/api/v1/explorer/query-runs/{run_id}/results \
  --header 'X-API-KEY: <api-key>'
{
  "sql": "<string>",
  "data": "<any>",
  "meta": {
    "columns": [
      {
        "name": "<string>",
        "data_type": "<string>"
      }
    ]
  },
  "queried_at": "2023-11-07T05:31:56Z"
}
Retrieve the results of a completed query run. Ensure the query status is success before calling this endpoint by checking the status first.

Response Fields

FieldDescription
sqlThe SQL query executed in the request
dataThe results of the query encoded as a list of JSON objects
metaMetadata about the results
meta.columnsList of the data’s column names and types
queried_atThe timestamp at which the query was executed

Authorizations

X-API-KEY
string
header
required

Path Parameters

run_id
string
required

Query Parameters

f
enum<string>
default:json

An enumeration.

Available options:
json,
json_file,
csv

Response

Successful Response

sql
string
required
meta
object
required
data
any
queried_at
string<date-time>
I