# Analytics overview

Source: https://ampost.io/docs/api/analytics-overview · Full reference: https://ampost.io/llms-full.txt

`GET /api/analytics/overview` · MCP tool `analytics_overview` · scope `analytics:read` · rate limit `apiRead` · success `200`

Per account and in total, for posts published between `from` and `to` (UTC days, default the last 30): post count, summed views, reach, likes, comments, shares and saves, followers and their change, and sync state. These are the dashboard's numbers. `unavailableAccounts` lists matching accounts without analytics and why. Use it for a summary or a period comparison (call it twice with different ranges); for each post's own metrics use analytics_posts, and for the day-by-day follower curve analytics_followers. Filter by `platform`, `platformSetId` or `accountId`; not paginated. A range longer than 90 days or with `from` after `to` is 400 VALIDATION_FAILED.

| Field | In | Type | Required | Description |
|---|---|---|---|---|
| `from` | query | string | no | First day (UTC), YYYY-MM-DD. Default: 29 days before `to`. At most 90 days with `to`. |
| `to` | query | string | no | Last day (UTC), YYYY-MM-DD, included. Default: today. |
| `platform` | query | instagram \| facebook \| linkedin \| tiktok \| threads \| twitter \| discord \| telegram \| bluesky \| youtube \| pinterest | no | Only accounts on this platform. Default: every platform with analytics. |
| `platformSetId` | query | string | no | Only accounts in this platform set (`id` from platform_sets_list). Default: every set the key can see. |
| `accountId` | query | string | no | Only this account (`id` from accounts_list). Default: every matching account. |

Example response:

```json
{
  "from": "2026-09-09",
  "to": "2026-10-08",
  "totals": {
    "posts": 14,
    "followers": 5320,
    "followersChange": 142,
    "metrics": {
      "views": 21800,
      "reach": 15400,
      "likes": 1130,
      "comments": 96,
      "shares": 61,
      "saves": 140,
      "quotes": null
    }
  },
  "accounts": [
    {
      "accountId": "c41d8e2f-6a3b-4f9c-b1e5-7d2a9c4e6f80",
      "platform": "instagram",
      "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
      "username": "ampost",
      "posts": 9,
      "followers": 4100,
      "followersChange": 120,
      "metrics": {
        "views": 16200,
        "reach": 11300,
        "likes": 870,
        "comments": 71,
        "shares": 40,
        "saves": 140,
        "quotes": null
      },
      "syncState": "up_to_date",
      "syncedAt": "2026-10-08T10:12:00.000Z",
      "nextSyncAt": "2026-10-08T11:12:00.000Z"
    },
    {
      "accountId": "8d3b6f1a-2c9e-4a7d-b5f3-1e6a9c2d7b30",
      "platform": "facebook",
      "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
      "username": "Ampost",
      "posts": 5,
      "followers": 1220,
      "followersChange": 22,
      "metrics": {
        "views": 5600,
        "reach": 4100,
        "likes": 260,
        "comments": 25,
        "shares": 21,
        "saves": null,
        "quotes": null
      },
      "syncState": "up_to_date",
      "syncedAt": "2026-10-08T10:14:00.000Z",
      "nextSyncAt": "2026-10-08T11:14:00.000Z"
    }
  ],
  "unavailableAccounts": [
    {
      "accountId": "5e9a1c3d-7b2f-4d8e-a6c1-3f9b2e7d4a60",
      "platform": "linkedin",
      "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
      "reason": "platform_disabled"
    }
  ]
}
```
