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

ParameterTypeRequiredDescription
postIdstringYesPost shortcode (from instagram.com/p//)
countintegerNoPage size (fixed at 15 by the platform) Default: 15.
cursorstringNoPagination cursor
projection_presetstringNoDefaults to minimal. Allowed values: full, minimal, identity, engagement, content.
data_fieldsstring[]NoAdds top-level keys from data on top of the selected projection_preset.
item_fieldsstring[]NoAdds 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.