Actions24
- User Actions
- Publish Actions
- Media Actions
- Comment Actions
- Messaging Actions
- Auth (Token) Actions
Media → Get
AI-generatedSummary
Fetches a single Instagram media object (post, reel, story, or carousel) by ID from graph.instagram.com and returns the requested fields as one item.
Inputs
- Media ID (required) — ID of the Instagram media object to retrieve. Used in the request path (/{version}/{mediaId}).
- Fields — Comma-separated list of fields to request. Defaults to id,caption,media_type,media_product_type,media_url,thumbnail_url,permalink,timestamp,username,like_count,comments_count.
- Graph API Version — graph.instagram.com API version used in the request path. Defaults to v21.0; falls back to v21.0 if empty.
- Access Token (Override) — Optional token used instead of the Instagram Login API credential. Can be an expression to query different accounts per input item.
Output shape
One output item per input item, containing the JSON media object returned by the Graph API with only the requested fields.
Each output item is paired to its input item. If Continue On Fail is enabled, failed items return {error: message} instead of stopping the workflow. Which fields come back depends on the Fields value and on the media type and token permissions.
Examples
Example 1: Look up details of a specific post by its ID
Media ID set to the post ID; leave Fields at default.
Example 2: Fetch only the permalink and like count for media IDs from a previous node
Media ID = {{ $json.id }}; Fields = permalink,like_count.
Example 3: Read media from multiple Instagram accounts in one run
Media ID = {{ $json.media_id }}; Access Token (Override) = {{ $json.account_token }}.