Platforms/Instagram/Post

Instagram Post API

GET ยท 1 credit

Send a post's or reel's code or link, and get its caption, counts, author, images and videos, tagged accounts, place and sound.

GET /v1/instagram/posts

What people use it for

  • Campaign reporting: read a set of posts and reels every day and chart their likes and comments.
  • Content analysis: see who a post tags, where it was taken and which sound a reel uses.
  • Link enrichment: turn an Instagram link into its caption, images and author.

How it works with other endpoints

Post codes come from Profile posts, Profile reels, Location posts and Topic. The same code goes to Post comments. The post's location.id goes to Location, each of its topics to Topic, and its author to Profile.

Limits

  • One post or reel a call.
  • Image and video links are signed by Instagram and expire after a while: save the files you need soon after the call.
  • A post only logged-in users can see answers 403 LOGIN_REQUIRED; a deleted one answers 404 NOT_FOUND.

Example request

const url = `${process.env.API_URL}/v1/instagram/posts?code=Dehl7Xohfah`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
codeNoA post's or reel's code: the part after /p/ or /reel/ in its link. Give code or url.
urlNoA post's or reel's link: instagram.com/p/<code> or /reel/<code>. Give code or url.

Example response

{
  "data": {
    "id": "3512345678901234567",
    "code": "Dehl7Xohfah",
    "url": "https://www.instagram.com/p/Dehl7Xohfah/",
    "type": "carousel",
    "is_reel": false,
    "caption": "Made for the miles ahead. #nike #running",
    "created_at": "2026-11-27T15:00:00Z",
    "likes": 184000,
    "comment_count": 1300,
    "plays": null,
    "thumbnail": "https://scontent.cdninstagram.com/v/t51.29350-15/post-1.jpg?oe=6750A1B2",
    "video_url": null,
    "width": 1080,
    "height": 1350,
    "author": "nike",
    "author_id": "13460080",
    "author_name": "Nike",
    "author_verified": true,
    "media": [
      {
        "id": "3512345678901234561",
        "type": "image",
        "url": "https://scontent.cdninstagram.com/v/t51.29350-15/item-1.jpg?oe=6750A1B2",
        "width": 1080,
        "height": 1350,
        "description": "A runner on a coastal road at sunrise."
      },
      {
        "id": "3512345678901234562",
        "type": "video",
        "url": "https://scontent.cdninstagram.com/o1/v/t16/item-2.mp4?oe=6750A1B2",
        "width": 1080,
        "height": 1350,
        "description": null
      }
    ],
    "tagged": [
      "nikerunning"
    ],
    "coauthors": [],
    "location": {
      "id": "212988663",
      "name": "New York, New York",
      "latitude": 40.7142,
      "longitude": -74.0064
    },
    "audio": null,
    "topics": [
      "running"
    ],
    "description": "A runner on a coastal road at sunrise."
  },
  "page": null,
  "meta": {
    "platform": "instagram",
    "endpoint": "post",
    "params": {
      "code": "Dehl7Xohfah"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Which links does it take?

instagram.com/p/<code> and /reel/<code>, or the code alone: the part after /p/ or /reel/.

Does it list every image in a carousel?

Yes. media holds every image and video, in order.

What's in audio?

A reel's sound: its id, its title ("Original audio" for one made with the reel) and who made it.

What if the post was deleted?

It answers 404 NOT_FOUND, and a deleted post is never served from the cache.

Works with

On other platforms

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required