Skip to content

Instagram account insights API: GET /{ig-user-id}/insights

When PubNio calls Instagram's account insights request, GET /{ig-user-id}/insights: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision.

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=day with since and until as Unix seconds covering the whole days of the range.
  • The metric list is views, reach, profile_views, and website_clicks. When Meta refuses that list as an invalid request, PubNio asks once more without views and reports the metrics it could not read as rejected.
  • The follower count does not come from this edge: PubNio reads followers_count from 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.

Sources

Type to search…

↑↓ navigate↵ selectEsc close