PubNio calls Instagram’s GET /{ig-user-id}/insights (IGUser.insights) to read an Instagram account’s daily insights.
How PubNio calls it
- Account analytics: the account sync makes this call;
GET /api/v1/workspaces/{workspaceId}/analytics/accounts/{accountId}returns what it stored. - PubNio sends
period=daywithsinceanduntilas Unix seconds covering the whole days of the range. - The
metriclist isviews,reach,profile_views, andwebsite_clicks. When Meta refuses that list as an invalid request, PubNio asks once more withoutviewsand reports the metrics it could not read as rejected. - The follower count does not come from this edge: PubNio reads
followers_countfrom the account node in a separate request.
Scopes
- The pinned spec names no scope. See Instagram scopes and permissions.
- Before the account analytics sync makes this call, PubNio checks that the account granted the scopes for its sign-in method (Instagram Login:
instagram_business_manage_insights; Facebook Login:instagram_manage_insights; Unified Login:instagram_manage_insights).
Errors
No error page names this call; see Instagram error codes.
Spec and changes
IGUser.insights in the pinned spec, revision 5c1fa8a1653722b402133f033fcc321d67981bbd.
Refreshed by hand: no weekly change record.
Limits
- PubNio asks for no more than a 90-day window on an Instagram Login account and a 30-day window on a Facebook Login or Unified Login account, and never for older days.