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

# Analytics Summary

`GET /analytics/summary`

## Request

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

Return basic page-visit counts.

If `API_KEY` is configured, this endpoint requires `X-API-Key`.

Counts are persisted in Cloud Datastore when available (survive deploys /
instance recycles); otherwise they come from the local ephemeral DuckDB.

## Response `200`

Successful Response

- AnalyticsSummary
  - `total_visits` integer, required
  - `unique_visitors` integer, required
  - `by_day` object[], required
  - `attribution` AnalyticsAttributionSummary, required: Aggregate, privacy-preserving attribution for the last 30 days.
    - `window_days` integer
    - `authenticated_records` integer
    - `anonymous_records` integer
    - `authenticated_accounts` integer
    - `total_registered_users` integer
  - `visits_24h` integer

---

[API](https://skmtc.dev/foresea/apis/foresea-intelligence-api.md) · [All operations](https://skmtc.dev/foresea/apis/foresea-intelligence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foresea/apis/foresea-intelligence-api/revisions/b03e49f4385d?raw)
