Instagram API
15 endpoints for profiles, reels and places.
Every Instagram endpoint, by group. Each is a GET under /v1/instagram.
Quick Reference
| Property | Value |
|---|---|
| Base path | /v1/instagram |
| Endpoints | 15 |
| Credits | See Below |
| Guide |
Accounts
GETProfile
/v1/instagram/profileA profile with its follower and following counts.1 creditGETProfile Highlights/v1/instagram/profile/highlightsAn account's story highlights, with their covers.1 creditGETProfile Posts/v1/instagram/profile/postsAn account's posts, newest first, 12 a page.1 creditGETProfile Reels/v1/instagram/profile/reelsAn account's reels with their plays, 12 a page.1 creditGETProfile Similar/v1/instagram/profile/similarAccounts like this one, as Instagram suggests them.5 creditsGETHighlight/v1/instagram/highlightA story highlight's stories, with their media.1 creditPosts
GETPost
/v1/instagram/postOne post or reel with its counts, media and tags.1 creditGETPost Comments/v1/instagram/post/commentsA post's comments with their likes, about 22 a page.5 creditsDiscovery
GETLocation
/v1/instagram/locationA place, with how many posts are tagged at it.1 creditGETLocation Posts/v1/instagram/location/postsA place's top posts with their likes and comments.5 creditsGETSearch/v1/instagram/searchPopular posts for a word or hashtag, 12 a page.1 creditGETSound/v1/instagram/soundA sound, and how many reels use it.1 creditGETSound Posts/v1/instagram/sound/postsThe reels that use a sound, 12 a page.1 creditGETTrending/v1/instagram/trendingThe reels feed Instagram gives a visitor, 8 a page.5 creditsGETTrending Topics/v1/instagram/trending/topicsThe explore page's trending keywords and accounts.1 creditExample Request
Every Instagram endpoint is called this way: its path, and what to read as query parameters.
import { SocialAPI } from "@socialapihq/sdk";
const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });
const { data } = await client.instagram.profile({ handle: "natgeo" });{
"data": {
"id": "787132",
"username": "natgeo",
"displayName": "National Geographic",
"bio": "Step into wonder and find your inner explorer with National Geographic 🌎",
"avatarUrl": "https://scontent-bos5-1.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ig_cache_key=GAKLvih9nsRnYEVCAJlFVLiBvZt9bmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy40MDAuQzMifQ%3D%3D&_nc_ohc=Fzq-SLmj7IoQ7kNvwGv6Q-m&_nc_oc=Adqba9tyEQDxQEp3-B2IZh6tpjHxc5VaFSfndZ5toAR85RUYhlNWPGd0hJZIDC29xxg&_nc_zt=24&_nc_ht=scontent-bos5-1.cdninstagram.com&_nc_gid=DKToTpAPnxQ3-31AVDAh2w&_nc_ss=79b8c&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQQjsSzc6M516mz06KVhu_tGEUutW9TNo7UVxSYTkJDp-g&oe=6B0CB22B",
"url": "https://www.instagram.com/natgeo/",
"verified": true,
"private": false,
"followers": 267265090,
"following": 195,
"likes": null,
"posts": null,
"externalUrl": "http://visitstore.bio/natgeo",
"createdAt": null,
"ext": {
"bioLinks": [
{
"url": "http://visitstore.bio/natgeo",
"title": null
},
{
"url": "https://ngmdomsubs.nationalgeographic.com/servlet/OrdersGateway?cds_mag_code=NGM&cds_page_id=283562&cds_response_key=I5FX10002",
"title": "Subscribe Here!"
}
],
"category": null,
"latestStoryAt": "2026-11-24T23:09:17.000Z",
"hasReels": true,
"threadsUsername": "natgeo",
"memorialized": false,
"moreHighlights": false
}
}
}Errors
A call that fails costs nothing. See Errors for every code.