Instagram Post API
Retrieve public Instagram profiles, posts, reels, stories, highlights, comments, likes, locations, music, and hashtags.
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