/dune/queries

POST /api/dune/queries

Price: 1 credit

Get a Dune query by id: SQL text, metadata, author, parameters and visualizations

How to use it

Get a Dune Analytics query by its numeric id (the number in a dune.com/queries/{id} URL). Returns the full SQL text, name, AI-generated description, tags, star count, created/updated timestamps, the author (analyst or team), declared query parameters, and the visualizations defined on the query. Use the 'queries/results' endpoint to fetch the actual cached on-chain result rows for a query.

Parameters

Request body

Response

Errors

Response headers