Skip to main content
POST
/
v1
/
datasets
/
search
Search datasets
curl --request POST \
  --url https://api.dune.com/api/v1/datasets/search \
  --header 'Content-Type: application/json' \
  --header 'X-Dune-Api-Key: <x-dune-api-key>' \
  --data '
{
  "blockchains": [
    "<string>"
  ],
  "categories": [
    "<string>"
  ],
  "dataset_types": [
    "<string>"
  ],
  "include_metadata": true,
  "include_private": true,
  "include_schema": true,
  "limit": 123,
  "offset": 123,
  "owner_scope": "<string>",
  "query": "<string>",
  "schemas": [
    "<string>"
  ]
}
'
{
  "pagination": {
    "has_more": true,
    "limit": 123,
    "next_offset": 123,
    "offset": 123
  },
  "results": [
    {
      "blockchains": [
        "<string>"
      ],
      "category": "<string>",
      "dataset_type": "<string>",
      "description": "<string>",
      "full_name": "<string>",
      "metadata": {
        "abi_type": "<string>",
        "contract_name": "<string>",
        "description": "<string>",
        "page_rank_score": 123,
        "project_name": "<string>",
        "spell_metadata": [
          123
        ],
        "spell_type": "<string>"
      },
      "owner_scope": "<string>",
      "schema": [
        123
      ],
      "visibility": "<string>"
    }
  ],
  "total": 123
}

Use Cases

  • Free-Text Search: Search across Dune’s entire dataset catalog using natural language queries like "dex trades" or "ethereum transactions".
  • Filter by Category: Narrow results to specific categories such as canonical, decoded, spell, or community datasets.
  • Filter by Blockchain: Find datasets for specific blockchains by passing blockchain names in the blockchains parameter.
  • AI Agents: Enable AI agents to discover relevant tables and schemas before constructing SQL queries.
  • Build Search UIs: Power custom dataset search interfaces and data discovery tools on top of Dune’s catalog.

Headers

X-Dune-Api-Key
string
required

API Key for the service

Query Parameters

api_key
string

API Key, alternative to using the HTTP header X-Dune-Api-Key

Body

application/json

Search datasets request

blockchains
string[]
categories
string[]
dataset_types
string[]
include_metadata
boolean
include_private
boolean
include_schema
boolean
limit
integer
offset
integer
owner_scope
string
query
string
schemas
string[]

Response

OK

pagination
object
results
object[]
total
integer