---
title: "Search datasets by contract address"
method: POST
path: "/v1/datasets/search-by-contract"
---

# Search datasets by contract address

`POST /v1/datasets/search-by-contract`

Find decoded datasets associated with a smart contract address

## Query parameters

- `api_key` string

## Headers

- `X-Dune-Api-Key` string, required

## Request body

- ModelsSearchDatasetsByContractAddressRequest
  - `blockchains` string[]
  - `contract_address` string, required
  - `include_schema` boolean
  - `limit` integer
  - `offset` integer

## Response `200`

OK

- ModelsSearchDatasetsResponse
  - `pagination` ModelsSearchDatasetsPagination
    - `has_more` boolean
    - `limit` integer
    - `next_offset` integer
    - `offset` integer
  - `results` ModelsSearchDatasetResult[]
    - `blockchains` string[]
    - `category` string
    - `dataset_type` string
    - `description` string
    - `full_name` string
    - `metadata` ModelsSearchDatasetMetadata
      - `abi_type` string
      - `contract_name` string
      - `description` string
      - `page_rank_score` number
      - `project_name` string
      - `spell_metadata` integer[]
      - `spell_type` string
    - `owner_scope` string
    - `schema` integer[]
    - `visibility` string
  - `total` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.dev/dune/apis/duneapi.md) · [All operations](https://skmtc.dev/dune/apis/duneapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dune/duneapi/revisions/f3a7a865f95b/schema)
