Skip to main content

What it does

Returns top-level comments on an Instagram post. Fixed page size of 15 (platform limit). Includes comment text, author info, like counts, and timestamps.

Tool details

FieldValue
Tool nameinstagram.get_post_comments
PlatformInstagram
REST endpointGET /v1/instagram/posts/{postId}/comments
Result typeCollection tool

Parameters

ParameterSourceTypeRequiredDescription
postIdpathstringYesPost shortcode (from instagram.com/p//)
countqueryintegerNoPage size (fixed at 15 by the platform) Default: 15.
cursorquerystringNoPagination cursor
projection_presetsharedstringNoOptional. Defaults to minimal. Allowed values: full, minimal, identity, engagement, content.
data_fieldssharedstring[]NoOptional. Adds top-level keys from data on top of the selected projection_preset.
item_fieldssharedstring[]NoOptional. Adds keys from data.orderedItems[] on top of the selected projection_preset.

Example

{
  "name": "instagram.get_post_comments",
  "arguments": {
    "postId": "DM8Q1ABC123",
    "count": 15,
    "projection_preset": "minimal",
    "data_fields": [
      "orderedItems",
      "nextCursor",
      "cursor",
      "itemCount"
    ],
    "item_fields": [
      "entityId",
      "published",
      "content",
      "likeCount",
      "id"
    ]
  }
}

Available data fields

[
  "@context",
  "type",
  "partOf",
  "totalItems",
  "cursor",
  "nextCursor",
  "next",
  "itemCount",
  "orderedItems"
]

Available item fields

[
  "type",
  "id",
  "entityId",
  "content",
  "published",
  "likeCount",
  "replyCount",
  "attributedTo",
  "inReplyTo"
]

Response notes

Successful calls return a JSON object with a top-level data field and, when available, metadata.creditsUsed and metadata.creditsRemaining. See response format, pagination, and credits.