Actions21
- Auth Actions
- Carousel Actions
- Comment Actions
- IG Hashtag Actions
- IG User Actions
- Image Actions
- Messaging Actions
- Page Actions
- Reel Actions
- Story Actions
IG Hashtag → Search
AI-generatedSummary
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.