Platforms/Instagram/Post comments

Instagram Comments API

GET ยท 1 credit

Send a post's or reel's code or link, and get its first comments: the 12 to 15 its page shows logged out.

GET /v1/instagram/posts/comments

What people use it for

  • Quick sentiment checks: read the first comments on a launch post or a creator's reel.
  • Engagement checks: see which comments get the most likes and replies.

How it works with other endpoints

Post codes come from Profile posts, Post and the other lists. The comment's author goes to Profile.

Limits

  • The first 12 to 15 comments; no next page.
  • Replies aren't included; reply_count says how many each comment has.

Example request

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

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": "18045678901234567",
      "text": "Need these for my marathon",
      "created_at": "2026-11-27T16:20:00Z",
      "likes": 340,
      "reply_count": 12,
      "author": "runs.with.alex",
      "author_id": "5700000000",
      "author_verified": false,
      "author_picture": "https://scontent.cdninstagram.com/v/t51.29350-15/commenter.jpg?oe=6750A1B2"
    }
  ],
  "page": null,
  "meta": {
    "platform": "instagram",
    "endpoint": "post_comments",
    "params": {
      "code": "Dek_RAKjMDJ"
    },
    "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

How many comments can I get?

The first 12 to 15, in Instagram's order, as the post's page shows them to a logged-out visitor. There is no next page.

Can I get the replies?

No. reply_count says how many replies a comment has; the API has no endpoint for Instagram replies.

Does it work on reels?

Yes. Send a reel's code or link the same way.

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