Introducing the Instagram APIRead more →

Instagram Hashtag Search API. Hashtags matching your search.

Hashtags matching a word, with exact post counts. We handle the proxies, blocks and platform changes.

Instagram Hashtag Search API at a glance

Returns the Instagram hashtags that match a word or the start of a hashtag, with exact post counts, in Instagram's own ranking. Each has its name, page link and numeric tag ID. The cursor pages well past the first screen Instagram's search shows.

GET /v1/instagram/search_hashtags

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 9 typed fields null when unknown
  • 55 hashtags per page, Instagram's search ranking (most relevant first)
  • query is all it needs, e.g. cooking

Send one request. Get up to 55 hashtags 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
query = cooking
GET /v1/instagram/search_hashtagsTry in
const params = new URLSearchParams({
  query: "cooking",
});
const res = await fetch(`https://socialtap.dev/v1/instagram/search_hashtags?${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/search_hashtagsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 2 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

    What to search hashtags for: a word or the start of a hashtag, with or without the # (cooking, #sourdough, 料理, ❤).

  • Write one parser

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

platformstring
Platform ID (tiktok, instagram, …).
idstring
Platform-native hashtag ID (TikTok's challenge ID, Threads' tag ID); on platforms whose public pages key a hashtag by its name (Instagram, YouTube, Facebook, X), the name lowercased.
namestring
The tag without #, as the platform shows it (case kept). Threads tags may contain spaces ("book club").
urlstring
Canonical hashtag page URL (for a multi-word Threads tag, its tag search page).
descriptionstring
The hashtag's description as its page shows it; null when it has none.
thumbnail_urlstring
The hashtag's own picture (not one of its posts' images); null when it has none. Platform CDN URLs can expire.
metricsobject
Counts at fetch time; null = hidden or not exposed, 0 = zero.
approximate_fieldsstring[]
JSON paths of values rounded by the platform or parsed from display text ("36M videos": metrics.post_count). [] when all exact.

What teams build with the Instagram Hashtag Search API.

  • Find hashtags for a post or campaign

  • Discover popular variants of a hashtag

  • Rank related hashtags by size

  • Suggest hashtags in a scheduling tool

Good to know before you build.

  • Instagram's ranking includes hashtags that start with the query and lookalikes of it (accents, case, emoji variants), so a result may only resemble the query.
  • Instagram hides results for some sensitive searches, which then return an empty list, as its own search does.
  • Instagram's search goes only so deep, so the list ends with page.end_reason platform_limit after some hundreds of hashtags.
  • Post counts are exact, except for the very largest hashtags, where Instagram stops counting at a cap and approximate_fields lists the count.
  • description and thumbnail_url are null: Instagram shows neither logged out.

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
Any source1 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 Search API.

More in the API reference.

How much does the Instagram Hashtag Search API cost?
A page of up to 55 hashtags 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 with your own search.

Type 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