Pogton
Docs Analytics

API reference

Analytics

Fetch impressions, likes, comments and shares for a published post per platform, current account metrics, and a daily history of followers for each account.

Analytics come straight from the platforms. Which numbers you get depends on what each platform's API reports; GET /api/v1/platforms says per platform whether it has post analytics (analytics.post) and account analytics (analytics.account).

Post analytics

curl https://pogton.com/api/v1/analytics/posts/k57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t \
  -H "Authorization: Bearer pk_3f9a..."
{
  "post_id": "k57c2d9e1f3g5h7j9k1m3n5p7q9r2s4t",
  "fetched_at": "2026-10-22T09:00:00.000Z",
  "data": [
    {
      "account_id": "j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed",
      "platform": "linkedin",
      "platform_post_id": "urn:li:share:7234567890",
      "supported": true,
      "metrics": { "impressions": 4120, "likes": 87, "comments": 12, "shares": 9, "clicks": 140 },
      "error": null
    },
    {
      "account_id": "j97ab3c4d5e6f7g8h9j0k1m2n3p4q5rs",
      "platform": "bluesky",
      "platform_post_id": "at://did:plc:abc/app.bsky.feed.post/3l6x",
      "supported": false,
      "metrics": null,
      "error": null
    }
  ],
  "analytics": { "linkedin": { "impressions": 4120, "...": "..." }, "bluesky": { "error": "Not supported" } }
}

There is one entry per published account. supported: false means the platform has no post analytics; error means the platform call failed. Metrics a platform doesn't report are left out.

MetricDescription
impressionsTimes the post was shown.
reachUnique accounts that saw it.
viewsVideo views, or views where the platform counts them.
likes, comments, shares, saves, clicksInteractions.
engagementThe platform's own engagement total, where it has one.
rawAnything platform-specific that doesn't fit the fields above.

The numbers are fetched live on every call, so cache them on your side if you show them often. analytics (keyed by platform) is kept for clients of the first API version. A post with no published targets returns 409 not_published.

Account analytics

curl https://pogton.com/api/v1/analytics/accounts/j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed \
  -H "Authorization: Bearer pk_3f9a..."
{
  "account_id": "j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed",
  "platform": "instagram",
  "account_name": "Acme Studio",
  "fetched_at": "2026-10-22T09:00:00.000Z",
  "metrics": { "followers": 12400, "following": 380, "posts": 97 }
}

Account metrics can have followers, following, posts, impressions, reach, views, engagement and raw. A platform without account analytics returns 400 not_supported, and a disconnected account 410 account_revoked.

Follower history

Pogton saves a snapshot of every active account's metrics once a day, around 03:00 UTC. Use it to draw follower growth without calling the platform for each day.

curl "https://pogton.com/api/v1/analytics/accounts/j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed/history?from=2026-10-01&to=2026-10-21" \
  -H "Authorization: Bearer pk_3f9a..."
{
  "account_id": "j97fk2m8q4r1t6v3w8x0y5z2a7b4c9ed",
  "platform": "instagram",
  "from": "2026-10-01",
  "to": "2026-10-21",
  "data": [
    { "date": "2026-10-01", "metrics": { "followers": 12010, "following": 377, "posts": 91 } },
    { "date": "2026-10-02", "metrics": { "followers": 12032, "following": 377, "posts": 92 } }
  ]
}

from and to are UTC days (YYYY-MM-DD). The default range is the last 30 days. History starts with the first snapshot after an account is connected. Days when the platform couldn't be reached, or the account needed to reconnect, are missing.

Test mode

Sandbox posts and accounts return zeros, so you can build your charts before going live. Sandbox accounts have no history.