GET /v2/media/info/by/urlPost by URL
Fetch media info from a public Instagram post URL.
Instagram API
Get public Instagram post metadata without high per-request fees. Our Instagram Posts API resolves posts by URL/code/id and lists user feeds — built for teams that need cheap, reliable media data.
Try on RapidAPIPrefer /v2/media/info/by/url (or by/code / by/id) for single-post lookups — these are the maintained media-info routes. For timelines, page the GraphQL user medias endpoint with the cursor from the previous response.
Downstream you can attach comments and likers endpoints to measure engagement on each post.
GET /v2/media/info/by/urlFetch media info from a public Instagram post URL.
GET /v2/media/info/by/codeFetch media info using the /p/{code}/ shortcode.
GET /gql/user/mediasList medias for a user id with pagination.
The Instagram Posts API returns metadata and media URLs in JSON. Your app can download assets separately if the URLs are public.
Media-info routes cover public media objects. For reel-centric feeds, also see the Instagram Reels API endpoints.