Skip to content

Instagram API

5 endpointsSocial & VideoGlobalsocial:read5 real examples

Returns public account profiles, posts, reels, post comments, captions, media and engagement counts from Instagram.

View as Markdown
GET/instagram/profileProfile, statistics and latest posts of one account.
GET/instagram/postCaption, author, media and counts of one post or reel.
GET/instagram/postCommentsComments on one post or reel, in the order Instagram shows them to signed-out visitors.
GET/instagram/userPostsPosts of one account, newest first, 12 per page.
GET/instagram/reelsReels of one account, newest first. A page holds the reels among its 12 latest posts.

profile

GET/v1/instagram/profile

Profile, statistics and latest posts of one account.

scope social:read2 unitscached 1 h

Parameters

username
string
required
Username, with or without @, or profile URL.
e.g. nasa
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

38 fields
avatarUrlstring
biostring
createdAtstring
externalUrlstring
followerCountinteger (int64)
followingCountinteger (int64)
idstring
namestring
postCountinteger (int64)
privateboolean
recentPostsPost[]
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
commentCountinteger (int64)
createdAtstring
displayUrlstring
idstring
likeCountinteger (int64)
mediaMedia[]
durationSecondsinteger (int64)
heightany
thumbnailUrlstring
typestring
urlstring
widthany
shareCountinteger (int64)
shortcodestring
textstring
typestring
urlstring
viewCountinteger (int64)
urlstring
usernamestring
verifiedboolean
curl "https://api.hoshime.com/v1/instagram/profile?username=nasa" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "avatarUrl": "https://scontent-sin2-1.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1…",
    "bio": "Making the seemingly impossible, possible. ✨",
    "createdAt": "",
    "externalUrl": "https://www.nasa.gov",
    "followerCount": 104321518,
    "followingCount": 91,
    "id": "17841401474538262",
    "name": "NASA",
    "postCount": 0,
    "private": false,
    "recentPosts": [
      {
        "author": {
          "avatarUrl": "",
          "id": "17841401474538262",
          "name": "",
          "url": "https://www.instagram.com/nasa/",
          "username": "nasa"
        },
        "commentCount": 0,
        "createdAt": "",
        "displayUrl": "https://scontent-sin2-1.cdninstagram.com/v/t51.82787-15/892262107_18667067911049152_7232282950866099313_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_…",
        "id": "4025327901360909266",
        "likeCount": 0,
        "media": [],
        "shareCount": 0,
        "shortcode": "Dfc1mYxFevS",
        "text": "Apply to become an astronaut!\n\nWe've opened applications to join NASA's astronaut corps, who will expand the frontiers of discovery in low E…",
        "type": "video",
        "url": "https://www.instagram.com/reel/Dfc1mYxFevS/",
        "viewCount": 0
      },
      {
        "author": {
          "avatarUrl": "",
          "id": "17841401474538262",
          "name": "",
          "url": "https://www.instagram.com/nasa/",
          "username": "nasa"
        },
        "commentCount": 0,
        "createdAt": "",
        "displayUrl": "https://scontent-sin2-2.cdninstagram.com/v/t51.82787-15/886800608_18666774568049152_3209933980025790942_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_…",
        "id": "4024676116912147114",
        "likeCount": 0,
        "media": [],
        "shareCount": 0,
        "shortcode": "DfahZrMjAqq",
        "text": "Galaxy in bloom\n\nData from our Hubble, Chandra, and Spitzer telescopes blend to reveal a starburst galaxy with colorful areas coming out fro…",
        "type": "image",
        "url": "https://www.instagram.com/p/DfahZrMjAqq/",
        "viewCount": 0
      }
    ],
    "url": "https://www.instagram.com/nasa/",
    "username": "nasa",
    "verified": true
  },
  "meta": {
    "cached": false,
    "endpoint": "profile",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "instagram",
    "requestId": "req_2Xb9kQ…",
    "units": 2
  }
}

post

GET/v1/instagram/post

Caption, author, media and counts of one post or reel.

scope social:read1 unitcached 10 min

Parameters

id
string
required
Shortcode, or post, reel or tv URL.
e.g. DfahZrMjAqq
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

