Search APIs
Loading…
← API Store
Social

Instagram

Instagram

Top Instagram posts for a hashtag

GET /instagram/v1/search/hashtag
Test this endpoint

Every response includes credits_used: the credits this call cost.

Each call costs 1 credits; failed calls are free. Run it in the console playground to see a live result.

Parameters

NameTypeDescription
qrequiredstring Example: space
cursorstringValue of `next_cursor` from the previous page.

Every endpoint also takes: raw、fields、fresh、output、records

{
  "cached": false,
  "count": 12,
  "credits_used": 1,
  "description": null,
  "hashtag": "space",
  "next_cursor": "AQHT-yExGfHoflqGNbKQg6buxegJdCbpGJAlOOYYi0O2S9CfT8w4k00a73EJAXDmI3i2",
  "posts": [
    {
      "alt": null,
      "caption": "Zoom out far enough and every problem looks small.\n#reels #space #solarsystem #mindblown #earth",
      "carousel": [],
      "carousel_count": null,
      "coauthors": [],
      "comments": null,
      "comments_disabled": null,
      "duration_s": null,
      "fb_like_count": null,
      "fb_play_count": null,
      "has_audio": null,
      "hashtags": [
        "reels",
        "space",
        "… 3 more"
      ],
      "height": null,
      "id": "3973418477564958438",
      "ig_play_count": null,
      "images": [],
      "is_paid_partnership": null,
      "like_and_view_counts_disabled": null,
      "likes": null,
      "location": null,
      "media_id": "POLARIS_3973418477564958438",
      "media_type": null,
      "mentions": [],
      "owner": {
        "id": "37538805734",
        "name": null,
        "private": null,
        "profile_pic": "https://scontent-lhr11-1.cdninstagram.com/v/t51.82787-19/818392170_18096993725253735_772294768163800707_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_c…",
        "username": "aiep1c",
        "verified": true
      },
      "pinned": false,
      "pk": "3973418477564958438",
      "play_count": 10313086,
      "plays": 10313086,
      "product_type": null,
      "shortcode": "Dckaw2jO5bm",
      "tagged_users": [],
      "taken_at": null,
      "taken_at_timestamp": null,
      "thumbnail": "https://scontent-lhr11-1.cdninstagram.com/v/t51.82787-15/782456414_18090730316253735_1508561294720040588_n.jpg?stp=dst-jpg_e35_s640x640_tt6&…",
      "type": "image",
      "url": "https://www.instagram.com/p/Dckaw2jO5bm/",
      "video_url": "https://scontent-lhr11-1.cdninstagram.com/o1/v/t2/f2/m86/AQORfKy3nEkmNAglr18l6i-2qwJ4GMqJjNY5kojVnV6SBShAlS93RbHVTTUx9xciJrfWSRUm3T_ve9BBHwS…",
      "videos": [
        {
          "height": null,
          "type": null,
          "url": "https://scontent-lhr11-1.cdninstagram.com/o1/v/t2/f2/m86/AQORfKy3nEkmNAglr18l6i-2qwJ4GMqJjNY5kojVnV6SBShAlS93RbHVTTUx9xciJrfWSRUm3T_ve9BBHwS…",
          "width": null
        },
        {
          "height": null,
          "type": null,
          "url": "https://scontent-lhr11-1.cdninstagram.com/o1/v/t2/f2/m86/AQORfKy3nEkmNAglr18l6i-2qwJ4GMqJjNY5kojVnV6SBShAlS93RbHVTTUx9xciJrfWSRUm3T_ve9BBHwS…",
          "width": null
        },
        "… 1 more"
      ],
      "view_count": null,
      "width": null,
      "…": "2 more fields"
    },
    {
      "alt": null,
      "caption": "The definitive 3D map of our universe ✨\n\nOn April 15, 2026, the Dark Energy Spectroscopic Instrument (DESI) officially completed its five-ye…",
      "carousel": [],
      "carousel_count": null,
      "coauthors": [],
      "comments": null,
      "comments_disabled": null,
      "duration_s": null,
      "fb_like_count": null,
      "fb_play_count": null,
      "has_audio": null,
      "hashtags": [
        "fyp",
        "space",
        "… 3 more"
      ],
      "height": null,
      "id": "3889805730759591134",
      "ig_play_count": null,
      "images": [],
      "is_paid_partnership": null,
      "like_and_view_counts_disabled": null,
      "likes": null,
      "location": null,
      "media_id": "POLARIS_3889805730759591134",
      "media_type": null,
      "mentions": [],
      "owner": {
        "id": "76512843875",
        "name": null,
        "private": null,
        "profile_pic": "https://scontent-lhr6-1.cdninstagram.com/v/t51.82787-19/573538839_17857714944547876_1817406036855784695_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_c…",
        "username": "cass.nyuad",
        "verified": false
      },
      "pinned": false,
      "pk": "3889805730759591134",
      "play_count": 2483976,
      "plays": 2483976,
      "product_type": null,
      "shortcode": "DX7XbP7NETe",
      "tagged_users": [],
      "taken_at": null,
      "taken_at_timestamp": null,
      "thumbnail": "https://scontent-lhr6-1.cdninstagram.com/v/t51.82787-15/684459346_17884792653547876_7558105054852873139_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_…",
      "type": "image",
      "url": "https://www.instagram.com/p/DX7XbP7NETe/",
      "video_url": "https://scontent-lhr6-1.cdninstagram.com/o1/v/t2/f2/m86/AQPuaAaIdpG4r5WvAhs5D1E3TyKSoS_-lBE_8TUTsV3ScTGnsqRB2wuuDjasWalIgsiLGNWHAom2PiGFBUL4…",
      "videos": [
        {
          "height": null,
          "type": null,
          "url": "https://scontent-lhr6-1.cdninstagram.com/o1/v/t2/f2/m86/AQPuaAaIdpG4r5WvAhs5D1E3TyKSoS_-lBE_8TUTsV3ScTGnsqRB2wuuDjasWalIgsiLGNWHAom2PiGFBUL4…",
          "width": null
        },
        {
          "height": null,
          "type": null,
          "url": "https://scontent-lhr6-1.cdninstagram.com/o1/v/t2/f2/m86/AQPuaAaIdpG4r5WvAhs5D1E3TyKSoS_-lBE_8TUTsV3ScTGnsqRB2wuuDjasWalIgsiLGNWHAom2PiGFBUL4…",
          "width": null
        },
        "… 1 more"
      ],
      "view_count": null,
      "width": null,
      "…": "2 more fields"
    },
    "… 10 more"
  ],
  "related": [
    "the space cinema sestu",
    "how far away is space",
    "… 8 more"
  ],
  "url": "https://www.instagram.com/explore/tags/space/"
}
Response fields (65)

