Instagram hub

Instagram Hashtag Media API

Page the posts and Reels under a hashtag as structured JSON: the top view, the newest posts, or Reels only, in the shared Social Fetch v2 envelope.

GET /v2/instagram/hashtags/{hashtag}/media

1 credit per page Deeper tab=recent pages, past page 11 on a busy tag: 2 credits per page

About this endpoint

GET /v2/instagram/hashtags/{hashtag}/media takes the hashtag in the path, with or without a leading #, or an instagram.com /explore/tags/<name>/ link. The optional tab query picks the view: top (default) for the posts and Reels as Instagram's app shows them, ranked by relevance; reels for the Reels in that view; or recent for posts from the last 7 days, newest first within each page. On a completed lookup, read data.lookupStatus (found or not_found), then data.media and data.page (hasMore, nextCursor).

Each item is the media object every v2 list returns: id, shortcode, url, kind (post or reel), mediaType, caption, createdAt (ISO-8601), the owner, metrics (likeCount is null and likesHidden true when the author hides likes), media URLs, carousel, audio, coauthors, location and isPaidPartnership. taggedUsers is null when an item doesn't carry its tags. Every field is always present and null when Instagram doesn't say.

There is no other date filter: poll tab=recent and stop paging at the date you need. recent pages are each newest first, but the list as a whole isn't in date order, so sort by createdAt if you need it. On a tag busy enough to fill 11 newest-first pages, recent then goes deeper with more posts ranked by relevance, still within the same 7 days (counted from your first page), and ends when a deeper page finds no more. A quieter tag's list ends where its posts do. When data.page.hasMore is true, pass data.page.nextCursor as cursor; a cursor keeps the view it came from, so you can omit tab on later pages. Pages can overlap on Instagram's side, so repeated posts are dropped and the list ends when a page brings nothing new. Instagram CDN URLs expire. Bill from meta.creditsCharged, per page: 1 credit, or 2 for a deeper recent page, past page 11. For a tag's post count use GET /v2/instagram/hashtags/{hashtag}.

Price

  • 1 credit per page
  • Deeper tab=recent pages, past page 11 on a busy tag: 2 credits per page

The cost depends on the request, so there is no flat price per 1,000 requests.

Example request

Send your API key in the x-api-key header. New accounts get 100 free credits, no card needed.

Request
cURL

Example response

A 200 response. Live responses have the same shape with current data.

Request
JSON

Instagram Hashtag Media API FAQ

How do I list posts under an Instagram hashtag via API?

Call GET /v2/instagram/hashtags/{hashtag}/media with your Social Fetch API key (x-api-key) and the hashtag in the path. Choose a view with tab=top|recent|reels. Read data.lookupStatus, data.media and data.page in the JSON response. See the API docs for parameters and examples.

How much does the Instagram Hashtag Media API cost?

Each page costs 1 credit, top and reels pages and the first 11 tab=recent pages included, on every payment method. Only deeper tab=recent pages, past page 11 on a tag busy enough to fill them, cost 2: they reach further back, still within the last 7 days. A quieter tag's recent list ends where its posts do, at 1 credit a page. Each paginated page is a separate billed request; read meta.creditsCharged. Errors aren't charged. A completed lookup that finds nothing is.

What is the difference between the top, recent and reels tabs?

top is the tag as Instagram's app shows it, posts and Reels ranked by relevance rather than date. reels is the Reels in that view. recent is posts from the last 7 days, newest first within each page, which is the view to poll for new content. Each tab pages on its own cursor, and the cursor remembers its tab.

Can I filter hashtag posts by date?

tab=recent covers the 7 days before your first page. Each page is newest first, but the list as a whole isn't in date order, so sort by createdAt if you need it, rather than stopping at the first older post. There is no other date filter.

How does pagination work?

When data.page.hasMore is true, pass data.page.nextCursor as cursor on the next request. The cursor keeps the view, so you can leave tab out, but sending a different tab, or using the cursor for another hashtag, returns 400. The list ends when hasMore is false, even if Instagram would keep serving pages, so a client never loops.

What does not_found mean, and what if a hashtag returns nothing?

not_found means no public post uses the hashtag. found with an empty media list is the end of the list, or a hashtag whose posts Instagram doesn't show publicly, as with some sensitive tags. Both come back as a normal response, billed once.