# Instagram analytics API: the metrics PubNio reads

PubNio's Instagram adapter declares 13 post metrics and 5 account metrics as supported. It re-reads each post on a schedule for 90 days after publishing. A metric Instagram does not report comes back as null with a reason.

## What PubNio returns

| Metric | Post field | Account field |
| --- | --- | --- |
| [impressions](https://pubnio.com/platforms/instagram/analytics/metrics/impressions) | not returned: `removed` (use `views`) | not returned: `removed` (use `views`) |
| `reach` | `reach` | `reach`, daily series only; a total is refused |
| `views` | `views` | `views` |
| `likes` | `likes` (feed posts, carousels, Reels; Stories: not applicable) | not returned: `not_exposed` |
| `comments` | `comments` (feed posts, carousels, Reels); `replies` (Stories) | not returned: `not_exposed` |
| [shares](https://pubnio.com/platforms/instagram/analytics/metrics/shares) | `shares`, else `reposts` when `shares` is absent; never the sum of the two | not returned: `not_exposed` |
| `saves` | `saved` (feed posts, carousels, Reels; Stories: not applicable) | not returned: `not_exposed` |
| [clicks](https://pubnio.com/platforms/instagram/analytics/metrics/clicks) | `profile_activity` breakdown (feed posts, carousels, Stories) + `navigation` breakdown (Stories); none for Reels | not returned: `not_exposed` |
| [link_clicks](https://pubnio.com/platforms/instagram/analytics/metrics/link-clicks) | `link_clicks` (Stories on accounts connected with Facebook Login only) | `website_clicks` |
| `profile_visits` | `profile_visits` (feed posts, carousels, Stories; not Reels) | `profile_views` |
| `follows` | `follows` (feed posts, carousels, Stories; not Reels) | not returned: `not_exposed` |
| `followers` | — | `followers_count` (lifetime total only) |
| `watch_time_ms` | `ig_reels_video_view_total_time` (Reels only) | not returned: `not_exposed` |
| `avg_watch_time_ms` | `ig_reels_avg_watch_time` (Reels only) | not returned: `not_exposed` |
| [engagement](https://pubnio.com/platforms/instagram/analytics/metrics/engagement) | `total_interactions` | not returned: `not_exposed` |
| `engagement_rate` | not returned: `impressions_removed` | not returned: `not_exposed` |

Instagram returns no value for the other keys, `page_views`, `follower_gained`, `follower_lost`, and `completion_rate`: the adapter marks each `not_exposed` or leaves it out.

“Not declared” means the adapter's capabilities leave the metric out. A post reading then comes back `unsupported` with reason `not_exposed`; an account reading comes back `pending` with reason `account_analytics_pending` and stays there, because the account sync reads only declared metrics.

## How PubNio reads it

- PubNio asks Instagram's media insights for a different metric list per placement: one for feed posts and carousels, one for Reels, one for Stories. A metric missing from a placement's list comes back pending, and Story `likes` and `saves` come back `not_applicable` with reason `placement_not_applicable`.
- The scope check follows how the account was connected. Capabilities list only `instagram_business_manage_insights`, but an account connected through Facebook Login or unified login is checked for `instagram_manage_insights` instead.

PubNio reads an Instagram post no sooner than 30 minutes after it is published; a post the sync pass finds later is read when it is found. After the first read it reads every 30 minutes until it is a day old, every 6 hours until day 7, daily until day 30, and weekly after that. It stops reading the post 90 days after publishing. A refresh request does not wait for that: it reads the post as soon as 15 minutes after publishing.

Instagram returns lifetime totals for a post, so PubNio stores each read's increase on the UTC day of the read. The first read puts the whole total on that day, only summed metrics get daily points, and a total that drops is stored as zero, not a negative day.

Account metrics are read once a day, each time for the UTC dates from 30 days before the read through the day of the read, and readings count as stale two days after the last read.

Capabilities also declare `latencySeconds: 900`, how long the adapter expects Instagram's numbers to take to settle. PubNio publishes the figure; reads are scheduled only by the rules above.

PubNio's Instagram analytics capabilities require these OAuth scopes on the connected account: Instagram Login: `instagram_business_manage_insights`; Facebook Login or unified login: `instagram_manage_insights`. When one is missing, the sync marks the metrics `permission_missing` and lists what is absent in `missingScopes`.

`reach`: A post's `reach` is the lifetime `reach` insight. For an account, reach exists only as a daily series: asking for a total returns `unsupported` with reason `reach_series_only`, although capabilities list account reach as supported. PubNio never adds reach up, because the catalog defines it as unique and never additive.

- The account read requests `reach` with `period=day`. Its totals step adds only the additive sources (views, profile views, website clicks), and its series step keeps each day's reach as sent.
- A post's daily series is built from changes between lifetime reads, and only summed metrics get daily points, so post reach has a total but no days.

`watch_time_ms`: Instagram watch time exists only for Reels in PubNio. `watch_time_ms` is `ig_reels_video_view_total_time` and `avg_watch_time_ms` is `ig_reels_avg_watch_time`; PubNio stores both as returned and applies no unit conversion. Feed posts, carousels, and Stories do not request them, and accounts have no watch time.

- Video placements use the Reels metric list, the only list with the two watch-time fields. A Reel's list also drops `follows` and `profile_visits`, which feed posts and Stories request.
- Completion rate is unsupported for Instagram (`not_exposed`), and account watch time is unsupported on both metrics.

## Example

`reach` is declared, and no daily account read has stored it yet, so it is `pending` with reason `not_published` until the first read lands. `impressions` and `likes` are metrics Instagram does not supply: each comes back `unsupported` with its reason. The request answers 200 with one entry per key.

```http
GET /api/v1/workspaces/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b/analytics/accounts/7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b?metrics=reach&metrics=impressions&metrics=likes
Authorization: Bearer pn_live_***
```

```json
[
  {
    "key": "reach",
    "value": null,
    "availability": "pending",
    "reason": "not_published"
  },
  {
    "key": "impressions",
    "value": null,
    "availability": "unsupported",
    "reason": "removed",
    "replacedBy": "views"
  },
  {
    "key": "likes",
    "value": null,
    "availability": "unsupported",
    "reason": "not_exposed"
  }
]
```

## Limits

- Instagram has no impressions or engagement rate in PubNio, and no account-level likes, comments, shares, saves, or follower gains: each is unsupported with the reason the response names.
- A request covers at most 366 days and 30 metrics, in UTC dates, and defaults to the last 30 days. How far back a daily series reaches depends on the workspace plan, and stored daily points are deleted after 400 days.

## Related

- [Analytics metrics on every network](https://pubnio.com/platforms/analytics)
- [Instagram impressions in the PubNio analytics API](https://pubnio.com/platforms/instagram/analytics/metrics/impressions)
- [Instagram clicks in the PubNio analytics API](https://pubnio.com/platforms/instagram/analytics/metrics/clicks)
- [Instagram shares in the PubNio analytics API](https://pubnio.com/platforms/instagram/analytics/metrics/shares)
- [Instagram link clicks in the PubNio analytics API](https://pubnio.com/platforms/instagram/analytics/metrics/link-clicks)
- [Instagram engagement in the PubNio analytics API](https://pubnio.com/platforms/instagram/analytics/metrics/engagement)
- [Instagram publishing API](https://pubnio.com/platforms/instagram)
- [Instagram OAuth scopes](https://pubnio.com/docs/providers/instagram/scopes/)
- [Instagram API errors](https://pubnio.com/docs/errors/instagram/)
- [Problem: analytics metric unsupported](https://pubnio.com/docs/problems/analytics-metric-unsupported/)
- [API reference: read one account's analytics](https://pubnio.com/docs/reference/analytics-accounts-get/)

