Instagram Hashtag & Keyword Search: Top Posts, No Login

v1.0.4
dev.workers.pomlabs.pom-data-api/instagram-hashtag-search Checked 4 days ago Published 18 hours ago

Top public Instagram posts for any hashtag or keyword, no login and no cookies: post link, type

Top public Instagram posts for any hashtag or keyword, no login and no cookies: post link, type, caption, hashtags, mentions, date, video views, likes, comments, owner, image and video links, plus related keywords and a short description of the term. Get the top public Instagram posts for any hashtag or keyword, with no login, no cookies and no Instagram account.

Summary extracted from the README.

Instagram Hashtag & Keyword Search: Top Posts, No Login

Top public Instagram posts for any hashtag or keyword, no login and no cookies: post link, type, caption, hashtags, mentions, date, video views, likes, comments, owner, image and video links, plus related keywords and a short description of the term.

Run it on Apify: no install, free credit on a new Apify account.

Get the top public Instagram posts for any hashtag or keyword, with no login, no cookies and no Instagram account. Type coffee, #latteart or iced coffee and get the posts Instagram shows for that term, each with its link, type, caption, hashtags, mentions, date, video views, likes, comments, duration, music, tagged users, coauthors, location, owner and media links. Each term also comes with its related keywords and a short description of the term written by Instagram.

What you get

For each post (one dataset item, one post event):

Field What it is
keyword, rank The term and the position of the post on its page
url, shortCode, id Post link, short code and numeric id
type Video (Reel), Image or Sidecar (carousel)
caption, hashtags, mentions Full caption and the hashtags and @mentions in it
timestamp When the post was published (UTC)
videoPlayCount Reel views
likesCount, commentsCount Likes and comments (null when the owner hides them)
productType clips (Reel), feed or carousel_container
videoDuration Reel length in seconds
musicInfo Song or original audio of the Reel: title, artist, audioId, original
taggedUsers, coauthorProducers Accounts tagged in the post and collab coauthors
locationName, locationId Place tagged in the post
relatedTopics Topics Instagram links to the post
dimensionsWidth, dimensionsHeight, carouselCount, captionIsEdited, accessibilityCaption Media size, number of carousel items, edited caption flag and Instagram's alt text
ownerUsername, ownerFullName, ownerId, ownerVerified, ownerProfilePicUrl Who posted it
displayUrl, videoUrl Cover image and video file links
sectionKeyword On broad category pages, the sub-topic the post came from

For each hashtag or keyword (one free item, type: "keyword"):

Field What it is
status ok, no_public_results (Instagram has no public page for this term) or invalid_keyword
pageType keyword (a term page, up to 12 posts) or category (a broad topic such as football, up to 60 posts from its sub-topics)
relatedKeywords Terms Instagram links to this one: ideas for more searches
description Instagram's short description of the term
hasMore Whether Instagram has more posts for the term than the public page shows

Example output

{
  "keyword": "coffee",
  "rank": 1,
  "url": "https://www.instagram.com/reel/DQr0leHAWYa/",
  "type": "Video",
  "caption": "daily affirmations 🤲 ... #icedcoffee #coffee #coffeeislife",
  "hashtags": ["icedcoffee", "coffee", "coffeeislife", "homecafé", "pecanpie", "pecan"],
  "mentions": [],
  "timestamp": "2025-11-05T18:23:51Z",
  "videoPlayCount": 1232633,
  "likesCount": 45168,
  "commentsCount": 203,
  "productType": "clips",
  "videoDuration": 9.57,
  "relatedTopics": ["iced latte"],
  "ownerUsername": "sipsbylilly",
  "ownerFullName": "lilly drucis",
  "ownerVerified": true,
  "displayUrl": "https://scontent...cdninstagram.com/...",
  "videoUrl": "https://scontent...cdninstagram.com/..."
}

Input

Field Default What it does
hashtags ["coffee"] Hashtags (with or without #), keywords with spaces, or Instagram hashtag, popular or keyword search URLs. keywords and search are accepted too.
resultsLimit 12 Max posts per term (1 to 60). Term pages give up to 12; category pages up to 60.
resultsType posts posts for all top posts, reels for Reels only.
includeCounts true Fill likes, comments, duration, music, tagged users, coauthors and location for each post. Turn off for a faster run with views only. Same price either way.

Pricing

Pay per result: $0.0012 per post. The keyword item (related keywords and description) is free, and terms with no public page cost nothing. You can cap the cost of a run with the maximum charge setting; the Actor stops when it is reached.

Good to know

  • No login, no cookies, no account at risk. The Actor reads the same public pages Instagram shows to people who are not logged in.
  • Top posts, not every post. This is the set Instagram ranks as top for the term: the posts most people see. It does not list every recent post with a hashtag.
  • Some very broad single words have no public page (for example fitness or love). Those come back with status: "no_public_results" and are not charged; a more specific term (home workout, fitness over 40) usually works.
  • Dates come from the post id and are accurate to the second.
  • Likes, comments and post details are read from each post's public page, Reels included. If the owner hides the like count, likesCount is null.

Use it as an API or from an AI agent

Run it from the Apify API, any of the Apify client libraries, or call it as an HTTP endpoint in Standby mode: GET /hashtags?hashtags=coffee. It is also an MCP server at /mcp with the tool search_instagram_hashtags, ready for Claude, Cursor and other MCP clients.

FAQ

Is it legal to scrape Instagram hashtags? The Actor only reads public posts that anyone can see without logging in. If your use involves personal data, check the rules that apply to you.

Why fewer than resultsLimit posts? Term pages show up to 12 top posts. Ask for a broad topic (it may open a category page with up to 60) or add related keywords from the free keyword item.

Can I get the newest posts for a hashtag? Not yet: Instagram only shows the newest posts to logged-in users. Tell us if you need it.

Support, feedback and requests

Questions, bug reports, complaints, feature requests, or an idea for a new tool? Email us at pomexplica+support@gmail.com, in any language. We read our inbox every day and answer every message. Suggestions and feedback of every kind are welcome: tell us what you need and we will look into it.

Call it by API

curl -X POST "https://api.apify.com/v2/acts/pomlabs~instagram-hashtag-search/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"hashtags": ["coffee", "football"]}'

Python:

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("pomlabs/instagram-hashtag-search").call(run_input={"hashtags": ["coffee", "football"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

Use it from Claude, Cursor or any MCP client

claude mcp add instagram-hashtag-search "https://mcp.apify.com?tools=pomlabs/instagram-hashtag-search" -t http

More Actors by Pom Labs

All our Actors: apify.com/pomlabs