GET
/
v1
/
query
/
{queryId}

To access Query endpoints, a Plus plan or higher is required.

Headers

X-Dune-Api-Key
string
required

API Key for the service

Path Parameters

queryId
integer
required

Query ID

Query Parameters

api_key
string

API Key, alternative to using the HTTP header X-Dune-Api-Key

Response

200 - application/json
description
string

The description of the query

is_archived
boolean

Indicates if the query is archived. Archived queries cannot be executed.

is_private
boolean

Indicates if the query is private.

is_unsaved
boolean

Indicates if the query is unsaved.

name
string

The name of the query

owner
string

username or team handle

parameters
object[]

The parameters that can modify the execution of the sql.

query_engine
string

The query engine used to execute the query.

query_id
integer

The unique ID of the query

query_sql
string

The SQL query text.

tags
string[]

Tags associated with the query.

version
integer

Version of the query, gets incremented every time the query is updated.