---
title: "Get Project Dataset Count"
method: GET
path: "/projects/{project_id}/dataset-count"
tags: ["projects"]
---

# Get Project Dataset Count

`GET /projects/{project_id}/dataset-count`

Count datasets attached to a visible project.

Args:
    project_id: Project identifier.
    auth: Authenticated caller.
    service: Project service.

Returns:
    Dataset count and delete eligibility.

## Path parameters

- `project_id` string, uuid, required

## Response `200`

Successful Response

- ProjectDatasetCountResponse — Response model for getting dataset count for a project.
  - `project_id` string, required
  - `dataset_count` integer, required
  - `can_delete` boolean, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-24** `1cffaad2a921` — 1 warning, 1 info
  - removed the optional property `detail` from the response with the `422` status
  - added the required property `error` to the response with the `422` status

[Change history](https://skmtc.dev/pioneer/apis/brain-api/changes/projects/:project_id/dataset-count/get.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) · [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/1cffaad2a921?raw)
