Skip to main content
Dune API offers a range of endpoints under the categories of “Query” and “Execution.” These endpoints facilitate the execution of predefined queries, retrieval of results in various formats, and management of query executions. Below is an overview of each endpoint, providing a high-level understanding of their functionalities.
Endpoint TitleEndpointDescription
Cancel ExecutionPOST /v1/execution/{execution_id}/cancelCancels an ongoing query execution. Requires the execution_id. Returns a success boolean.
Execute QueryPOST /v1/query/{query_id}/executeTriggers an execution based on the query_id. Returns a execution_id.
Get Execution StatusGET /v1/execution/{execution_id}/statusProvides the status of a query execution give an execution_id.
Get Execution Result in CSVGET /v1/execution/{execution_id}/results/csvRetrieves the status, metadata, and results in CSV format. Includes data retention and limit information.
Get Execution ResultGET /v1/execution/{execution_id}/resultsFetches the execution status, metadata, and results in JSON format. Similar data handling as CSV endpoint.
Get Latest Query Result in CSVGET /v1/query/{query_id}/results/csvReturns the latest results of a query in CSV format, irrespective of the execution method. Queries must be public or owned.
Get Latest Query ResultGET /v1/query/{query_id}/resultsSimilar to the CSV endpoint but returns results in JSON format. Follows the same access and data limit policies.