---
title: "Api Analytics Summary"
method: GET
path: "/api/analytics/summary"
tags: ["Analytics"]
---

# Api Analytics Summary

`GET /api/analytics/summary`

## Request

- Base URL: `https://www.oxfordledge.com` (the document declares no server; this is the origin it was published from)
- URL: `https://www.oxfordledge.com/api/analytics/summary`
- Auth: none declared

Analytics summary (local DB) — includes feature usage data.

Admin-only: exposes feature-usage counters + hourly aggregates that
leak internal user behavior. Previously unauthenticated (Backend
specialist review 2026-04-16 P1).

## Query parameters

- `days` integer

## Response `200`

Successful Response

- AnalyticsSummaryResponse: `GET /api/analytics/summary` — admin analytics dashboard data. F4 backfill 2026-05-11. Admin-only. Light-touch typing: declares the three top-level scalars REQUIRED so the FE summary header always renders, plus optional rich aggregator blocks (byEvent / byView / daily / topTickers / etc.) that vary in cardinality. featureUsage merged in at route level is Optional[Dict] — the helper sets it to None on aggregator fail.
  - `days` integer, required
  - `totalEvents` integer, required
  - `uniqueSessions` integer, required
  - `byEvent` object, nullable
  - `byView` object, nullable
  - `daily` object[], nullable
  - `topTickers` object[], nullable
  - `topShortcuts` object[], nullable
  - `topScreenerPresets` object[], nullable
  - `screenerSessions` integer, nullable
  - `screenerPresetAdopterSessions` integer, nullable
  - `topSavedPresetSources` object[], nullable
  - `screenerPresetSaverSessions` integer, nullable
  - `featureUsage` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api.md) · [All operations](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/revisions/e832a1260f0b?raw)
