Instagram (Login) icon

Instagram (Login)

Use the Instagram API with Instagram Login (graph.instagram.com) - no Facebook Page required

Media → Get Insights

AI-generated

Summary

Fetches insight metrics for a single Instagram media object (post, reel, etc.) from graph.instagram.com using the Instagram Login API.

Inputs

  • Media ID (required) — ID of the Instagram media object to fetch insights for.
  • Metrics — Comma-separated metric names sent as the metric query parameter. Defaults to reach,likes,comments,saved,shares,total_interactions. For reels, plays can be added.
  • Graph API Version — graph.instagram.com API version used in the request path. Defaults to v21.0.
  • Access Token (Override) — If set, this token is used instead of the Instagram Login API credential. Use an expression to target different accounts per item.

Output shape

One output item per metric entry in the API response's data array (e.g. name, period, values, title, description, id). If the response has no data array, the whole response is returned as a single item.

Runs once per input item, and each output item is paired to its input item. Metric names the media type doesn't support will cause an API error. With Continue On Fail enabled, a failed item outputs {error: message} instead of stopping the workflow.

Examples

Example 1: Check performance of a recently published reel

Media ID = reel ID from the publish step; Metrics = reach,plays,likes,comments,saved,shares,total_interactions

Example 2: Pull default engagement metrics for many posts across accounts

Media ID = {{ $json.id }}; Access Token (Override) = {{ $json.account_token }}; Metrics left at default

Links

Discussion