映
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/profile | Profile, statistics and latest posts of one account. |
| GET | /instagram/post | Caption, author, media and counts of one post or reel. |
| GET | /instagram/postComments | Comments on one post or reel, in the order Instagram shows them to signed-out visitors. |
| GET | /instagram/userPosts | Posts of one account, newest first, 12 per page. |
| GET | /instagram/reels | Reels of one account, newest first. A page holds the reels among its 12 latest posts. |
profile
GET
/v1/instagram/profileProfile, statistics and latest posts of one account.
scope social:read2 unitscached 1 h
Parameters
usernamestring required | Username, with or without @, or profile URL. e.g. nasa |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
avatarUrl | string |
bio | string |
createdAt | string |
externalUrl | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
id | string |
name | string |
postCount | integer (int64) |
private | boolean |
recentPosts | Post[] |
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
commentCount | integer (int64) |
createdAt | string |
displayUrl | string |
id | string |
likeCount | integer (int64) |
media | Media[] |
durationSeconds | integer (int64) |
height | any |
thumbnailUrl | string |
type | string |
url | string |
width | any |
shareCount | integer (int64) |
shortcode | string |
text | string |
type | string |
url | string |
viewCount | integer (int64) |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/instagram/profile?username=nasa" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/instagram/profile?username=nasa", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/instagram/profile?username=nasa", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/postCaption, author, media and counts of one post or reel.
scope social:read1 unitcached 10 min
Parameters
idstring required | Shortcode, or post, reel or tv URL. e.g. DfahZrMjAqq |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
authorPrivate | boolean |
authorVerified | boolean |
commentCount | integer (int64) |
createdAt | string |
displayUrl | string |
hashtags | string[] |
id | string |
likeCount | integer (int64) |
location | string |
media | Media[] |
durationSeconds | integer (int64) |
height | any |
thumbnailUrl | string |
type | string |
url | string |
width | any |
mentions | string[] |
productType | string |
shareCount | integer (int64) |
shortcode | string |
text | string |
type | string |
url | string |
viewCount | integer (int64) |
curl "https://api.hoshime.com/v1/instagram/post?id=DfahZrMjAqq" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/instagram/post?id=DfahZrMjAqq", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/instagram/post?id=DfahZrMjAqq", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/postCommentsComments on one post or reel, in the order Instagram shows them to signed-out visitors.
scope social:read1 unitcached 10 minpaginated
Parameters
idstring required | Shortcode, or post, reel or tv URL. e.g. DfahZrMjAqq |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 25. default 20 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
createdAt | string |
id | string |
likeCount | integer (int64) |
replyCount | integer (int64) |
text | string |
curl "https://api.hoshime.com/v1/instagram/postComments?id=DfahZrMjAqq" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/instagram/postComments?id=DfahZrMjAqq", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/instagram/postComments?id=DfahZrMjAqq", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/userPostsPosts of one account, newest first, 12 per page.
scope social:read1 unitcached 10 minpaginated
Parameters
usernamestring required | Username, with or without @, or profile URL. e.g. nasa |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
authorPrivate | boolean |
authorVerified | boolean |
commentCount | integer (int64) |
createdAt | string |
displayUrl | string |
hashtags | string[] |
id | string |
likeCount | integer (int64) |
location | string |
media | Media[] |
durationSeconds | integer (int64) |
height | any |
thumbnailUrl | string |
type | string |
url | string |
width | any |
mentions | string[] |
productType | string |
shareCount | integer (int64) |
shortcode | string |
text | string |
type | string |
url | string |
viewCount | integer (int64) |
curl "https://api.hoshime.com/v1/instagram/userPosts?username=nasa" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/instagram/userPosts?username=nasa", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/instagram/userPosts?username=nasa", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/reelsReels of one account, newest first. A page holds the reels among its 12 latest posts.
scope social:read1 unitcached 10 minpaginated
Parameters
usernamestring required | Username, with or without @, or profile URL. e.g. nasa |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
authorPrivate | boolean |
authorVerified | boolean |
commentCount | integer (int64) |
createdAt | string |
displayUrl | string |
hashtags | string[] |
id | string |
likeCount | integer (int64) |
location | string |
media | Media[] |
durationSeconds | integer (int64) |
height | any |
thumbnailUrl | string |
type | string |
url | string |
width | any |
mentions | string[] |
productType | string |
shareCount | integer (int64) |
shortcode | string |
text | string |
type | string |
url | string |
viewCount | integer (int64) |
curl "https://api.hoshime.com/v1/instagram/reels?username=nasa" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/instagram/reels?username=nasa", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/instagram/reels?username=nasa", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }