Dune Analytics API

Dune Analytics API as documented publicly: 34 operations. Contract generated from the documentation by API Evangelist (2026-10-26); not the provider's own document.

Operations 34

POST /api/v1/contracts/decode POST /api/v1/contracts/decode #
GET /api/v1/contracts/submissions GET /api/v1/contracts/submissions #
GET /api/v1/queries GET /api/v1/queries #
POST /api/v1/query POST /api/v1/query #
GET /api/v1/query/{queryid} GET /api/v1/query/{queryid} #
PATCH /api/v1/query/{queryid} PATCH /api/v1/query/{queryid} #
POST /api/v1/query/{queryid}/archive POST /api/v1/query/{queryid}/archive #
POST /api/v1/query/{queryid}/private POST /api/v1/query/{queryid}/private #
POST /api/v1/sql/execute POST /api/v1/sql/execute #
POST /api/v1/usage POST /api/v1/usage #
POST /v1/contracts/decode Submit contracts for decoding #
GET /v1/contracts/submissions List contract submissions #
GET /v1/datasets List datasets #
POST /v1/datasets/search Search datasets #
GET /v1/datasets/{slug} Get a dataset by slug #
GET /v1/queries List queries #
POST /v1/query Create and save a query on Dune #
GET /v1/query/{queryid} Returns the details of a query on Dune #
PATCH /v1/query/{queryid} Update the details of a query on Dune #
POST /v1/query/{queryid}/archive Archive Query on Dune #
POST /v1/query/{queryid}/private Private Query on Dune #
DELETE /v1/table/{namespace}/{tableName} Delete Table (deprecated endpoint) – permanently remove a table and all its data. #
POST /v1/table/{namespace}/{tableName}/clear Clear Data (deprecated endpoint) – remove all data from a table while preserving its schema. #
POST /v1/table/{namespace}/{tableName}/insert Insert Data (deprecated endpoint) – add new rows to existing tables via JSON payload. #
POST /v1/table/create Create Table (deprecated endpoint) – define table schema explicitly with column names, types, and nullability. #
POST /v1/table/upload/csv CSV Upload (deprecated endpoint) – programmatically upload CSV files to create a table. #
GET /v1/tables List Tables (deprecated endpoint) – fetch the list of tables. #
GET /v1/uploads List Tables – fetch the list of tables. #
POST /v1/uploads Create Table – define table schema explicitly with column names, types, and nullability. #
DELETE /v1/uploads/{namespace}/{tableName} Delete Table – permanently remove a table and all its data. #
POST /v1/uploads/{namespace}/{tableName}/clear Clear Data – remove all data from a table while preserving its schema. #
POST /v1/uploads/{namespace}/{tableName}/insert Insert Data – add new rows to existing tables via JSON payload. #
POST /v1/uploads/csv CSV Upload – programmatically upload CSV files to create a table. #
POST /v1/usage Get Usage Data #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/duneanalytics-com:duneanalytics-com-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

duneanalytics-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Dune Analytics API
  version: '2026-10-26'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-26: 34 operation(s) read from 14 public documentation page(s) (each
    operation names its page in x-source). This is not the provider''s published contract; Dune Analytics has published no machine-readable contract
    that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 11
    documentation: 23
    pages-with-code: 10
    pages-read: 14
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-26'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.dune.com/api-reference/datasets/endpoint/get.md
  - https://docs.dune.com/api-reference/queries/endpoint/list.md
  - https://docs.dune.com/api-reference/queries/endpoint/read.md
  - https://docs.dune.com/api-reference/datasets/endpoint/list.md
  - https://docs.dune.com/api-reference/apis/quickstart-analyze.md
  - https://docs.dune.com/api-reference/contracts/endpoint/list.md
  - https://docs.dune.com/api-reference/queries/endpoint/create.md
  - https://docs.dune.com/api-reference/queries/endpoint/update.md
  - https://docs.dune.com/api-reference/datasets/endpoint/search.md
  - https://docs.dune.com/api-reference/queries/endpoint/archive.md
  - https://docs.dune.com/api-reference/queries/endpoint/private.md
  - https://docs.dune.com/api-reference/tables/endpoint/overview.md
  - https://docs.dune.com/api-reference/usage/endpoint/get-usage.md
  - https://docs.dune.com/api-reference/contracts/endpoint/decode.md
servers:


# --- truncated at 32 KB (43 KB total) ---
# Full source: https://artifacts.apis.io/duneanalytics-com/openapi/_ae-authored/duneanalytics-com-openapi-generated.yml