YepAPI

Command Palette

Search for a command to run...

POST/v1/instagram/post

Instagram Post API

Get full Instagram post details — media, captions, engagement stats from $0.01/call.

Fetch complete details for any Instagram post by shortcode. Returns media URLs, captions, engagement stats, and author information.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/instagram/post

The shortcode from the post URL (e.g., instagram.com/p/CxYzAbCdEf)

Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "shortcode": "CxYzAbCdEf",
    "caption": "Amazing sunset!",
    "like_count": 50000,
    "comment_count": 500,
    "owner": {
      "username": "photographer"
    },
    "display_url": "https://..."
  }
}

Features

Full post data

Resolves a single post by its shortcode and returns the complete object — caption, engagement, media, and author — in one response.

Media URLs (images/video)

Returns the post's media, such as display_url for images, so you can render or archive the actual photo or video frame.

Engagement stats

Includes like_count and comment_count for the post, giving you precise performance numbers for a specific piece of content.

Caption and hashtags

The full caption text is returned, hashtags and all, ready for keyword extraction and content-theme analysis.

Author information

The owner object identifies the posting account (for example owner.username), tying the post back to its creator.

Use cases

Post Analysis

Analyze any Instagram post's performance and engagement.

Content Archiving

Archive Instagram post data including media and metadata.

Engagement Tracking

Track likes, comments, and saves for specific posts.

Quick start

Copy this snippet and start making calls.

const res = await fetch('https://api.yepapi.com/v1/instagram/post', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "shortcode": "CxYzAbCdEf"
  }),
});
const data = await res.json();
console.log(data);

Fetch full details for any Instagram post by shortcode

The YepAPI Instagram Post API resolves a single post from its shortcode — the code in instagram.com/p/CxYzAbCdEf — and returns the complete object: caption, like_count, comment_count, media URL, and the owner account. A POST to /v1/instagram/post gives you everything about one specific piece of content in a single call.

It is the deep-dive companion to the feed endpoints: User Posts and Tagged Posts hand you shortcodes, and the Post API turns any one of them into full detail. Go further with Post Comments and Post Likers, or convert the shortcode with the Media ID API. One key also covers TikTok, YouTube, SEO, and AI.

What is an Instagram post API?

An Instagram post API returns the complete data for one specific post, identified by its shortcode — the alphanumeric string in the post's URL. You send {"shortcode": "CxYzAbCdEf"} and receive the full object: the caption with its hashtags, like_count and comment_count, the media display URL, and an owner block identifying the author. Unlike a feed endpoint that returns many posts in summary form, the post API gives you one post in full depth. It is the canonical lookup for analyzing, archiving, or displaying a single known piece of Instagram content.

Build your own Instagram post-analysis tool

Use the Post endpoint to archive specific posts with their media and metadata, track a campaign post's engagement over time, or display rich Instagram content in your own app. Because the response includes the media URL, full caption, and exact like and comment counts, you can store a faithful snapshot or compute precise engagement. Combine it with the YepAPI Post Comments API to read the conversation and the Post Likers API to see exactly who engaged with that post.

Instagram Post API pricing — $0.01 per call

Each post lookup is a flat $0.01, with no tiers or minimums. Snapshotting a campaign's posts daily, or backfilling an archive of known shortcodes, stays inexpensive, and the spend shares one balance with every YepAPI endpoint. You are billed per call only, so per-post analysis scales linearly with the posts you track.

Single-post detail without owning the account

Instagram's official Graph API returns post-level media and insights only for content on accounts you manage or that authorize your app. The YepAPI Post API returns the full public detail of any post by shortcode, regardless of who owns it, so you can analyze a competitor's viral post or archive a creator's content you have no relationship with — exactly what the official API restricts.

Try the Instagram Post API free

Sign up for $5 in free credit, no card required. That covers 500 post lookups — enough to test post archiving and engagement analysis before you spend a thing.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Fetch complete details for any Instagram post by shortcode. Returns media URLs, captions, engagement stats, and author information.

Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/instagram/post. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More instagram api endpoints