How to run an Instagram hashtag search
GET request to /v1/instagram/hashtag-search with your input. You get clean JSON back in seconds for 2 credits per call — no OAuth, scraping or platform SDKs. 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.
How to run an Instagram hashtag search (step by step)
- 1
Get a free API key
Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.
- 2
Call the Instagram Hashtag Search API
Send an authenticated GET request to /v1/instagram/hashtag-search with your input. No OAuth, no scraping setup.
- 3
Read the JSON response
Parse the clean JSON response. Pass cache=true for a free 24h cache hit; default is always fresh.
Code example
curl "https://api.captapi.com/v1/instagram/hashtag-search?q=skincare" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."What the response looks like
{
"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 (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Hashtag without the # (min 2 characters). One token — spaces are 400 HASHTAG_HAS_SPACES. |
| limit | integer | No | Max items to return (default 20, max 50). Flat 2 credits per call. |
| mediaType | string | No | all (default) or reels — return only Reels/clips when set to reels. |
| cache | boolean | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. |
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.
Ready to run an Instagram hashtag search?
Start free with 100 credits — no credit card required.
Get your free API key