/dune/queries
/dune
/dune/queries
Get a Dune query by id: SQL text, metadata, author, parameters and visualizations
Price: 1 credit
💡 AI Hint: Get a Dune Analytics query by its numeric id (the number in a dune.com/queries/ 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.
⚠️ Common errors: 412: Query not found
POST
/dune/queries
Authorizations
API token from the dashboard
Headers
Body
application/json
Response
Successful Response