> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /dune/datasets/search

> Search the Dune dataset catalog by keyword, blockchain or category

**Price:** 1 credit

**💡 AI Hint:** Search the Dune Analytics dataset (table) catalog. Provide q to match dataset names, chain to filter to a single blockchain, and/or category to filter by data-type code. Returns each matching dataset's name, namespace, category, covered blockchains, description and favorite/query-reference counts. Use a returned name with the 'datasets' endpoint for the full schema.



## OpenAPI

````yaml /openapi-filtered.json post /api/dune/datasets/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/dune/datasets/search:
    post:
      tags:
        - /dune
      summary: /dune/datasets/search
      description: >-
        Search the Dune dataset catalog by keyword, blockchain or category


        **Price:** 1 credit


        **💡 AI Hint:** Search the Dune Analytics dataset (table) catalog.
        Provide q to match dataset names, chain to filter to a single
        blockchain, and/or category to filter by data-type code. Returns each
        matching dataset's name, namespace, category, covered blockchains,
        description and favorite/query-reference counts. Use a returned name
        with the 'datasets' endpoint for the full schema.
      operationId: __api_dune_datasets_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DuneDatasetsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DuneDataset'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DuneDatasetsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        q:
          anyOf:
            - type: string
            - type: 'null'
          description: Keyword to search dataset names by
        chain:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Filter to a single blockchain by name (e.g. 'ethereum'); see the
            blockchains endpoint
        category:
          anyOf:
            - $ref: '#/components/schemas/DuneDatasetCategory'
            - type: 'null'
          description: Filter by dataset source category
        count:
          type: integer
          minimum: 1
          description: Number of datasets to return
      type: object
      required:
        - count
    DuneDataset:
      properties:
        '@type':
          type: string
          default: DuneDataset
        full_name:
          type: string
        namespace:
          anyOf:
            - type: string
            - type: 'null'
        schema_name:
          anyOf:
            - type: string
            - type: 'null'
        table_name:
          anyOf:
            - type: string
            - type: 'null'
        table_type:
          anyOf:
            - type: string
            - type: 'null'
        category:
          anyOf:
            - type: string
            - type: 'null'
        category_path:
          anyOf:
            - type: string
            - type: 'null'
        description:
          anyOf:
            - type: string
            - type: 'null'
        blockchains:
          items:
            type: string
          type: array
          default: []
        is_private:
          type: boolean
          default: false
        is_gated:
          type: boolean
          default: false
        popular:
          type: boolean
          default: false
        favorite_count:
          anyOf:
            - type: integer
            - type: 'null'
        query_reference_count:
          anyOf:
            - type: integer
            - type: 'null'
        table_size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
        created_at:
          anyOf:
            - type: string
            - type: 'null'
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
        sql_definition:
          anyOf:
            - type: string
            - type: 'null'
        maintainer:
          anyOf:
            - $ref: '#/components/schemas/DuneAuthor'
            - type: 'null'
        columns:
          items:
            $ref: '#/components/schemas/DuneColumn'
          type: array
          default: []
      type: object
      required:
        - full_name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    DuneDatasetCategory:
      type: string
      enum:
        - decoded
        - spell
        - curated
        - abstraction
        - community
    DuneAuthor:
      properties:
        '@type':
          type: string
          default: DuneAuthor
        id:
          anyOf:
            - type: integer
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
        alias:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        is_team:
          type: boolean
          default: false
      type: object
    DuneColumn:
      properties:
        '@type':
          type: string
          default: DuneColumn
        name:
          type: string
        type:
          anyOf:
            - type: string
            - type: 'null'
        nullable:
          anyOf:
            - type: boolean
            - type: 'null'
        description:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````