Dune Analytics API

REST API for querying on-chain blockchain data via SQL. Users write queries in Dune's query editor (or the API) to analyze Ethereum, Solana, Base, Arbitrum, Optimism, Polygon, and 20+ other chains. Returns structured JSON results from pre-built community queries or custom SQL. Widely used for DeFi analytics, protocol dashboards, and on-chain research.

Evaluated Mar 06, 2026 (0d ago) vv1
Homepage ↗ Finance blockchain analytics sql ethereum defi on-chain-data crypto web3 data
⚙ Agent Friendliness
58
/ 100
Can an agent use this?
🔒 Security
80
/ 100
Is it safe for agents?
⚡ Reliability
73
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
82
Error Messages
72
Auth Simplicity
92
Rate Limits
65

🔒 Security

TLS Enforcement
100
Auth Strength
78
Scope Granularity
65
Dep. Hygiene
80
Secret Handling
78

HTTPS enforced. Single API key with no scope granularity. No OAuth. Data is all public on-chain data — no user PII risk. Key rotation not automated.

⚡ Reliability

Uptime/SLA
75
Version Stability
72
Breaking Changes
70
Error Recovery
75
AF Security Reliability

Best When

You need rich historical and aggregated blockchain analytics via SQL, particularly for DeFi, protocol metrics, or wallet analysis across multiple chains without running your own indexer.

Avoid When

You need real-time block data, sub-second latency, or data from chains Dune doesn't support; or you don't have SQL expertise.

Use Cases

  • Query pre-built community analytics (e.g., total DEX volume, protocol TVL, wallet activity) via query execution API without writing SQL
  • Run custom SQL analytics on on-chain data for agent DeFi research pipelines (token flows, liquidity, MEV, whale activity)
  • Fetch time-series protocol metrics (daily active users, transaction counts, revenue) for agent portfolio analysis
  • Monitor specific wallet or contract activity by executing parametrized Dune queries with wallet addresses as parameters
  • Build agent dashboards that track DeFi protocol health metrics across multiple chains via the query results API

Not For

  • Real-time (block-level) data — Dune refreshes queries periodically, not block-by-block; use Helius or QuickNode for real-time RPC
  • Teams without SQL knowledge — queries require Spark SQL or DuneSQL syntax; non-SQL alternatives exist (The Graph, Covalent)
  • Private or non-indexed contract data — Dune covers decoded on-chain data only, not private data or off-chain events

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: api_key
OAuth: No Scopes: No

Single API key passed as X-DUNE-API-KEY header. No scopes — all endpoints accessible with any valid key. Keys generated in Dune account settings.

Pricing

Model: tiered
Free tier: Yes
Requires CC: Yes

Datapoints = cells of data returned. API access starts at Plus ($49/month). Community queries can be executed via API; creating/editing queries requires higher plans. Pricing changed significantly in 2024.

Agent Metadata

Pagination
offset
Idempotent
Full
Retry Guidance
Documented

Known Gotchas

  • Query execution is asynchronous — agents must POST /execute, then poll GET /status/{execution_id} until state='QUERY_STATE_COMPLETED', then GET /results/{execution_id}; not a single synchronous call
  • Queries can take 30+ seconds for complex analytics — agents must implement polling with backoff, not expect immediate results
  • Results are paginated; max 1000 rows per page — agents processing large datasets must handle next_uri pagination
  • Datapoints quota can be exhausted quickly if agents re-execute the same query without using cached results (set max_age_hours parameter to reuse recent results)
  • Query parameters must be passed exactly as defined in the query; parameter names are case-sensitive
  • Community queries may be updated or deleted by their creators — agents relying on specific community queries should pin query IDs carefully
  • DuneSQL and Spark SQL syntax differ — queries written for one engine won't run on the other; check the query's engine before executing

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Dune Analytics API.

$99

Scores are editorial opinions as of 2026-03-06.

5178
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered