New to Dune? Create a free account or get your API key to start building.
What do you want to build?
Analyze onchain data programmatically
Execute SQL queries, retrieve results, and build custom analytics pipelines with Dune’s query execution engine. Perfect for data teams and analysts.→ Start with query execution
Run queries in your environment
Connect directly to Dune’s data warehouse using Trino Connector for maximum flexibility. Perfect for enterprise teams with existing BI tools.→ Set up Trino connector
Build custom dashboards & reports
Fetch query results, manage executions, and create dynamic visualizations in your own applications. Perfect for teams embedding analytics.→ Create your first dashboard
Build real-time applications
Create a multichain wallet with realtime balances, transactions, and NFTs using Sim by Dune. Perfect for mobile developers and DeFi applications.→ Build a realtime wallet with Sim
Transform data with dbt
Build production-grade data transformation pipelines with write access to DuneSQL. Perfect for data engineering teams using dbt.→ Set up dbt connector
Get started with the basics
New to APIs? Start here to make your first request and see results in minutes.Learn how to execute a simple SQL query, authenticate your requests, and retrieve blockchain data programmatically.→ Make your first request
Quick Start with SDKs
Our SDKs handle authentication, polling, pagination, and error handling automatically. The newexecute() function manages the entire workflow for you.
New: All SDKs now include an
execute() function that handles polling and pagination automatically. No more managing multiple API calls!Additional Resources
API Reference
Complete documentation for all endpoints, parameters, response formats, and status codes.
- Execute & Results endpoints
- Query management
- Dataset metadata
- Usage & billing
- Webhooks
Troubleshooting Errors
Common API errors and how to resolve them.
- Authentication issues
- Rate limit errors
- Query execution failures
- Response format errors
API Pricing
Understand credit consumption and costs for different endpoints.
- Execution endpoints: Credit-based
- Metadata endpoints: Free
- Usage tracking available via API
Authentication
Get started with API keys and authentication.
- Auto-generated keys for new teams
- Manage keys in settings
- Best practices for key security