Instagram Post and Reel Search API
GET /v1/instagram/search/posts?q= returns public Instagram posts and reels for a keyword, in the order Instagram's own top search ranks them, about 10 per page. Each result is the same post object as everywhere else in the API: shortcode, url, taken_at, media_type (reel for Reels), caption, counts, media URLs, owner, and location and audio when the post has them.
Cost: 1 credit per page read live. Cached pages (15 minutes) and failed calls are free.
Every example on this page follows what you type here.
GET /v1/instagram/search/posts?q=matcha latte
Sample data in the live schema. Use private_x, ghost_x or hidden_x to see errors.
Why this route exists
Instagram no longer offers a separate keyword search for Reels, and hashtag pages now show only their Top tab. The blended top search is the one place Instagram still answers "posts about this word", so this route reads it and keeps only the posts and reels, in its order.
- Trend and content research: what is ranking for a product name, a place or a topic right now.
- Creator discovery: the
ownerof each result is a ready lead for the Profile API. - Brand monitoring for words that are not hashtags.
What it is, and is not
Results are Instagram's ranking for the query, not every post that contains the word, and not newest first. Running the same search later can return different posts as Instagram's ranking moves. For posts under one tag use the Hashtag API; for the newest posts at one spot, the Location API with sort=recent.
Parameters
qqueryrequiredcursorqueryoptionalpagination.next_cursor from the previous page, when has_more is true.freshqueryoptionaltrue bypasses the cache and is billed as a live call.Response
Sandbox-key sample, live schema:
On TikTok
GET /v1/tiktok/search?q=&type=videos searches TikTok videos in the same envelope. See the TikTok Search API.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | q is missing or too long |
| 400 | invalid_cursor | The cursor came from another search |
FAQ
Can I search Instagram Reels by keyword with an API?
Yes. Call /v1/instagram/search/posts?q= and keep the results whose media_type is reel. Instagram mixes Reels and posts in its top search, and most results for popular words are Reels.
Is it every post that mentions the word?
No. It is Instagram's ranked top results for the query, about 10 per page, which is what the Instagram app shows when you search a word.
Are the results newest first?
No, they are in Instagram's ranking order. Use taken_at to sort or filter by date on your side.
How is it different from hashtag search?
/v1/instagram/search/hashtags finds hashtags; /v1/instagram/hashtags/{tag}/posts lists top posts under one tag. This route searches a free-text keyword across posts and reels.