---
title: "Get Analytics Summary Endpoint"
method: GET
path: "/companies/{company_id}/analytics/summary"
tags: ["analytics"]
---

# Get Analytics Summary Endpoint

`GET /companies/{company_id}/analytics/summary`

## Request

- Base URL: `https://api.nanocorp.so` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nanocorp.so/companies/{company_id}/analytics/summary`
- Auth: HTTP bearer

Return KPI + trend line for the owner dashboard.

`range` is one of `1d`, `7d`, `30d`, `90d`. Anything else returns 400.

## Path parameters

- `company_id` string, uuid, required

## Query parameters

- `range` string

## Response `200`

Successful Response

- AnalyticsSummary: Headline KPIs + zero-filled trend line for the owner dashboard.
  - `range` '1d' | '7d' | '30d' | '90d', required
  - `since` string, date-time, required
  - `until` string, date-time, required
  - `granularity` 'hour' | 'day', required
  - `visitors` integer, required
  - `pageviews` integer, required
  - `sessions` integer, required
  - `trend` TrendPoint[], required
    - `bucket` string, date-time, required
    - `pageviews` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nanocorp/apis/nanocorp-api.md) - [All operations](https://skmtc.dev/nanocorp/apis/nanocorp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nanocorp/apis/nanocorp-api/revisions/291bb76b720b?raw)
