Skip to main content
GET
/
v1
/
posts
/
{id}
/
comments
curl https://api.infinipost.co/v1/posts/post_abc123/comments?limit=10 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "data": [
    {
      "id": "cmt_xyz789",
      "postId": "post_abc123",
      "username": "user123",
      "text": "Amazing content! 🔥",
      "likes": 45,
      "replies": 3,
      "createdAt": "2024-04-21T20:25:00Z"
    },
    {
      "id": "cmt_abc456",
      "postId": "post_abc123",
      "username": "user456",
      "text": "Love this!",
      "likes": 12,
      "replies": 0,
      "createdAt": "2024-04-21T20:26:00Z"
    }
  ],
  "total": 47,
  "hasMore": true
}

Path Parameters

id
string
required
The post ID.

Query Parameters

limit
number
default:"50"
Number of comments to return (max 100).
offset
number
default:"0"
Number of comments to skip for pagination.

Response

data
array
Array of comment objects.
total
number
Total number of comments.
hasMore
boolean
Whether there are more comments beyond this page.
curl https://api.infinipost.co/v1/posts/post_abc123/comments?limit=10 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "data": [
    {
      "id": "cmt_xyz789",
      "postId": "post_abc123",
      "username": "user123",
      "text": "Amazing content! 🔥",
      "likes": 45,
      "replies": 3,
      "createdAt": "2024-04-21T20:25:00Z"
    },
    {
      "id": "cmt_abc456",
      "postId": "post_abc123",
      "username": "user456",
      "text": "Love this!",
      "likes": 12,
      "replies": 0,
      "createdAt": "2024-04-21T20:26:00Z"
    }
  ],
  "total": 47,
  "hasMore": true
}