Run a saved Dune query and get an execution ID.
POST/query/{query_id}/execute
- Passive: the target is not contacted
- Cost: Credits by compute used
Starts an execution of a saved query. Use the returned execution_id with the status and results endpoints. The docs' cURL sends query_parameters and performance in a JSON body while the OpenAPI spec defines them as query-string parameters.
Path parameters
query_idID of the saved query
Query parameters
performanceEngine tier; engine default if omitted
query_parametersJSON key-value pairs for the query's parameters; omitted ones use defaults
Response fields · 2ShowHide
execution_id
ID to poll and fetch results with
state
Execution state, e.g. QUERY_STATE_PENDING
curl -X POST 'https://api.dune.com/api/v1/query/1234567/execute' \
-H 'X-Dune-Api-Key: YOUR_API_KEY'{
"execution_id": "01EXAMPLE0000000000000000",
"state": "QUERY_STATE_PENDING"
}