GET
/
v1
/
query
/
{queryId}
curl --request GET \
  --url https://api.dune.com/api/v1/query/{queryId} \
  --header 'X-DUNE-API-KEY: <x-dune-api-key>'
{
  "description": "Calculate the average dex volume",
  "is_archived": false,
  "is_private": true,
  "is_unsaved": false,
  "name": "My Query",
  "owner": "dune",
  "parameters": [
    {
      "description": "<string>",
      "enumFromResults": {
        "columnName": "<string>",
        "queryId": 123
      },
      "enumOptions": [
        "<string>"
      ],
      "isFreeformAllowed": true,
      "isMultiselect": true,
      "key": "<string>",
      "type": "<string>",
      "value": "<string>",
      "values": [
        "<string>"
      ]
    }
  ],
  "query_engine": "medium",
  "query_id": 123,
  "query_sql": "SELECT * FROM dex.trades",
  "tags": [
    "<string>"
  ],
  "version": 1
}

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

curl --request GET \
  --url https://api.dune.com/api/v1/query/{queryId} \
  --header 'X-DUNE-API-KEY: <x-dune-api-key>'

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
OK

The response is of type object.