Skip to content

Instantly share code, notes, and snippets.

@albertobissacco
Last active August 2, 2024 01:40
Show Gist options
  • Save albertobissacco/1c94717494456ef2a1968b97382fd3b1 to your computer and use it in GitHub Desktop.
Save albertobissacco/1c94717494456ef2a1968b97382fd3b1 to your computer and use it in GitHub Desktop.
Instagram Private API Endpoint URLs
{
"profile": {
"infoBasicFromUsername": {
"type": "rest",
"param": "username",
"url": "https://www.instagram.com/${param}/?__a=1&__d=1"
},
"infoFromUsername": {
"type": "rest",
"param": "username",
"url": "https://www.instagram.com/api/v1/users/web_profile_info/?username=${param}"
},
"infoFromId": {
"type": "rest",
"param": "id",
"url": "https://www.instagram.com/api/v1/users/${param}/info/"
},
"mediaFromId": {
"type": "rest",
"param": "id",
"url": "https://www.instagram.com/api/v1/feed/user/${param}/",
"limitParam": "count",
"paginationParam": "max_id"
},
"mediaFromUsername": {
"type": "rest",
"param": "username",
"url": "https://www.instagram.com/api/v1/feed/user/${param}/username/",
"limitParam": "count",
"paginationParam": "max_id"
},
"mediaFromIdGQL": {
"type": "graphql",
"param": "id",
"url": "https://www.instagram.com/graphql/query/",
"query_hash": "58b6785bea111c67129decbe6a448951",
"variables": [
"id",
"first",
"after"
]
},
"followers": {
"type": "rest",
"param": "id",
"url": "https://www.instagram.com/api/v1/friendships/${param}/followers/",
"limitParam": "count",
"paginationParam": "max_id"
},
"following": {
"type": "rest",
"param": "id",
"url": "https://www.instagram.com/api/v1/friendships/${param}/following/",
"limitParam": "count",
"paginationParam": "max_id"
},
"tagged": {
"type": "graphql",
"url": "https://www.instagram.com/graphql/query/",
"query_hash": "17946422347485809",
"variables": [
"id",
"first"
]
},
"suggested": {
"type": "graphql",
"url": "https://www.instagram.com/graphql/query/",
"query_hash": "d4d88dc1500312af6f937f7b804c68c3",
"variables": [
"user_id",
"include_chaining",
"include_reel",
"include_suggested_users",
"include_logged_out_extras",
"include_live_status",
"include_highlight_reels"
]
},
"friendship": {
"type": "rest",
"param": "id",
"url": "https://www.instagram.com/api/v1/friendships/show/${param}/"
}
},
"location": {
"info": {
"type": "",
"url": ""
},
"media": {
"type": "",
"url": ""
}
},
"search": {},
"explore": {},
"myAccount": {
"feed": {
"type": "grapql",
"url": "https://www.instagram.com/api/graphql",
"queryId": "17841459873057457"
},
"likes": {
"type": "",
"url": ""
},
"saved": {
"type": "",
"url": ""
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment