Instagram API
Retrieve public Instagram profiles, posts, reels, stories, highlights, comments, likes, locations, music, and hashtags.
80 endpoints
Endpoints
Each endpoint links to its request parameters, response schema, and code examples.
Hashtag
2 endpoints- List Instagram hashtag media (v2)GETReturns media for a public Instagram hashtag, from the recent or top tab. Pass max_id from next_max_id for the next page, or next_page for the top tab.
/v2/instagram/hashtag/media1 cr List Instagram hashtag posts (v3)DeprecatedGETDeprecated: use /v1/instagram/hashtag/posts instead. Top posts for a hashtag — Instagram's ranked feed, not a chronological one. The response is the hashtag record with its post collections attached, plus the tag's total post count. Page with end_cursor./v3/instagram/hashtag/posts3 cr
Location
9 endpoints- Get Instagram location details (v1)GETReturns public details for an Instagram location from required location_id: name, coordinates, category, and media count. Optional slug and show_nearby refine the response.
/v1/instagram/location/info1 cr - List recent posts at a place (v1)GETList the most recent posts tagged at a place, by location_id. Paginate with cursor and next_cursor. A place with no recent posts returns an empty items list.
/v1/instagram/place/recent1 cr Get Instagram location details (v3)DeprecatedGETDeprecated: use /v1/instagram/location/info instead. Returns a location's name, address, coordinates and post count. Get location_id from /v1/instagram/search/locations, /v1/instagram/location/nearby or a post's location field./v3/instagram/location/info3 crList Instagram cities by country (v3)DeprecatedGETDeprecated: use /v1/instagram/location/cities instead. Cities Instagram lists for a country, as its own place directory. Each entry's id is a c-prefixed string that /location/list takes. Page with page; next_page is null on the last page./v3/instagram/location/cities3 crList Instagram location media (retired) (v1)DeprecatedGETRetired: always returns 410 and is not charged. Use /v1/instagram/location/posts instead./v1/instagram/location/media1 crList Instagram location posts (v3)DeprecatedGETDeprecated: use /v1/instagram/place/recent instead. Posts tagged at a location, returned as edges with a page_info block. tab chooses between Instagram's ranked feed and the most recent posts. Page with end_cursor from page_info./v3/instagram/location/posts3 crList Instagram locations in a city (v3)DeprecatedGETDeprecated: use /v1/instagram/location/list instead. Individual places within a city — the bottom level of Instagram's place directory — along with the city and country they sit under./v3/instagram/location/list3 crList Instagram locations near a point (v3)DeprecatedGETDeprecated: use /v1/instagram/location/nearby instead. Places near a latitude/longitude, closest first. Use it to find taggable locations around a point when you have coordinates rather than a name./v3/instagram/location/nearby3 crSearch Instagram locations by name (v3)DeprecatedGETDeprecated: use /v1/instagram/place/search instead. Search places by name. The quickest way to turn a place name into the location_id the other location routes take./v3/instagram/search/locations3 cr
Music
2 endpointsList Instagram posts by audio track (v3)DeprecatedGETDeprecated: use /v1/instagram/music/posts instead. Returns reels and posts that use one Instagram audio track, with track metadata and its total use count. Send music_id from /v1/instagram/search/music, or music_url. Page with max_id./v3/instagram/music/posts3 crSearch Instagram audio by name (v3)DeprecatedGETDeprecated: use /v1/instagram/music/search instead. Search Instagram's audio library by track or artist name. Returns each track's ID, title, artist and duration — the IDs /music/posts takes./v3/instagram/search/music3 cr
Post
18 endpoints- Get Instagram oEmbed data (v1)GETReturns oEmbed data, including embed HTML and a thumbnail, for a public Instagram post or reel url. Optional maxwidth and maxheight (pixels) constrain the embed size.
/v1/instagram/post/oembed1 cr - Get Instagram post (v1)GETReturns public media details and the first page of comments for one Instagram post. Provide the shortcode as code or the numeric media_id; one of the two is required.
/v1/instagram/post1 cr - Get Instagram post by media ID (v1)GETReturns public media details and the first page of comments for one Instagram post. Requires the numeric media_id.
/v1/instagram/post/by-id1 cr - Get Instagram post or reel details (v2)GETReturns the details of one public Instagram post or reel: owner, caption, like_count, comment_count and media. code takes a shortcode, a numeric media ID or the post URL.
/v2/instagram/media/info1 cr - Get Instagram post view counts (v1)GETReturns view counts for a public Instagram reel from its shortcode or URL. video_view_count is the embed view count. play_count is the plays shown on the owner's Reels tab, found only among their 36 newest reels. They are different metrics.
/v1/instagram/post/views1 cr - Get post or reel (v1)GETGet a post or reel by url or code: caption, media files, like, comment and play counts, owner, tagged users and location. A removed or unavailable post returns data: null.
/v1/instagram/media1 cr - List comment replies (v1)GETList the replies to one comment. Send the post as url, code or media_id and the comment's pk as comment_id. Paginate with cursor and next_cursor. A comment without replies returns an empty items list.
/v1/instagram/comments/replies1 cr - List Instagram post comments (v2)GETReturns comments on a public Instagram post or reel, identified by code. sort_type picks popular, recent or verified order. Pass pagination_token from the previous response for the next page.
/v2/instagram/media/comments1 cr - List Instagram post comments (v1)GETLists comments on a public Instagram post, identified by its shortcode in code. count sets the page size; pass page_info.end_cursor from the previous response as cursor to get the next page.
/v1/instagram/post/comments1 cr - List Instagram post likes (v2)GETReturns accounts that liked a public Instagram post or reel, identified by code, with user_count. The route takes no pagination input.
/v2/instagram/media/likes1 cr - List post comments (v1)GETList the comments on a post or reel by url, code or media_id, with the commenter and like count. Paginate with cursor and next_cursor. A post without comments returns an empty items list.
/v1/instagram/comments1 cr Get extended Instagram post details (v3)DeprecatedGETDeprecated: use /v1/instagram/media instead. Returns an extended public Instagram post record: accessibility captions, remix and collaboration metadata, product tags and additional media variants. code takes a shortcode or the full post URL./v3/instagram/post/details3 crGet Instagram media (retired) (v2)DeprecatedGETRetired: always returns 410 and is not charged. Use /media/info for media details and /media/comments for comments./v2/instagram/media/info/web1 crGet Instagram post by media ID (v3)DeprecatedGETDeprecated: use /v1/instagram/media instead. The same record as /post, looked up by numeric media ID. If you have a shortcode from a URL, convert it first with /util/media-id./v3/instagram/post/by-id3 crGet Instagram post by URL (v3)DeprecatedGETDeprecated: use /v1/instagram/media instead. Full record for a single post, reel or TV item from its URL: media URLs, caption, dimensions, owner, and like and comment counts. data is null if the post is deleted, private, or the URL is not a post./v3/instagram/post3 crList Instagram comment replies (v3)DeprecatedGETDeprecated: use /v1/instagram/comments/replies instead. The replies threaded under a single comment. Page with pagination_token from the previous response./v3/instagram/post/comments/replies3 crList Instagram post comments (v3)DeprecatedGETDeprecated: use /v1/instagram/comments instead. Returns top-level comments on a public Instagram post, ordered by sort_by. If a comment's child_comment_count is above 0, pass its ID to /v1/instagram/post/comments/replies. Page with pagination_token./v3/instagram/post/comments3 crList Instagram post likes (v3)DeprecatedGETDeprecated: use /v1/instagram/post/likes instead. Accounts that liked a post, as { count, items }. Requires code. Page with end_cursor./v3/instagram/post/likes3 cr
Search
10 endpoints- Search Instagram posts by keyword (v2)GETReturns public Instagram posts that match keyword. Pass pagination_token from the previous response for the next page; has_more is false on the last page.
/v2/instagram/search/posts1 cr - Search Instagram reels by keyword (v2)GETReturns public Instagram reels that match keyword in reels_serp_modules. Pass reels_max_id from the previous response for the next page.
/v2/instagram/search/reels1 cr - Search Instagram top media by keyword (v1)GETSearches public Instagram media for required keyword and returns top posts plus related keywords. media_count and related_keywords_count set result sizes; cursor pages.
/v1/instagram/search/top1 cr - Search Instagram users by keyword (v2)GETReturns public Instagram accounts that match keyword, each with its rank in position and a user object.
/v2/instagram/search/users1 cr - Search places (v1)GETSearch Instagram places by name. Each result has a title, a subtitle, and the place's location with the ID that /v1/instagram/place/recent takes. No match returns an empty items list.
/v1/instagram/place/search1 cr Get Instagram search typeahead (v3)DeprecatedGETDeprecated: use /v1/instagram/search instead. Instagram's search-bar typeahead: accounts, hashtags and places for one query, in a single response. Set type to return just one of the three. Not paginated — it returns the first screen of results, the same as the app's search bar./v3/instagram/search3 crSearch Instagram by keyword (v3)DeprecatedGETDeprecated: use /v1/instagram/search/all instead. Keyword search returning mixed results that can be paged with pagination_token, unlike /search. Use it when you need more than the first screen./v3/instagram/search/all3 crSearch Instagram hashtags by keyword (v3)DeprecatedGETDeprecated: use /v1/instagram/search/hashtags instead. Search hashtags by keyword, with each tag's total post count — useful for sizing a tag before pulling its posts./v3/instagram/search/hashtags3 crSearch Instagram reels by keyword (v3)DeprecatedGETDeprecated: use /v1/instagram/search/reels instead. Search reels by keyword, returning video URLs, covers and play counts. Page with pagination_token./v3/instagram/search/reels3 crSearch Instagram users by keyword (v3)DeprecatedGETDeprecated: use /v1/instagram/search/users instead. Search accounts by keyword, returning usernames, display names, avatars and verification status./v3/instagram/search/users3 cr
User
37 endpoints- Get account country and join date (v1)GETGet an account's About panel by numeric user_id: verification, country, the month it joined, and former usernames. An unknown ID returns data: null.
/v1/instagram/profile/about1 cr - Get Instagram highlight stories (v2)GETReturns the media items in one Instagram highlight reel, with its title and media_count. highlight_id comes from the id of a user highlights result.
/v2/instagram/highlight/stories1 cr - Get Instagram profile summary by ID (v1)GETReturns identity, biography, links, and follower and following counts for a public Instagram account. Requires the numeric user_id, which Get User ID returns.
/v1/instagram/user/summary1 cr - Get Instagram user ID by username (v1)GETReturns the numeric user ID and basic identity fields for a public Instagram account, from required username_or_url. Use the ID with the endpoints that take user_id.
/v1/instagram/user/id1 cr - Get Instagram user profile (v1)GETReturns profile data for a public Instagram account from username_or_url: identity, bio, links, and counts. detail=full returns the same fields marked is_partial: true; Instagram no longer serves post previews or business fields logged out.
/v1/instagram/user/info1 cr - Get profile (v1)GETGet an account's public profile: name, bio, links, follower, following and post counts, and verification and privacy flags. Returns the numeric pk that other routes take as user_id. An unknown username returns data: null.
/v1/instagram/profile1 cr - List accounts an Instagram user follows (v2)GETReturns accounts that a public Instagram profile follows, identified by username_or_id, with total_followings. Pass max_id from the previous response's next_max_id for the next page.
/v2/instagram/user/following1 cr - List highlight stories (v1)GETList the stories saved in one highlight, with the highlight's title, cover and owner. An unknown or removed highlight returns data: null.
/v1/instagram/highlight/stories1 cr - List Instagram stories and highlights (v1)GETReturns story availability, live status, and highlight metadata for a public Instagram account. Requires user_id; the include_ flags turn extra response sections on or off.
/v1/instagram/user/highlights1 cr - List Instagram tagged posts (v2)GETReturns posts that tag a public Instagram profile, identified by username_or_id, with total_count. Pass max_id from the previous response's next_max_id for the next page.
/v2/instagram/user/tagged-posts1 cr - List Instagram user followers (v2)GETReturns accounts that follow a public Instagram profile, identified by username_or_id, with the total in count. Pass end_cursor from the previous response's page_info.end_cursor for the next page.
/v2/instagram/user/followers1 cr - List Instagram user highlights (v2)GETReturns the highlight reels pinned to a public Instagram profile, identified by username_or_id, with each highlight's id, title and cover. Pass an id to the highlight stories route for its media.
/v2/instagram/user/highlights1 cr - List Instagram user posts (v1)GETLists media from a public Instagram account. Provide username_or_url or user_id. count sets the page size; pass the previous response's next_max_id as cursor to get the next page.
/v1/instagram/user/posts1 cr - List Instagram user posts (v2)GETReturns recent posts from a public Instagram profile, identified by username_or_id. count sets the page size. Pass max_id from the previous response's next_max_id for the next page.
/v2/instagram/user/posts1 cr - List Instagram user posts by ID (v1)GETLists media from a public Instagram account by numeric user_id. count sets the page size; pass the previous response's next_max_id as next_max_id to get the next page.
/v1/instagram/user/posts/by-id1 cr - List Instagram user reels (v1)GETLists reels from a public Instagram account by username_or_url or user_id, 12 per page. Each reel includes play_count, the plays shown on the Reels tab. detail=summary returns lighter entries. Pass paging_info.max_id as cursor for the next page.
/v1/instagram/user/reels1 cr - List Instagram user reels (v2)GETReturns reels from a public Instagram profile, identified by username_or_id. Pass max_id from the previous response's paging_info.max_id for the next page.
/v2/instagram/user/reels1 cr - List Instagram user stories (v2)GETReturns the stories currently live on a public Instagram profile, identified by username_or_id.
/v2/instagram/user/stories1 cr - List profile highlights (v1)GETList an account's story highlights, by username or user_id. Paginate with cursor and next_cursor. An account without highlights returns an empty items list.
/v1/instagram/profile/highlights3 cr - List profile stories (v1)GETList the stories live on an account, by username or user_id. Stories expire after 24 hours, so an account with none live returns an empty items list.
/v1/instagram/profile/stories3 cr - List similar Instagram users (v2)GETReturns accounts that Instagram suggests as similar to a public profile, identified by username_or_id. The response is a single list in users and is not paginated.
/v2/instagram/user/similar1 cr Get extended Instagram profile details (v3)DeprecatedGETDeprecated: use /v1/instagram/profile instead. Returns an extended public Instagram profile: flat follower counts, account type, badges, bio links, category and business contact fields. username_or_id takes a username or a numeric user ID./v3/instagram/user/details3 crGet Instagram profile by user ID (v3)DeprecatedGETDeprecated: use /v1/instagram/profile instead. The same profile record as /user/info, looked up by numeric user_id instead of username. Use it when you already hold an ID and want to check whether the account still exists or has been renamed./v3/instagram/user/info/by-id3 crGet Instagram profile by username (v3)DeprecatedGETDeprecated: use /v1/instagram/profile instead. Public profile for a username: bio, links, verification, privacy flags, edge_followed_by.count (followers) and edge_follow.count (following). Returns the numeric user_id. data is null if no such account exists./v3/instagram/user/info3 crGet Instagram username by user ID (v3)DeprecatedGETDeprecated: use /v1/instagram/user/username instead. Resolves a numeric user_id to the account's current username, with a small profile stub (display name, avatar, verification). Useful for re-checking IDs you stored earlier, since usernames change but IDs do not./v3/instagram/user/username3 crList accounts an Instagram user follows (v3)DeprecatedGETDeprecated: use /v1/instagram/user/following instead. Accounts this user follows, as { count, items }. Page with pagination_token from the previous response./v3/instagram/user/following3 crList Instagram former usernames (v3)DeprecatedGETDeprecated: use /v1/instagram/profile/about instead. Usernames this account has previously used, with the date of each change, plus has_former_usernames as a quick flag. Accounts that have never been renamed return an empty list with the flag false — a normal result, and the common one./v3/instagram/user/former-usernames12 crList Instagram highlight stories (v3)DeprecatedGETDeprecated: use /v1/instagram/highlight/stories instead. Returns the stories saved in one Instagram highlight, with media URLs and timestamps. Pass highlight_id exactly as returned by /v1/instagram/user/highlights, including its highlight: prefix./v3/instagram/highlight/stories3 crList Instagram tagged posts (v3)DeprecatedGETDeprecated: use /v1/instagram/user/tagged-posts instead. Posts made by other accounts that tag this one. The response is the profile record with the tagged-posts collection attached; page through it with end_cursor./v3/instagram/user/tagged-posts3 crList Instagram user followers (v3)DeprecatedGETDeprecated: use /v1/instagram/user/followers instead. Accounts that follow this user, as { count, items }. Pass pagination_token from the previous response for the next page./v3/instagram/user/followers3 crList Instagram user highlights (v3)DeprecatedGETDeprecated: use /v1/instagram/profile/highlights instead. Returns the highlight covers pinned to a public Instagram profile, with each title, cover image and ID. Pass an ID to /v1/instagram/highlight/stories to get the stories in it./v3/instagram/user/highlights3 crList Instagram user posts (v3)DeprecatedGETDeprecated: use /v1/instagram/user/posts instead. Timeline posts for an account, newest first, with media URLs, caption, like and comment counts, and its code (the post URL shortcode). Pass next_max_id as max_id for the next page; more_available is false on the last one./v3/instagram/user/posts3 crList Instagram user reels (v3)DeprecatedGETDeprecated: use /v1/instagram/user/reels instead. Reels posted by an account, newest first, with video URLs, cover images and play counts. Pass max_id from the previous response's paging_info to page./v3/instagram/user/reels3 crList Instagram user reposts (v3)DeprecatedGETDeprecated: use /v1/instagram/user/reposts instead. Posts this account has reposted onto its own profile, newest first. Page with max_id from next_max_id./v3/instagram/user/reposts3 crList Instagram user stories (v3)DeprecatedGETDeprecated: use /v1/instagram/profile/stories instead. Stories currently live on this account. Stories expire after 24 hours, so an account with nothing active returns an empty items list — that is a normal result, not an error./v3/instagram/user/stories3 crList related Instagram profiles (v3)DeprecatedGETDeprecated: use /v1/instagram/user/related instead. Returns the related accounts Instagram shows on a profile page, for the numeric user_id. Get the ID from the profile route. The response is one list and is not paginated./v3/instagram/user/related3 crList similar Instagram users (v3)DeprecatedGETDeprecated: use /v1/instagram/user/similar instead. Accounts Instagram recommends as similar to this one. A different set from /user/related, generally larger, and this route accepts a username as well as a numeric ID./v3/instagram/user/similar3 cr
Utility
2 endpointsConvert Instagram media ID to shortcode (v3)DeprecatedGETDeprecated: use /v1/instagram/util/shortcode instead. Converts a numeric media ID back into the shortcode used in post URLs, so you can rebuild a link to a post you only have an ID for./v3/instagram/util/shortcode3 crConvert Instagram shortcode to media ID (v3)DeprecatedGETDeprecated: use /v1/instagram/util/media-id instead. Converts the shortcode in a post URL (the DcBr7X4SL3h in instagram.com/p/DcBr7X4SL3h/) into the numeric media ID that /post/by-id takes./v3/instagram/util/media-id3 cr
What you can build
- Compare creator profiles and public engagement counts.
- Collect posts and comments for campaign research.
Make your first request
Replace the placeholders with your input values. The endpoint reference explains each input and the returned fields.
curl -X GET "https://api.toolzerhub.com/v2/instagram/search/posts?keyword=<keyword>" -H "x-api-key: $TOOLZERHUB_API_KEY"Need a key? Create an account, then review credits and responses and errors.