Support needed? Reach out! 📧

Instagram Search by Keyword API

Search Instagram by keyword to find posts, accounts, and topics relevant to your research or social listening work.

python-logo Python
Instagram Search
1 import requests
2  
3 root = "https://ensembledata.com/apis"
4 endpoint = "/instagram/search"
5 params = {
6   "text""Cristiano Ronaldo",
7   "token""YOUR-TOKEN-HERE"
8 }
9  
10 res = requests.get(root+endpoint, params=params)
11 print(res.json())
12  

Why Developer Teams Use Our API

Ranked Search Results

Query a keyword and get back the same ranked content a user would see.

Discover Niche Creators

Surface accounts already ranking for a topic to speed up influencer shortlists.

Spot Rising Topics

Catch what's gaining traction around a keyword before it becomes mainstream content.

No App Session Needed

Run keyword research over plain HTTP requests without an Instagram login.

Live Ranking Data

Results reflect what's actually ranking on Instagram right now, not a stale index.

Schedule Ongoing Searches

Automate repeat lookups on key terms to track how a topic shifts over time.

Scrape Instagram Data Effortlessly

Find trending Instagram content and relevant creators by search term with our keyword search API, no manual browsing required.

deco-icon

Hashtag Suggestions

Surface related hashtags alongside Instagram keyword results to widen your search.

deco-icon

Niche Account Discovery

Find Instagram accounts already active in a niche without scrolling manually.

deco-icon

Topic Momentum Check

Gauge how much content volume a keyword generates before running a campaign.

Instagram Scraping Features

Identify what resonates on Instagram for any topic or niche using keyword-based search, useful for competitive research and influencer discovery.

  • Query a term and get back posts, accounts, and hashtags the way Instagram's own search would.
  • Surface hashtag suggestions as a separate result type alongside matching posts and accounts.
  • Bias results toward a specific market with an optional region parameter.
  • Search using emoji or non-Latin scripts the same way as any Latin keyword.
  • Automate ongoing social listening by scheduling repeat searches for a fixed set of terms.

Starting crawling Instagram now!

deco-icon

Get Your API Key in Minutes

Create a free account (no credit card required) and receive an API token instantly to test endpoints, pull live data, and rapidly prototype integrations. Upgrade as your needs grow.

Get started free
deco-icon

Developer Support

Need help integrating or customizing data for your workflows? Our developer success team offers onboarding, guidance, and enterprise support to get your project production-ready.

Contact us

Frequently Asked Questions

It returns posts, accounts, and hashtags relevant to your search term, similar to Instagram's in-app search results.

Yes, searching niche-relevant keywords surfaces accounts and posts currently associated with that topic, useful for influencer and creator discovery.

Results are pulled live from Instagram at request time, reflecting current content and accounts associated with the keyword.

Each request accepts a single search term; run separate requests for each keyword you want to research.

Hashtag suggestions are returned as their own section in the response, separate from matching posts and accounts, so each type can be processed independently.

Yes, an optional region parameter narrows results toward that market; without it, the endpoint returns Instagram's default global ranking for the term.

A single request returns a fixed page of results across posts, accounts, and hashtags; there's no deep pagination into search results beyond that first page.

Yes, the search term is passed through as-is, so emoji, Cyrillic, Arabic, and other non-Latin scripts are supported the same as Latin keywords.

Yes, many teams call this endpoint on a schedule for a fixed set of keywords to continuously monitor emerging content and conversations.