Instagram
GET /v1/instagram/hashtag-search

Instagram Hashtag Search API

Use the Instagram Hashtag Search API as a hashtag scraper: send one tag and get up to 50 posts and Reels from its public hashtag page as JSON.

One of 17 endpoints in the Instagram Reels API.

2 credits per request
TL;DR
Use the Instagram Hashtag Search API as a hashtag scraper: send one tag and get up to 50 posts and Reels from its public hashtag page as JSON. The Instagram Hashtag Search API (Instagram) is a single authenticated GET request to /v1/instagram/hashtag-search that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.

What is the Instagram Hashtag Search API?

Pass a hashtag without the # and get posts from its Instagram hashtag page as JSON. It is not keyword search: a query with spaces (travel blog) is 400 HASHTAG_HAS_SPACES. limit is 20 by default and 50 at most, and there is no cursor. mediaType=reels returns only Reels. A tag Instagram does not have is 404 HASHTAG_NOT_FOUND. When the page cannot be read the call is 502, or a 200 marked stale with results up to 6 hours old; both cost 0 credits. Read retryable before retrying a 502. Flat 2 credits. Pass cache=true for the shared cache.

What you get

  • Posts and Reels from the hashtag page (Reels-heavy; not keyword search)
  • engagement.views + viewsSource on video rows; likes/comments with *IsApproximate flags
  • hidden counts are omitted keys, not fabricated zeros
  • isPaidPartnership / isAd / isAffiliate, musicId, location, mediaType=reels
  • promoCodes / disclosureInCaption / brandMentions on every row (same caption rules as details)
  • author.followers + author.postCount on every row; degradedReason says when they could not be read

Try it

Open in Playground

Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).

Parameters

Sign in to run live
curl "https://api.captapi.com/v1/instagram/hashtag-search?q=skincare" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

Edit the parameters and the code updates instantly. Switch languages and hit copy.

Example response

{
  "success": true,
  "data": {
    "total": 2,
    "results": [
      {
        "title": "Top result",
        "url": "https://example.com/1",
        "author": "@creator",
        "views": 530120
      },
      {
        "title": "Second result",
        "url": "https://example.com/2",
        "author": "@maker",
        "views": 210430
      }
    ]
  }
}

Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Request-Id (include it when contacting support). Where the response has a source field, it names the path that served the data: native, extended, cache or asr. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.

Response structure

A successful call returns success and a data object with the following fields:

Result

  • totalNumber of results returned.

Each result

Each item in results contains:

  • titleResult title.
  • urlDirect URL to the content.
  • authorCreator handle.
  • viewsView count where available.

Parameters

NameTypeRequiredDescription
qstringYesHashtag without the # (min 2 characters). One token — spaces are 400 HASHTAG_HAS_SPACES.
limitintegerNoMax items to return (default 20, max 50). Flat 2 credits per call.
mediaTypestringNoall (default) or reels — return only Reels/clips when set to reels.
cachebooleanNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.

Using an AI agent? This endpoint is the MCP tool instagram_hashtag_search via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/instagram/hashtag-search and parse the JSON response.

Use cases

Trend Discovery

Find trending content by keyword or hashtag.

Content Sourcing

Build feeds and playlists programmatically.

Monitoring

Track topics, brands, and competitors.

Research

Sample large sets of content for analysis.

Frequently asked questions

What does the Instagram Hashtag Search API do?+

The Instagram Hashtag Search API lets you search and return matching results from a public Instagram query using one GET request to /v1/instagram/hashtag-search. It returns clean JSON — no OAuth or infrastructure setup required.

How many credits does the Instagram Hashtag Search API cost?+

Each successful call costs 2 credits. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Failed or empty results are never charged.

Do I need an Instagram API key or OAuth?+

No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle access, rate limits, retries, and authentication for you.

I sent "travel blog" and got 400 HASHTAG_HAS_SPACES. Why?+

Instagram hashtags are a single token, so a query with a space is rejected at 0 credits. Use travel or #travel.

What should I do with a 502?+

The hashtag page could not be read and nothing was billed. If retryable is true, wait for Retry-After and send the request again. If it is false, the tag has failed several times in a row: try later or use Reels Search.

What does a stale response mean?+

When a fresh read fails and recent results exist, you get a 200 marked stale with results up to 6 hours old, at 0 credits.

Can I get more than 50 posts for a hashtag?+

Not in one call. limit tops out at 50 and this endpoint has no cursor.

I got 404 HASHTAG_NOT_FOUND. What does it mean?+

Instagram has no page for that tag, which usually means a typo. It costs 0 credits; fix the spelling and send it again.

Is the Instagram Hashtag Search API suitable for production use?+

Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.

More Instagram APIs

Ready to use the Instagram Hashtag Search API?

Sign up, grab your key, and make your first call in 60 seconds.

Instagram Hashtag Search API & Scraper — Captapi