Instagram shares in the PubNio analytics API

PubNio's Instagram shares is Meta's shares count. When Meta also returns reposts, that number rides along in breakdown.reposts but is not added in. If a post returns only reposts, that becomes the value. Capabilities describe the source as shares+reposts; the read does not sum them.

Instagram: LiveView as Markdown

What PubNio returns

MetricScopeInstagram fieldUnitCombines by
sharespostshares, else reposts when shares is absent; never the sum of the twocountsum
sharesaccountnot returned: not_exposedcountsum
commentspostcomments (feed posts, carousels, Reels); replies (Stories)countsum
commentsaccountnot returned: not_exposedcountsum

shares: Shares, reposts, quotes, or retweets.

comments: Comments, replies, or comment-like responses.

How PubNio reads it

  • Comments follow the same pattern: feed posts, carousels, and Reels ask for comments, Stories ask for replies, and whichever is present becomes comments. Capabilities call that source comments+replies.
  • Account-level shares and comments are unsupported (not_exposed).

Example

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

request.http
GET /api/v1/workspaces/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b/analytics/capabilities
Authorization: Bearer pn_live_***
response-excerpt-instagram-metrics.json
[
  {
    "key": "shares",
    "scope": "post",
    "granularity": "day",
    "unit": "count",
    "aggregation": "sum",
    "availability": "available",
    "supported": true,
    "renamedFrom": "shares+reposts"
  },
  {
    "key": "shares",
    "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 shares 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.