---
title: "Counts per status as of a date"
method: GET
path: "/api/analytics/overview/counts"
tags: ["analytics"]
---

# Counts per status as of a date

`GET /api/analytics/overview/counts`

Returns counts per patient status for the latest day in mv_analytics_daily up to as_of, optionally filtered by from_date/to_date.

## Query parameters

- `as_of` string, date-time, required — As-of date/time (ISO 8601). Latest day <= as_of is used.
- `from_date` string, date-time, nullable — Optional start of date range filter (ISO 8601).
- `to_date` string, date-time, nullable — Optional end of date range filter (ISO 8601).

## Response `200`

Successful Response

- AnalyticsCountsResponse — Analytics counts response model.
  - `items` AnalyticsCountRow[], required — Counts per status for the selected day
    - `status` string, required — Patient status
    - `count` integer, required — Count for this status
  - `total` integer, required — Total number of rows (statuses)

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corabea/corabea-api/revisions/13c1bce1bdc4/schema)
