get_v2_media_info_by_url
Fetches an Instagram post or reel by link and returns the media object; returns 404 for deleted or unavailable posts and 400 for non-post URLs.
Instructions
Get an Instagram post or reel by its link (instagram.com/p/... or /reel/...). Use get_v2_media_info_by_code for a bare shortcode. Returns the media object, 404 for deleted or unavailable posts and 400 for links that are not posts: use get_v2_story_by_url for story links and get_v1_share_by_url for /s/ share links. Promoted (ad) posts may also return 404. Live request to Instagram, billed per call. (GET /v2/media/info/by/url)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| safe_int | No | Convert all big integers to strings |