SignalShelf · Developer documentation

Instagram · search · hashtag

Search Instagram posts by #hashtag or keyword. GET /v1/instagram/search/hashtag accepts your x-api-key header. Costs 2 credits per successful fresh call; failures and opt-in cache hits (cache_max_age) are free. Native path: GET /api/v1/web/instagram/search/hashtag. Same request parameters and JSON shape as the reference API, so you can switch by changing the base URL.

Request parameters

Instagram's own top results for a hashtag or keyword search (what the signed-in Instagram search page shows), 24 posts per page with like, comment and view counts, caption and owner. These are top results, not a newest-first hashtag feed, and some captions may not contain the tag. date_posted and media_type filter the returned page. Paginate with next_cursor.

ParameterTypeRequiredDescription
hashtagstringYesHashtag (with or without #) or keyword.
date_postedstringNoKeep only posts from this window (filtered on the returned page). Allowed: last-hour, last-day, last-week, last-month, last-year.
media_typestringNoall (default) or reels (videos only). Allowed: all, reels.
cursorstringNonext_cursor from the previous response.
freshnessstringNo24h (default), 1h, 7d, or live. Accepted cache hits are free; live forces refresh except simultaneous requests may share newly fetched data.

Code examples

Set SIGNALSHELF_BASE_URL (https://signalshelf.dev) and SIGNALSHELF_API_KEY on your server.

REQUEST EXAMPLE
curl "$SIGNALSHELF_BASE_URL/v1/instagram/search/hashtag?hashtag=travel" \
  -H "x-api-key: $SIGNALSHELF_API_KEY"

Response

Returns success, credits_charged and credits_remaining, plus the fields of the source, in the same JSON shape as the reference API.

More results: cursor (next_cursor from the previous response).

Errors and credits

Failed calls cost nothing. 400: invalid parameters. 401: missing or revoked key. 402: no credits left. 404: not found at the source. 429: rate limit. 502 or 503: the source blocked or failed the lookup; retry later.

Errors and limits

More Instagram endpoints

20 other Instagram endpoints use the same key and credits.

Instagram search profiles Instagram post comment replies Instagram profile Instagram user posts Instagram user reels Instagram post
Explore the API in your workspace. Sample results and accepted cache hits cost zero credits. Open the playground →