Instagram (Login) icon

Instagram (Login)

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

User → Get Media

AI-generated

Summary

Lists media (posts, reels, etc.) from the authenticated Instagram account via graph.instagram.com GET /me/media, emitting one output item per media object, with optional pagination to fetch all.

Inputs

  • Media Fields — Comma-separated fields to request. Defaults to id,caption,media_type,media_url,thumbnail_url,permalink,timestamp,like_count,comments_count.
  • Return All — If true, follows pagination cursors (100 per page) until no further pages exist. Default false.
  • Limit — Max number of media items to return when Return All is off (min 1, default 25). Pages are fetched up to 100 at a time and results trimmed to this limit.
  • Graph API Version — graph.instagram.com API version used in the request path. Default v21.0.
  • Access Token (Override) — Optional token used instead of the Instagram Login API credential; can be an expression for multi-account workflows. Leave empty to use the credential.

Output shape

A list of items, one per media object, each containing the requested fields as returned by the API. Each is paired to its input item.

Runs once per input item. Items without matching data yield no output. With Continue On Fail enabled, a failed item outputs {error: message}. Only fields supported by the API for the account/media type are returned.

Examples

Example 1: Fetch the 10 most recent posts with captions and permalinks

Media Fields: id,caption,permalink,timestamp; Return All: off; Limit: 10

Example 2: Export the full media library for analytics

Return All: on; default Media Fields

Example 3: List media for different accounts supplied by upstream data

Access Token (Override): {{ $json.account_token }}; Limit: 25

Links

Discussion