All servicesDocsOpenAPI
Service
Dune
crypto_data3 endpoints
Execute SQL queries on Dune's blockchain analytics engine and retrieve results. Access cross-chain data across Ethereum, Solana, Base, and more.
mpp
tempo
Methods
3 methods available
GET/v1/execution/:execution_id/csv50000 USDC
GET
/v1/execution/:execution_id/csvDownload CSV results for a completed execution.
Replace :execution_id. Returns CSV formatted results.
{
"path": {
"execution_id": "string"
}
}GET/v1/execution/:execution_id/results50000 USDC
GET
/v1/execution/:execution_id/resultsFetch JSON results for a completed execution.
Replace :execution_id. Poll until execution state is 'QUERY_STATE_COMPLETED'.
{
"path": {
"execution_id": "string (from POST /v1/sql/execute)"
}
}POST/v1/sql/execute50000 USDC
POST
/v1/sql/executeExecute a SQL query on Dune.
POST JSON body with query_sql. Returns execution_id — poll /v1/execution/{execution_id}/results for results.
{
"body": {
"query_sql": "string (SQL query)",
"performance": "string (optional: 'medium' or 'large')"
}
}