Field paths and types observed in the sample response; the live response is authoritative.

$object
$.cachedboolean
$.countinteger
$.credits_usedinteger
$.descriptionnull
$.hashtagstring
$.next_cursorstring
$.postsarray
$.posts[]object | string
$.posts[].altnull
$.posts[].captionstring
$.posts[].carouselarray
$.posts[].carousel_countnull
$.posts[].coauthorsarray
$.posts[].commentsnull
$.posts[].comments_disablednull
$.posts[].duration_snull
$.posts[].fb_like_countnull
$.posts[].fb_play_countnull
$.posts[].has_audionull
$.posts[].hashtagsarray
$.posts[].hashtags[]string
$.posts[].heightnull
$.posts[].idstring
$.posts[].ig_play_countnull
$.posts[].imagesarray
$.posts[].is_paid_partnershipnull
$.posts[].like_and_view_counts_disablednull
$.posts[].likesnull
$.posts[].locationnull
$.posts[].media_idstring
$.posts[].media_typenull
$.posts[].mentionsarray
$.posts[].ownerobject
$.posts[].owner.idstring
$.posts[].owner.namenull
$.posts[].owner.privatenull
$.posts[].owner.profile_picstring
$.posts[].owner.usernamestring
$.posts[].owner.verifiedboolean
$.posts[].pinnedboolean
$.posts[].pkstring
$.posts[].play_countinteger
$.posts[].playsinteger
$.posts[].product_typenull
$.posts[].shortcodestring
$.posts[].tagged_usersarray
$.posts[].taken_atnull
$.posts[].taken_at_timestampnull
$.posts[].thumbnailstring
$.posts[].typestring
$.posts[].urlstring
$.posts[].video_urlstring
$.posts[].videosarray
$.posts[].videos[]object | string
$.posts[].videos[].heightnull
$.posts[].videos[].typenull
$.posts[].videos[].urlstring
$.posts[].videos[].widthnull
$.posts[].view_countnull
$.posts[].widthnull
$.posts[].…string
$.relatedarray
$.related[]string
$.urlstring