Overview - Dune Docs
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Build blockchain analytics workflows with Dune’s comprehensive API suite. Access the same data that powers thousands of Dune dashboards, available programmatically for your data pattern needs. Dune API provides a variety of endpoints for analysts, data engineers, and data scientists, ranging from low-level, customizable options to connectors ready for immediate use. Queries saved in the Dune App UI can be executed via API and results retrieved in your environment, enabling bulk data extraction and automated workflows.
New to Dune? Create a free account or get your API key to get started.
What do you want to build?
Quick Start with SDKs
Our SDKs handle authentication, polling, pagination, and error handling automatically. The new execute() function manages the entire workflow for you.
pip install dune-client
from dune_client import DuneClient
dune = DuneClient(api_key="your-key")
results = dune.execute(query_id=3493826)
npm install @duneanalytics/client
import { DuneClient } from '@duneanalytics/client';
const dune = new DuneClient('your-key');
const results = await dune.execute({ queryId: 3493826 });
go get github.com/duneanalytics/duneapi-client-go
client := duneapi.New("your-key")
results := client.Execute(3493826)
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](https://docs.dune.com/api-reference/api-overview)
[Troubleshooting Errors
Common API errors and how to resolve them.
- Authentication issues
- Rate limit errors
- Query execution failures
- Response format errors](https://docs.dune.com/api-reference/overview/troubleshooting)
[API Pricing
Understand credit consumption and costs for different endpoints.
- Execution endpoints: Credit-based
- Metadata endpoints: Free
- Usage tracking available via API](https://docs.dune.com/api-reference/overview/billing)
[Authentication
Get started with API keys and authentication.
- Auto-generated keys for new teams
- Manage keys in settings
- Best practices for key security](https://docs.dune.com/api-reference/overview/authentication)
Getting Help
Quickstarts
Step-by-step guides for common use cases