Skip to content

GET/v1/instagram/search/posts?q={keyword}

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.

GEThttps://api.handlehaul.com/v1/instagram/search/posts?q={keyword}

Cost: 1 credit per page read live. Cached pages (15 minutes) and failed calls are free.

Try itsandbox data · no key needed

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 owner of 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

qqueryrequired
Required. The keyword or phrase (1 to 64 characters).
cursorqueryoptional
Optional. pagination.next_cursor from the previous page, when has_more is true.
freshqueryoptional
Optional. true 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

StatusCodeWhen
400invalid_requestq is missing or too long
400invalid_cursorThe 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.

/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.

↑↓ to move↵ to open