Introducing the Instagram APIRead more →

Instagram Search API. Reels matching your search.

Reels matching a keyword, with plays and likes. We handle the proxies, blocks and platform changes.

Instagram Search API at a glance

Returns the public Instagram reels for a keyword, as Instagram's logged-out search shows them, a page at a time in its own ranking. Each has its link, caption, hashtags, mentions, publish time, author with verified badge, play, like and comment counts, length, cover and video file.

GET /v1/instagram/search_posts

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 22 typed fields null when unknown
  • 24 reels per page, Instagram's ranking for the keyword (its popular page's order)
  • query is all it needs, e.g. vegan pasta recipe

Send one request. Get up to 24 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
query = vegan pasta recipe
GET /v1/instagram/search_postsTry in
const params = new URLSearchParams({
  query: "vegan pasta recipe",
});
const res = await fetch(`https://socialtap.dev/v1/instagram/search_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/search_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

    Keywords, matched as Instagram's public results pages match them (instagram.com/popular/<keywords>/): case, a leading # or @ and hyphens are ignored.

  • 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 Search API.

  • Find the most-watched reels on a topic

  • Monitor reels mentioning a brand or product

  • Collect reels on a keyword for research

Good to know before you build.

  • Results are Instagram's public results page for the keyword (instagram.com/popular/…), the only search it offers logged out, so they are reels in its order.
  • Instagram publishes such a page for many keywords but not all, and a keyword without one returns no results, ending with end_reason end.
  • Results are ranked, not ordered by time, so since and until filter each page by published_at.
  • 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 Search API.

More in the API reference.

Is this the same as Instagram's popular search?
Yes. Instagram's popular page for a keyword is its logged-out search. We return its reels with the publish time and like and comment counts the page itself doesn't show.
Does it search hashtags?
Yes, as their keyword: #veganpasta is read as veganpasta, because Instagram's hashtag pages send logged-out visitors to the same results page. The Instagram Hashtag Posts API keeps only the reels that carry the hashtag.
How much does the Instagram Search API cost?
A page of up to 24 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 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