Instagram V2 Media API
Retrieve public Instagram posts, reels, stories, highlights, profiles, comments, likes, and hashtag media. Search accounts, posts, and reels by keyword.
Media
4 endpoints- Get Instagram media (retired)Retired: always returns 410 and is not charged. Use /media/info for media details and /media/comments for comments.
/v2/instagram/media/info/web2 crGET - Get Instagram post or reel detailsReturns 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/info2 crGET - List Instagram post commentsReturns 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/comments2 crGET - List Instagram post likesReturns accounts that liked a public Instagram post or reel, identified by code, with user_count. The route takes no pagination input.
/v2/instagram/media/likes2 crGET