---
title: "Get post comments"
method: GET
path: "/social-media/comments/post/{postId}"
tags: ["📸 Social Media"]
---

# Get post comments

`GET /social-media/comments/post/{postId}`

The API endpoint allows users to retrieve a list of comments associated with a specific post, based on the post ID provided as a path variable.

When accessing this endpoint and specifying a valid post ID, the response will contain a collection of comments related to that particular post.

## Query parameters

- `page` string
- `limit` string

## Response `200`

Get post comments

- object
  - `data` object
    - `comments` object[]
      - `__v` number
      - `_id` string
      - `author` object
        - `_id` string
        - `account` object
          - `_id` string
          - `avatar` object
            - `_id` string
            - `localPath` string
            - `url` string
          - `email` string
          - `username` string
        - `firstName` string
        - `lastName` string
      - `content` string
      - `createdAt` string
      - `isLiked` boolean
      - `likes` number
      - `postId` string
      - `updatedAt` string
    - `hasNextPage` boolean
    - `hasPrevPage` boolean
    - `limit` number
    - `nextPage` number
    - `page` number
    - `prevPage` unknown
    - `serialNumberStartFrom` number
    - `totalComments` number
    - `totalPages` number
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
