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

# Get Project Dataset Count

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

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/projects/{project_id}/dataset-count`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/projects/:project_id/dataset-count/get.ts> (a function with typed inputs; its response is checked against the schema)

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** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/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/0e5e86e2bae5?raw)
