---
title: "Count jobs"
method: GET
path: "/api/jobs/{namespace}/count"
tags: ["jobs"]
---

# Count jobs

`GET /api/jobs/{namespace}/count`

Count the number of jobs for an entity with optional status stage filter

## Path parameters

- `namespace` string, required

## Query parameters

- `stage` union
  - 'COMPLETED' | 'CANCELED' | 'ERROR' | 'DELETED' | 'RUNNING' | 'SCHEDULING'
  - string[]

## Response `200`

The count of jobs matching the filter

- object
  - `count` number, required

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/dae0cc3790f0/schema)
