> ## 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

> Get a Dune dataset (table) by name: schema, columns, blockchains and description

**Price:** 1 credit

**💡 AI Hint:** Get a Dune Analytics dataset (raw table) by its '{schema}.{table}' name, e.g. 'dex.trades'. Returns the table's namespace, category, description, the blockchains it covers, its full column schema (name, type, nullability and per-column description), favorite and query-reference counts, the SQL definition for curated spells, and the maintaining team. Use the column names to understand what a query over this table can select.

**⚠️ Common errors:** 412: Dataset not found



## OpenAPI

````yaml /openapi-filtered.json post /api/dune/datasets
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:
    post:
      tags:
        - /dune
      summary: /dune/datasets
      description: >-
        Get a Dune dataset (table) by name: schema, columns, blockchains and
        description


        **Price:** 1 credit


        **💡 AI Hint:** Get a Dune Analytics dataset (raw table) by its
        '{schema}.{table}' name, e.g. 'dex.trades'. Returns the table's
        namespace, category, description, the blockchains it covers, its full
        column schema (name, type, nullability and per-column description),
        favorite and query-reference counts, the SQL definition for curated
        spells, and the maintaining team. Use the column names to understand
        what a query over this table can select.


        **⚠️ Common errors:** 412: Dataset not found
      operationId: __api_dune_datasets_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DuneDatasetPayload'
      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:
    DuneDatasetPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        dataset:
          type: string
          minLength: 1
          description: >-
            Dataset table name as '{schema}.{table}' (e.g. 'dex.trades') or a
            dune.com/data/{name} URL
          examples:
            - dex.trades
      type: object
      required:
        - dataset
    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
    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

````