Instagram Hashtag search API
Recent posts under a hashtag with cursor pagination: shortcode, type, caption and media URL.
Try it
Make your first request
{
"found": true,
"data": {
"posts": [
{
"id": "3714950709444987377",
"shortcode": "DOOJ_zSjcnx",
"type": "XDTGraphVideo",
"url": "https://www.instagram.com/reel/DOOJ_zSjcnx/",
"caption": "Launch day! 🚀 #spacex",
"displayUrl": "https://instagram.com/reel/DOOJ_zSjcnx/media.jpg"
}
]
}
}interface InstagramSearchHashtagResponse {
data: {
nextCursor: string | null;
posts: {
avatarUrl?: string;
caption: string;
comments?: number;
createdUtc?: number;
displayName?: string;
displayUrl: string;
durationSeconds?: number;
hasAudio?: boolean;
id: string;
isAd?: boolean;
likes?: number;
paidPartnership?: boolean;
productType?: string;
shortcode: string;
type: string;
url: string;
userId?: string;
username?: string;
verified?: boolean;
videoUrl?: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-20 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/instagram.search_hashtag \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"hashtag":"spacex"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| hashtag | string | "spacex"Hashtag to search, without the leading #. |
| cursor | string | Pagination cursor from a previous response. |
| datePosted | enum | Restrict results to posts published within this window. |
| mediaType | enum | Filter by media type. One of all, reel. |
| Response | ||
| found | boolean | true |
| data | object | |
| data.posts | array | |
| data.posts[].id | string | "3714950709444987377" |
| data.posts[].shortcode | string | "DOOJ_zSjcnx" |
| data.posts[].type | string | "XDTGraphVideo" |
| data.posts[].url | string | "https://www.instagram.com/reel/DOOJ_zSjcnx/" |
| data.posts[].caption | string | "Launch day! 🚀 #spacex" |
| data.posts[].displayUrl | string | "https://instagram.com/reel/DOOJ_zSjcnx/media.jpg" |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the Instagram Hashtag search API
The AnyAPI Instagram Hashtag search API returns Instagram hashtag search data as normalized JSON from one POST call to /v1/run/instagram.search_hashtag. Recent posts under a hashtag with cursor pagination: shortcode, type, caption and media URL. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 94.4% of Instagram hashtag search calls through AnyAPI succeeded, with a median response time of 4.8 seconds across 3,912 measured calls.