Introducing the Instagram APIRead more →

Instagram Hashtag Posts API. Top reels, page by page.

Top reels that carry a hashtag. We handle the proxies, blocks and platform changes.

Instagram Hashtag Posts API at a glance

Returns the top public Instagram reels that carry a hashtag, a page at a time in Instagram's ranking, from its name or link. Each has its caption, hashtags, mentions, publish time, author, play, like and comment counts, length, cover and video file. Every reel returned has the hashtag in its caption.

GET /v1/instagram/hashtag_posts

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 22 typed fields null when unknown
  • 24 top reels per page, Instagram's ranking of the hashtag's reels (its public results page's order)
  • url is all it needs, e.g. https://www.instagram.com/explore/tags/cooking/

Send one request. Get up to 24 top reels back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.instagram.com/explore/tags/cooking/
GET /v1/instagram/hashtag_postsTry in
const params = new URLSearchParams({
  url: "https://www.instagram.com/explore/tags/cooking/",
});
const res = await fetch(`https://socialtap.dev/v1/instagram/hashtag_posts?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/instagram/hashtag_postsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 21 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Instagram doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    An Instagram hashtag page link (instagram.com/explore/tags/cooking/), the page such a link opens logged out (instagram.com/popular/cooking/), or the hashtag itself with or without the # (cooking, #cooking).

  • Write one parser

    Instagram, TikTok, Facebook and 18 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
urlstring
Canonical post URL.
typestring
Normalized content shape. New values may be added; treat unknown values as other.
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
textstring
Caption, description or body as plain text.
languagestring
BCP-47 language of text, when the platform states it.

What teams build with the Instagram Hashtag Posts API.

  • Collect a hashtag's top reels for trend reports

  • Monitor a branded or event hashtag

  • Find creators posting under a niche hashtag

Good to know before you build.

  • Logged out, a hashtag opens Instagram's public results page for that word, which exists for many hashtags but not all. For the others (often the largest, like #fitness) the reels come from results pages for related keywords, still only ones with the hashtag.
  • When no results page has a reel with the hashtag, the answer is private_or_unavailable. A hashtag Instagram doesn't have returns not_found.
  • The results page also ranks reels that only mention the word, and those are left out, so a page can hold fewer reels than the limit, or none while next_cursor goes on.
  • Reels come in Instagram's ranking, not by time, so since and until filter each page.
  • Share and save counts and the author's display name are null: the page doesn't show them. If play counts fail on a page, it comes without view counts and verified badges, with a partial_data warning.
  • Media URLs are Instagram CDN links that expire at media[].expires_at.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Platform API api1 credit$0.75–$1.97
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Instagram Hashtag Posts API.

More in the API reference.

How is this different from Instagram search?
Search returns the reels Instagram ranks for a keyword. This endpoint takes a hashtag, keeps only the reels that carry it, and tells a hashtag Instagram hides logged out apart from one that doesn't exist.
Does it return a hashtag's recent posts?
No. Logged out, Instagram shows only a hashtag's top reels, in its own ranking. Its Recent tab needs a login.
How much does the Instagram Hashtag Posts API cost?
A page of up to 24 top reels costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs