Instagram icon

Instagram

Publish media to Instagram using Facebook Graph API

Actions21

IG Hashtag → Get Recent Media

AI-generated

Summary

Fetch recent media tagged with a specified Instagram hashtag using the Instagram Graph API.

Inputs

  • Node (required) — The Instagram Business Account ID or User ID performing the hashtag query.
  • Graph API Version (required) — Facebook Graph API version to use, e.g., 'v22.0'.
  • Hashtag ID (required) — The IG Hashtag ID obtained from a previous hashtag search operation.
  • Return All — Whether to retrieve all results or limit the result count.
  • Limit — Maximum number of results to return when 'Return All' is false; ranges from 1 to 500.

Output shape

a JSON object containing a 'data' array of recent media objects tagged with the hashtag.

Supports pagination internally; returns up to 5000 items if 'Return All' is true. Each media object includes fields like id, media_type, media_url, caption, permalink, timestamp, comments_count, and like_count.

Examples

Example 1: Retrieve recent media for a hashtag with a result limit

Set 'Node' to the Instagram Business Account ID, 'Graph API Version' to 'v22.0', the 'Hashtag ID' from a prior search, 'Return All' to false, and specify a 'Limit', e.g., 50. The node returns up to 50 of the most recent media tagged with the hashtag.

Links

Discussion