Instagram engagement in the PubNio analytics API

Instagram post engagement is Meta's own total_interactions, not PubNio's likes + comments + shares + saves formula: when the provider sends engagement, PubNio keeps it and derives nothing. Account engagement is unsupported. Post engagement_rate is unsupported because PubNio has no Instagram impressions to divide by (impressions_removed), and account engagement_rate is not_exposed.

Instagram: LiveView as Markdown

What PubNio returns

MetricScopeInstagram fieldUnitCombines by
engagementposttotal_interactionscountsum
engagementaccountnot returned: not_exposedcountsum
engagement_ratepostnot returned: impressions_removedratioratio
engagement_rateaccountnot returned: not_exposedratioratio

engagement: Derived: likes + comments + shares + saves.

engagement_rate: Engagement divided by impressions, 0 to 1.

How PubNio reads it

  • Derivation never overwrites a provider value: the shared step adds engagement only when the reading lacks one.
  • Every placement's request includes total_interactions, Stories too, so Story engagement is reported even though Story likes and saves are not applicable.

Example

The capabilities endpoint answers without calling Instagram. Under the Instagram provider, these are its entries for engagement.

request.http
GET /api/v1/workspaces/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b/analytics/capabilities
Authorization: Bearer pn_live_***
response-excerpt-instagram-metrics.json
[
  {
    "key": "engagement",
    "scope": "post",
    "granularity": "day",
    "unit": "count",
    "aggregation": "sum",
    "availability": "available",
    "supported": true,
    "renamedFrom": "total_interactions"
  },
  {
    "key": "engagement",
    "scope": "account",
    "granularity": "day",
    "unit": "count",
    "aggregation": "sum",
    "availability": "unsupported",
    "supported": false,
    "reason": "not_exposed"
  }
]

Limits

  • PubNio stops re-reading an Instagram post 90 days after it is published, so a post's engagement stops changing then.
  • A metric Instagram does not report comes back with value: null and an availability state that says why. A post with no stored values whose last read failed on permissions, a rate limit, or a transient error answers with that error instead.