Instagram API

Instagram Hashtag recent posts API

Instagram posts published under a hashtag, newest first, read from its live chronological feed rather than a web search index. Built for monitoring: results arrive within a couple of minutes of posting, so engagement counts are usually still zero and reels do not appear (Instagram keeps those on a separate tab). For engagement-ranked results use instagram.hashtag_top_posts; for older relevance-ranked results use instagram.search_hashtag.

$1.88/1k req, pay per request, no subscription.

#skincare hashtag on Instagram
instagram.com/explore/tags/skincare/
#

#skincare

Follow
TOPRECENT
What the API returnedposts[0]
{
"id": "3487213908652217441",
"shortcode": "C9xR2q1s0eA",
"url": "https://www.instagram.com/p/C9xR2q1s0eA/",
"caption": "Fresh routine for the week ahead, cleanser then serum then spf every single morning #skincare #skincareroutine",
"username": "glow.by.nadia",
"createdUtc": 1727481600,
"hashtags": [...],
"likes": 0,
... 20 more fields
}
Uptime
99.23%
30d · 58,803 calls
Requests
75,681
30d · weekly, last 12 wks
Response
6.8s
median · 30d

Status

Loading status...

Get outage emails for this endpoint

See every endpoint on the status page

Pricing

Instagram Hashtag recent posts API pricing

You pay
$18.80
$1.88/1k req, only for what you use. No monthly plan.
Your first 53 requests are free with the $0.10 starting balance.

Try it

Get Instagram hashtag recent posts in one 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.

This sample shows 29 of 35 fields. See every field

