# Analytics

Which analytics metrics Instagram returns for posts and for Stories.

Call `GET /v1/analytics?platform=instagram` ([Analytics API](/analytics/get-analytics)).

## Metrics

| Metric | Available |
|--------|-----------|
| Impressions | <Yes /> |
| Reach | <Yes /> |
| Likes | <Yes /> |
| Comments | <Yes /> |
| Shares | <Yes /> |
| Saves | <Yes /> |
| Views | <Yes /> |

Three Instagram-only endpoints go deeper:

- [Account insights](/analytics/get-instagram-account-insights): account-level reach, views, accounts engaged, total interactions, follows and unfollows, profile link taps, profile views, website clicks. Only `reach` supports `metricType=time_series`; Instagram serves every other metric as `total_value` only.
- [Follower history](/analytics/get-instagram-follower-history): a daily follower count series plus `followers_gained` and `followers_lost`, served from Zernio's daily snapshots because Instagram removed `follower_count` from `/insights` in Graph API v22 and never exposed a historical daily series.
- [Demographics](/analytics/get-instagram-demographics): audience by age, city, country or gender. Requires at least 100 followers.

## Media URLs

Meta's CDN links for post images and covers expire.

While a link is still valid the analytics response serves it as is, so download the image rather than storing the link.

Once it has lapsed, the response re-reads the media from Meta and serves `thumbnailUrl` and the `mediaItems` images from Zernio storage, which do not expire.

Until that re-read lands, or when Meta no longer returns the post, those fields are null rather than an expired link.

Video file URLs stay Meta's signed links and are refreshed on read once they lapse.

## Stories

Two endpoints read Stories while they are live. After the 24 hours, final metrics are available only if Meta sent its `story_insights` webhook for that story.

Meta sends it far more consistently for accounts connected with Facebook Login, or whose linked Facebook Page is connected, than for Instagram Login. If you need final numbers, read the insights before the story expires.

- [List active stories](/instagram/list-instagram-stories): `GET /v1/accounts/{accountId}/instagram/stories` returns the live stories with `mediaType`, `permalink`, `mediaUrl`, `thumbnailUrl` and `timestamp`. Meta excludes live videos, reshared stories and copyright-flagged media, and `caption`, `likeCount` and `commentsCount` do not apply to stories.
- [Story insights](/instagram/get-instagram-story-insights): `GET /v1/accounts/{accountId}/instagram/stories/{storyId}/insights` returns `views`, `reach`, `replies`, `shares`, `profileVisits`, `follows`, `totalInteractions`, `linkClicks` (Facebook Login accounts only, 0 otherwise) and the navigation breakdown (`tapsForward`, `tapsBack`, `exits`, `swipesForward`). `source` is `live` (fetched from Meta), `cached` (expired, webhook payload captured) or `unavailable` (expired, and Meta sent no `story_insights` payload for it). Counts below 5 may come back as 0 because of Meta's privacy floor.