---
title: "Count Datasets"
method: POST
path: "/datasets/query/count"
tags: ["datasets"]
---

# Count Datasets

`POST /datasets/query/count`

Count datasets visible to the current user with filtering.

## Request body

- ListDatasetParams
  - `filters` union[]
    - union
      - DatasetNameFilter
        - `name` 'name'
        - `operator` 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in', required
        - `value` union, required
          - string
          - string[]
        - `case_sensitive` boolean
      - DatasetDraftFilter
        - `name` 'draft'
        - `operator` 'eq' | 'ne'
        - `value` boolean, required
      - DatasetUsedInProjectFilter
        - `name` 'used_in_project'
        - `value` string, uuid4, required
      - DatasetIDFilter
        - `name` 'id'
        - `operator` 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'
        - `value` union, required
          - string, uuid4
          - union[]
            - union
              - …
          - string
      - DatasetNotInProjectFilter
        - `name` 'not_in_project'
        - `value` string, uuid4, required
  - `sort` union
    - DatasetNameSort
      - `name` 'name'
      - `ascending` boolean
      - `sort_type` 'column'
    - DatasetCreatedAtSort
      - `name` 'created_at'
      - `ascending` boolean
      - `sort_type` 'column'
    - DatasetUpdatedAtSort
      - `name` 'updated_at'
      - `ascending` boolean
      - `sort_type` 'column'
    - DatasetProjectLastUsedAtSort
      - `name` 'project_last_used_at'
      - `ascending` boolean
      - `sort_type` 'custom_uuid'
      - `value` string, uuid4, required
    - DatasetProjectsSort
      - `name` 'project_count'
      - `ascending` boolean
      - `sort_type` 'custom'
    - DatasetRowsSort
      - `name` 'num_rows'
      - `ascending` boolean
      - `sort_type` 'column'
    - DatasetLastEditedByUserAtSort
      - `name` 'last_edited_by_user_at'
      - `ascending` boolean
      - `sort_type` 'custom_uuid'
      - `value` string, uuid4, required

## Response `200`

Successful Response

- integer

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/galileo/apis/galileo-api-server.md) · [All operations](https://skmtc.net/galileo/apis/galileo-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/galileo/galileo-api-server/revisions/933e8c8e6366/schema)