{
  "found": true,
  "data": {
    "nextCursor": "QVFDeU1qWjRhbGxpY0dGellYSjBhbTF2",
    "posts": [
      {
        "id": "3487213908652217441",
        "shortcode": "C9xR2q1s0eA",
        "url": "https://www.instagram.com/p/C9xR2q1s0eA/",
        "caption": "Fresh routine for the week ahead, cleanser then serum then spf every single morning #skincare #skincareroutine",
        "username": "glow.by.nadia",
        "createdUtc": 1727481600,
        "hashtags": [
          "#skincare",
          "#skincareroutine"
        ],
        "likes": 0,
        "comments": 0,
        "locationName": "Lisbon, Portugal",
        "locationLat": 38.7223,
        "locationLng": -9.1393,
        "userId": "58201933471",
        "displayName": "Nadia Coelho",
        "avatarUrl": "https://scontent.cdninstagram.com/v/t51.2885-19/nadia-coelho-profile.jpg",
        "verified": false,
        "private": false,
        "productType": "feed",
        "paidPartnership": false,
        "width": 1080,
        "height": 1350,
        "media": [
          {
            "type": "photo",
            "url": "https://scontent.cdninstagram.com/v/t51.29350-15/skincare-shelf-3487213908652217441.jpg"
          }
        ]
      },
      {
        "id": "3487213908652217455",
        "shortcode": "C9xR3fBsAbC",
        "url": "https://www.instagram.com/p/C9xR3fBsAbC/",
        "caption": "Ingredient breakdown: niacinamide vs vitamin C, which one goes first #skincaretips #skinsciense",
        "username": "derma.notes",
        "createdUtc": 1727481420,
        "hashtags": [
          "#skincaretips",
          "#skinsciense"
        ],
        "likes": 2,
        "comments": 0,
        "carouselCount": 4,
        "userId": "58201933512",
        "displayName": "Derma Notes",
        "avatarUrl": "https://scontent.cdninstagram.com/v/t51.2885-19/derma-notes-profile.jpg",
        "verified": true,
        "private": false,
        "productType": "carousel_container",
        "paidPartnership": false,
        "width": 1080,
        "height": 1080,
        "media": [
          {
            "type": "photo",
            "url": "https://scontent.cdninstagram.com/v/t51.29350-15/ingredient-chart-3487213908652217455.jpg"
          }
        ]
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-12-02 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • hashtagstring

    skincare

    Hashtag to monitor, without the leading #.

  • cursorstring

    Pagination cursor from a previous response's nextCursor.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

datadata
  • nextCursorstring

    QVFDeU1qWjRhbGxpY0dGellYSjBhbTF2

    Opaque cursor for the next page of posts, or null when this lane has no more. Pass it back as cursor to continue.

each postdata.posts[]

Posts under the hashtag, newest first. Engagement counts are usually zero because the posts are minutes old. Populated whenever the provider has data for the entity.

  • avatarUrlstring

    https://scontent.cdninstagram.com/v/t51.2885-19/nadia-coelho-profile.jpg

    Profile picture URL of the author.

  • captionstring

    Fresh routine for the week ahead, cleanser then serum then spf every single morning #skincare #skincareroutine

    Post caption text, including its hashtags. Populated whenever the provider has data for the entity.

  • carouselCountinteger

    Number of items in the carousel. Absent on a single-image post.

  • commentsinteger

    0

    Comment count. Usually zero on a post this new.

  • countsHiddenboolean

    Whether the author has hidden the like and view counts.

  • createdUtcnumber

    1727481600

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.

  • displayNamestring

    Nadia Coelho

    Display name of the author.

  • hashtagsstring[]

    Hashtags carried in the caption, each including its leading #. Populated whenever the provider has data for the entity.

  • heightinteger

    1350

    Original pixel height of the media.

  • idstring

    3487213908652217441

    Instagram media id. Populated whenever the provider has data for the entity.

  • likesinteger

    0

    Like count. Usually zero on a post this new.

  • locationIdstring

    Instagram location id the post is tagged at.

  • locationLatnumber

    38.7223

    Latitude of the tagged place.

  • locationLngnumber

    -9.1393

    Longitude of the tagged place.

  • locationNamestring

    Lisbon, Portugal

    Place name tagged on the post. Absent when the poster tagged none, which is most posts.

  • mentionsstring[]

    Accounts @mentioned in the caption, each including its leading @.

  • paidPartnershipboolean

    false

    True when the post is tagged as a paid partnership.

  • privateboolean

    false

    True when the author's account is private.

  • productTypestring

    feed

    Instagram product type of the media, for example feed, clips or igtv.

  • shortcodestring

    C9xR2q1s0eA

    Short code in the post permalink. Populated whenever the provider has data for the entity.

  • soundAuthorstring

    Credited artist of a licensed track, or the username of the account whose original audio it is. Absent when the post has no sound.

  • soundTitlestring

    Name of the sound. "Original audio" means the creator's own audio rather than a licensed track. Absent when the post has no sound.

  • urlstring

    https://www.instagram.com/p/C9xR2q1s0eA/

    Canonical permalink to the post. Populated whenever the provider has data for the entity.

  • userIdstring

    58201933471

    Instagram user id of the author.

  • usernamestring

    glow.by.nadia

    Username of the account that posted. Populated whenever the provider has data for the entity.

  • verifiedboolean

    false

    True when the author's account carries a verified badge.

  • widthinteger

    1080

    Original pixel width of the media.

each mediadata.posts[].media[]

Cover media for the post. A carousel reports its full size in carouselCount.

  • typestring

    photo

    One of photo or video. Videos are rare in this feed; Instagram keeps reels on a separate tab.

  • urlstring

    https://scontent.cdninstagram.com/v/t51.29350-15/skincare-shelf-3487213908652217441.jpg

    Image URL. For a video this is the cover frame.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the Instagram Hashtag recent posts API

The AnyAPI Instagram Hashtag recent posts API returns Instagram hashtag recent posts data as normalized JSON from one POST call to /v1/run/instagram.hashtag_recent_posts. Instagram posts published under a hashtag, newest first, read from its live chronological feed rather than a web search index. Built for monitoring: results arrive within a couple of minutes of posting, so engagement counts are usually still zero and reels do not appear (Instagram keeps those on a separate tab). For engagement-ranked results use instagram.hashtag_top_posts; for older relevance-ranked results use instagram.search_hashtag. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.88 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.2% of Instagram hashtag recent posts calls through AnyAPI succeeded, with a median response time of 6.8 seconds across 58,803 measured calls.

It costs from $1.88 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Instagram posts published under a hashtag, newest first, read from its live chronological feed rather than a web search index. Built for monitoring: results arrive within a couple of minutes of posting, so engagement counts are usually still zero and reels do not appear (Instagram keeps those on a separate tab). For engagement-ranked results use instagram.hashtag_top_posts; for older relevance-ranked results use instagram.search_hashtag. 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, 99.2% of Instagram hashtag recent posts calls through AnyAPI succeeded, with a median response time of 6.8 seconds across 58,803 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 53 Instagram Hashtag recent posts calls at $0.00188 each.

Send a POST request to https://api.getanyapi.com/v1/run/instagram.hashtag_recent_posts with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.