---
title: "Monthly analytics (active, new, dropouts)"
method: GET
path: "/api/analytics/overview/monthly"
tags: ["analytics"]
---

# Monthly analytics (active, new, dropouts)

`GET /api/analytics/overview/monthly`

Returns per-month active count, new patients (first appointment in month), and dropouts (abbandoni) from analytics_monthly.

## Query parameters

- `from_date` string, date, nullable — Start month (first day of month, YYYY-MM-DD). Default 2000-01-01.
- `to_date` string, date, nullable — End month (first day of month, YYYY-MM-DD). Default today.

## Response `200`

Successful Response

- AnalyticsMonthlyResponse — Analytics monthly response model.
  - `items` AnalyticsMonthlyRow[], required — Monthly analytics rows
    - `month` string, date, required — First day of the month
    - `active` integer, required — Active patients count for that month
    - `new` integer, required — New patients (first appointment in that month)
    - `dropouts` integer, required — Patients who dropped out (abbandoni) in that month

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