# Post analytics

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

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

Metrics of your published posts, newest first: one `platformPosts` entry per account the post went to, with views, reach, likes, comments, shares and saves (null when the platform does not report one). Pass `postId` for one post. `analyticsStatus` says why an entry has no metrics. Use it for per-post numbers; for totals per account over a date range use analytics_overview, for follower counts over time analytics_followers, and for a post's publish status posts_get. Filter by `postId`, `platform`, `platformSetId` or `accountId`; paginated with `limit` and `offset`. 404 POST_NOT_FOUND or ACCOUNT_NOT_FOUND for an id that is not yours.

| Field | In | Type | Required | Description |
|---|---|---|---|---|
| `postId` | query | string | no | Only this post (`id` from posts_list). Default: every published post. |
| `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. |
| `limit` | query | integer | no | Page size, 1-100. Default 20. |
| `offset` | query | integer | no | Number of items to skip. Default 0. |

Example response:

```json
{
  "data": [
    {
      "postId": "7f1c2a9e-4b1d-4c55-9a0e-2f6d8b3c1a10",
      "status": "published",
      "text": "Launch day: Ampost publishes everywhere from one API.",
      "createdAt": "2026-10-06T09:00:00.000Z",
      "platformPosts": [
        {
          "platform": "instagram",
          "accountId": "c41d8e2f-6a3b-4f9c-b1e5-7d2a9c4e6f80",
          "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
          "platformPostId": "17912345678901234",
          "publishedUrl": "https://www.instagram.com/p/C9xYz12AbCd/",
          "publishedAt": "2026-10-06T09:00:04.000Z",
          "contentType": "image",
          "analyticsStatus": "available",
          "metrics": {
            "views": 1840,
            "reach": 1210,
            "likes": 96,
            "comments": 12,
            "shares": 7,
            "saves": 15,
            "quotes": null
          },
          "syncedAt": "2026-10-08T10:12:00.000Z"
        },
        {
          "platform": "facebook",
          "accountId": "8d3b6f1a-2c9e-4a7d-b5f3-1e6a9c2d7b30",
          "platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
          "platformPostId": "104857600000000_122100000000000",
          "publishedUrl": "https://www.facebook.com/104857600000000/posts/122100000000000",
          "publishedAt": "2026-10-06T09:00:04.000Z",
          "contentType": "image",
          "analyticsStatus": "available",
          "metrics": {
            "views": 920,
            "reach": 640,
            "likes": 41,
            "comments": 3,
            "shares": 5,
            "saves": null,
            "quotes": null
          },
          "syncedAt": "2026-10-08T10:14:00.000Z"
        }
      ]
    }
  ],
  "pagination": {
    "limit": 20,
    "offset": 0,
    "total": 1,
    "hasMore": false
  }
}
```
