All services

Service

Dune

crypto_data3 endpoints
Docs

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

OpenAPI
GET/v1/execution/:execution_id/csv
50000 USDC

Download CSV results for a completed execution.

Replace :execution_id. Returns CSV formatted results.

{
  "path": {
    "execution_id": "string"
  }
}
GET/v1/execution/:execution_id/results
50000 USDC

Fetch 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/execute
50000 USDC

Execute 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')"
  }
}