Instagram API

Instagram Hashtag search API

Recent posts under a hashtag with cursor pagination: shortcode, type, caption and media URL.

POST/v1/run/instagram.search_hashtag
Uptime
94.38%
30d · 3,912 calls
Requests
3,912
30d · weekly, last 12 wks
Response
4.8s
median · 30d

Pricing

One price, in dollars

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "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"
      }
    ]
  }
}
Response interface
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 30d
POST /v1/run/instagram.search_hashtag
curl -X POST https://api.getanyapi.com/v1/run/instagram.search_hashtag \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"hashtag":"spacex"}'
FieldTypeExample value
Request body
hashtagstring"spacex"Hashtag to search, without the leading #.
cursorstringPagination cursor from a previous response.
datePostedenumRestrict results to posts published within this window.
mediaTypeenumFilter by media type. One of all, reel.
Response
foundbooleantrue
dataobject
data.postsarray
data.posts[].idstring"3714950709444987377"
data.posts[].shortcodestring"DOOJ_zSjcnx"
data.posts[].typestring"XDTGraphVideo"
data.posts[].urlstring"https://www.instagram.com/reel/DOOJ_zSjcnx/"
data.posts[].captionstring"Launch day! 🚀 #spacex"
data.posts[].displayUrlstring"https://instagram.com/reel/DOOJ_zSjcnx/media.jpg"
Price
Price per requestUSD$0.0012
Price /1k reqUSD$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.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Recent posts under a hashtag with cursor pagination: shortcode, type, caption and media URL. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.