Get Instagram Post or Reel Details
View all Instagram Data API endpoints →Resolve a single post, Reel or IGTV item by shortcode or URL. Pass code_or_url — the segment after /p/, /reel/ or /tv/ (e.g. DeM-xDCA2W5) or a full instagram.com URL. The live-verified response returns data with id, code, taken_at, caption (text plus extracted hashtags and mentions), user (owner id, username and verification), media_type, like_count, comment_count, image_versions2 / video_versions media URLs, carousel_media for albums, location when tagged, and clips_metadata (audio_canonical_id, audio_type, reuse flags) for Reels. A lookup of shortcode DeM-xDCA2W5 returned media id 4002850218218579385 owned by instagram with matching caption and timestamp. Keep the returned numeric media id as your join key across endpoints.
API Features
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
/api/project/instagram/post-detail API Response (JSON)
{} curl -X GET 'https://api.opendata-api.com/api/project/instagram/post-detail?key=<API_KEY>&code_or_url=DeM-xDCA2W5'
Query Result
Use Cases
- Turn a list of campaign post URLs into structured records with caption, author, timestamp and engagement fields.
- Enrich feed items with media URLs, location tags and Reels audio metadata.
- Verify that a cited shortcode belongs to the expected account before quoting it in a report.
- Extract audio_canonical_id from Reels to chain into audio info and audio posts lookups.
Frequently asked questions
How do I get details from an Instagram post link or shortcode?
Pass the full URL, or the shortcode that follows /p/, /reel/ or /tv/, to code_or_url. The response data.id is the numeric media ID that works across endpoints.