30 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
authorPrivateboolean
authorVerifiedboolean
commentCountinteger (int64)
createdAtstring
displayUrlstring
hashtagsstring[]
idstring
likeCountinteger (int64)
locationstring
mediaMedia[]
durationSecondsinteger (int64)
heightany
thumbnailUrlstring
typestring
urlstring
widthany
mentionsstring[]
productTypestring
shareCountinteger (int64)
shortcodestring
textstring
typestring
urlstring
viewCountinteger (int64)
curl "https://api.hoshime.com/v1/instagram/post?id=DfahZrMjAqq" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "author": {
      "avatarUrl": "https://scontent-sin11-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=…",
      "id": "17841401474538262",
      "name": "NASA",
      "url": "https://www.instagram.com/nasa/",
      "username": "nasa"
    },
    "authorPrivate": false,
    "authorVerified": true,
    "commentCount": 920,
    "createdAt": "2026-11-06T21:00:08Z",
    "displayUrl": "https://scontent-sin2-2.cdninstagram.com/v/t51.82787-15/886800608_18666774568049152_3209933980025790942_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_…",
    "hashtags": [
      "NASA",
      "Galaxy"
    ],
    "id": "4024676116912147114",
    "likeCount": 268438,
    "location": "",
    "media": [
      {
        "durationSeconds": 0,
        "height": 1440,
        "thumbnailUrl": "",
        "type": "image",
        "url": "https://scontent-sin2-2.cdninstagram.com/v/t51.82787-15/886800608_18666774568049152_3209933980025790942_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=10…",
        "width": 1440
      }
    ],
    "mentions": [],
    "productType": "feed",
    "shareCount": 0,
    "shortcode": "DfahZrMjAqq",
    "text": "Galaxy in bloom\n\nData from our Hubble, Chandra, and Spitzer telescopes blend to reveal a starburst galaxy with colorful areas coming out fro…",
    "type": "image",
    "url": "https://www.instagram.com/p/DfahZrMjAqq/",
    "viewCount": 0
  },
  "meta": {
    "cached": false,
    "endpoint": "post",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "instagram",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

postComments

GET/v1/instagram/postComments

Comments on one post or reel, in the order Instagram shows them to signed-out visitors.

scope social:read1 unitcached 10 minpaginated

Parameters

id
string
required
Shortcode, or post, reel or tv URL.
e.g. DfahZrMjAqq
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 25.
default 20
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
createdAtstring
idstring
likeCountinteger (int64)
replyCountinteger (int64)
textstring
curl "https://api.hoshime.com/v1/instagram/postComments?id=DfahZrMjAqq" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatarUrl": "https://scontent-sin2-1.cdninstagram.com/v/t51.89012-19/573323465_1219825463302212_7278921664109726296_n.png?stp=dst-jpg_tt6&_nc_cat=1&ig_ca…",
        "id": "49208322438",
        "name": "",
        "url": "https://www.instagram.com/kirankhaan1987/",
        "username": "kirankhaan1987"
      },
      "createdAt": "2026-11-20T17:34:48Z",
      "id": "18120701917786129",
      "likeCount": 0,
      "replyCount": 0,
      "text": "Subhanallah wa tabarakallah o ahsanal khaliqeen"
    },
    {
      "author": {
        "avatarUrl": "https://scontent-sin6-3.cdninstagram.com/v/t51.82787-19/918199401_17902178346437817_219262834974333925_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ca…",
        "id": "73125877816",
        "name": "",
        "url": "https://www.instagram.com/purplejellyfish175/",
        "username": "purplejellyfish175"
      },
      "createdAt": "2026-11-20T17:33:05Z",
      "id": "18117446378143613",
      "likeCount": 0,
      "replyCount": 0,
      "text": "Wow"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "postComments",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "instagram",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

userPosts

GET/v1/instagram/userPosts

Posts of one account, newest first, 12 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

username
string
required
Username, with or without @, or profile URL.
e.g. nasa
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

30 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
authorPrivateboolean
authorVerifiedboolean
commentCountinteger (int64)
createdAtstring
displayUrlstring
hashtagsstring[]
idstring
likeCountinteger (int64)
locationstring
mediaMedia[]
durationSecondsinteger (int64)
heightany
thumbnailUrlstring
typestring
urlstring
widthany
mentionsstring[]
productTypestring
shareCountinteger (int64)
shortcodestring
textstring
typestring
urlstring
viewCountinteger (int64)
curl "https://api.hoshime.com/v1/instagram/userPosts?username=nasa" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatarUrl": "",
        "id": "17841401474538262",
        "name": "",
        "url": "https://www.instagram.com/nasa/",
        "username": "nasa"
      },
      "authorPrivate": false,
      "authorVerified": false,
      "commentCount": 0,
      "createdAt": "",
      "displayUrl": "https://scontent-sin2-1.cdninstagram.com/v/t51.82787-15/892262107_18667067911049152_7232282950866099313_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_…",
      "hashtags": [
        "NASA",
        "Astronaut"
      ],
      "id": "4025327901360909266",
      "likeCount": 0,
      "location": "",
      "media": [],
      "mentions": [],
      "productType": "clips",
      "shareCount": 0,
      "shortcode": "Dfc1mYxFevS",
      "text": "Apply to become an astronaut!\n\nWe've opened applications to join NASA's astronaut corps, who will expand the frontiers of discovery in low E…",
      "type": "video",
      "url": "https://www.instagram.com/reel/Dfc1mYxFevS/",
      "viewCount": 0
    },
    {
      "author": {
        "avatarUrl": "",
        "id": "17841401474538262",
        "name": "",
        "url": "https://www.instagram.com/nasa/",
        "username": "nasa"
      },
      "authorPrivate": false,
      "authorVerified": false,
      "commentCount": 0,
      "createdAt": "",
      "displayUrl": "https://scontent-sin2-2.cdninstagram.com/v/t51.82787-15/886800608_18666774568049152_3209933980025790942_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_…",
      "hashtags": [
        "NASA",
        "Galaxy"
      ],
      "id": "4024676116912147114",
      "likeCount": 0,
      "location": "",
      "media": [],
      "mentions": [],
      "productType": "feed",
      "shareCount": 0,
      "shortcode": "DfahZrMjAqq",
      "text": "Galaxy in bloom\n\nData from our Hubble, Chandra, and Spitzer telescopes blend to reveal a starburst galaxy with colorful areas coming out fro…",
      "type": "image",
      "url": "https://www.instagram.com/p/DfahZrMjAqq/",
      "viewCount": 0
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "userPosts",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "instagram",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

reels

GET/v1/instagram/reels

Reels of one account, newest first. A page holds the reels among its 12 latest posts.

scope social:read1 unitcached 10 minpaginated

Parameters

username
string
required
Username, with or without @, or profile URL.
e.g. nasa
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

30 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
authorPrivateboolean
authorVerifiedboolean
commentCountinteger (int64)
createdAtstring
displayUrlstring
hashtagsstring[]
idstring
likeCountinteger (int64)
locationstring
mediaMedia[]
durationSecondsinteger (int64)
heightany
thumbnailUrlstring
typestring
urlstring
widthany
mentionsstring[]
productTypestring
shareCountinteger (int64)
shortcodestring
textstring
typestring
urlstring
viewCountinteger (int64)
curl "https://api.hoshime.com/v1/instagram/reels?username=nasa" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatarUrl": "",
        "id": "17841401474538262",
        "name": "",
        "url": "https://www.instagram.com/nasa/",
        "username": "nasa"
      },
      "authorPrivate": false,
      "authorVerified": false,
      "commentCount": 0,
      "createdAt": "",
      "displayUrl": "https://scontent-sin2-1.cdninstagram.com/v/t51.82787-15/892262107_18667067911049152_7232282950866099313_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_…",
      "hashtags": [
        "NASA",
        "Astronaut"
      ],
      "id": "4025327901360909266",
      "likeCount": 0,
      "location": "",
      "media": [],
      "mentions": [],
      "productType": "clips",
      "shareCount": 0,
      "shortcode": "Dfc1mYxFevS",
      "text": "Apply to become an astronaut!\n\nWe've opened applications to join NASA's astronaut corps, who will expand the frontiers of discovery in low E…",
      "type": "video",
      "url": "https://www.instagram.com/reel/Dfc1mYxFevS/",
      "viewCount": 0
    },
    {
      "author": {
        "avatarUrl": "",
        "id": "17841400347610834",
        "name": "",
        "url": "https://www.instagram.com/empirestatebldg/",
        "username": "empirestatebldg"
      },
      "authorPrivate": false,
      "authorVerified": false,
      "commentCount": 0,
      "createdAt": "",
      "displayUrl": "https://scontent-sin2-3.cdninstagram.com/v/t51.82787-15/909639997_18654645670011588_7039336257252665058_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_…",
      "hashtags": [],
      "id": "4032769631913039723",
      "likeCount": 0,
      "location": "",
      "media": [],
      "mentions": [],
      "productType": "clips",
      "shareCount": 0,
      "shortcode": "Df3Rp0bKNdr",
      "text": "Gold for Voyager 1, now one light-day from home. 🚀",
      "type": "video",
      "url": "https://www.instagram.com/reel/Df3Rp0bKNdr/",
      "viewCount": 0
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "reels",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "instagram",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open