Instagram icon

Instagram

Publish media to Instagram using Facebook Graph API

Actions21

IG Hashtag → Search

AI-generated

Summary

Search for an Instagram hashtag by name using the Instagram Graph API to obtain its ID for further use in fetching related media.

Inputs

  • Node (required) — The Instagram Business Account ID or User ID performing the hashtag search, typically the professional account issuing the query.
  • Graph API Version (required) — The Facebook Graph API version to use for the request, such as 'v22.0'.
  • Hashtag Name (required) — The name of the hashtag to search for, without the '#' prefix.

Output shape

a single JSON object containing the search result with the hashtag ID and metadata

The response includes the ID(s) of matching hashtags, which can be used for subsequent operations like retrieving recent or top media tagged with the hashtag. The output is paired with the input item index. Errors are returned as JSON objects if the search fails.

Examples

Example 1: Search for hashtag 'n8nworkflow'

Set Resource to 'IG Hashtag', Operation to 'Search', Node to the Instagram Business Account ID, Graph API Version to 'v22.0', and Hashtag Name to 'n8nworkflow' to retrieve the hashtag ID.

Links

Discussion