---
title: "Daily counts per status in a date range"
method: GET
path: "/api/analytics/overview/daily-counts"
tags: ["analytics"]
---

# Daily counts per status in a date range

`GET /api/analytics/overview/daily-counts`

Returns aggregated daily counts per patient status from mv_analytics_daily for the given range.

## Query parameters

- `from_date` string, date-time, required — Start of date range (ISO 8601).
- `to_date` string, date-time, required — End of date range (ISO 8601).

## Response `200`

Successful Response

- AnalyticsDailyCountsResponse — Analytics daily counts response model.
  - `items` AnalyticsDailyCountRow[], required — Daily counts per status in the range
    - `day` string, date, required — Date
    - `status` string, required — Patient status
    - `count` integer, required — Aggregated count for this day and status

## 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)
