---
title: "GET /api/task/counts"
method: GET
path: "/api/task/counts"
tags: ["/api/task"]
---

# GET /api/task/counts

`GET /api/task/counts`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/task/counts`
- Auth: API key in header `X-API-Key`

Count all retained task history rows and task runs for the Monitor tabs.

## Request body

- object

## Response `2XX`

Successful response

- object
  - `runs` integer, required: value must be an integer greater or equal to than zero.
  - `tasks` integer, required: value must be an integer greater or equal to than zero.

## Other responses

- `4XX`: Client error response
- `5XX`: Server error response

## Changes

- **2026-11-04** `2e178f5a7934`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/task/counts/get.md)

---

[API](https://skmtc.dev/metabase/apis/metabase-api.md) - [All operations](https://skmtc.dev/metabase/apis/metabase-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metabase/apis/metabase-api/revisions/2e178f5a7934?raw)
