1. Post
Networked API Documentation
  • Getting Started
  • User Authentication
    • Add New Users to Community
      POST
    • Send email invites
      POST
  • User Profile
    • User Profile
      GET
    • Profile Visits
      GET
  • Community
    • Features
      • Feature List
    • Directory
      • Users List
      • Roles List
    • Monetization
      • Plans
        • Plans List
    • Feed
      • Polls
        • Create Polls
      • Surveys
        • Create Surveys
      • Post
        • Ask and offer help
          • Post Intro
          • Post Advice
          • Post Recommendation
          • Post Kudos
          • Post Help
        • Feed Post List
          GET
        • Post to Feed
          POST
        • Get Post Comments
          GET
        • Add Comments to Post
          POST
      • upload Media
        POST
    • Opportunities
      • Company and Services
        • Company and Services List
      • Fundaising Initiatives
        • Fundraising Initiatives List
      • Career Opportunities
        • Career Opportunities
    • Events
      • Event Post
      • Edit Events
      • Delete Event
      • Event List
    • Media Center
      • Get Resources
    • Analytics
      • Community Analytics
    • Newsletter
      • Lists
        • Get newsletter subscriber lists
      • Add newsletter subscribers
      • Get newsletter subscribers
    • Community Details
      GET
    • Spaces List
      GET
  • Webhooks
    • User Webhooks
      • user.joined
      • user.profile.updated
      • user.joined.space
    • Feed Webhooks
      • post.created
      • post.liked
      • post.unliked
      • comment.added
      • post.reported
  • References
    • Response Codes
    • Model Status
    • Post Types
  1. Post

Get Post Comments

GET
https://backend.networked.co/api/v1/posts/comment

💬 Get Post Comments#

Fetches a paginated list of comments associated with a specific post.

HTTP Method#

GET

Endpoint#

/api/v1/posts/comment

Query Parameters#

NameTypeRequiredDescription
postIdString✅ YesID of the post to fetch comments for.
startNumber✅ YesStarting index for pagination.
countNumber✅ YesNumber of comments to fetch.

Headers#

NameTypeRequiredDescription
x-api-keyString✅ YesConfidential key provided by Networked. Required for all API calls.

Sample Response#

{
  "data": {
    "count": 2,
    "start": 0,
    "contents": {
      "postId": "6855529c78bddf001282dd01",
      "comments": [
        {
          "user": {
            "id": "6787893423126f0012a92ed6",
            "name": "Spencer Johnson Spencer",
            "image": "https://ntwc-us-east-2-qa-eks-s3-files-storage.s3.us-east-2.amazonaws.com/user-6787893423126f0012a92ed6/file_1741258763688_image (25).png",
            "title": " Software Development Test Engineer WBC Community Test Engineer"
          },
          "commentId": "6858c0a078bddf001282e06d",
          "comment": "<p class=&#x27;preserveHtml&#x27; class=&#x27;preserveHtml&#x27;>test comment 2</p>",
          "parentCommentId": null,
          "childCommentscount": 0,
          "likesCount": 0,
          "selfLike": false,
          "shareCount": 0
        },
        {
          "user": {
            "id": "6787893423126f0012a92ed6",
            "name": "Spencer Johnson Spencer",
            "image": "https://ntwc-us-east-2-qa-eks-s3-files-storage.s3.us-east-2.amazonaws.com/user-6787893423126f0012a92ed6/file_1741258763688_image (25).png",
            "title": " Software Development Test Engineer WBC Community Test Engineer"
          },
          "commentId": "6858c08378bddf001282e03f",
          "comment": "<p class=&#x27;preserveHtml&#x27; class=&#x27;preserveHtml&#x27;>test comment</p>",
          "parentCommentId": null,
          "childCommentscount": 0,
          "likesCount": 0,
          "selfLike": false,
          "shareCount": 0
        }
      ]
    },
    "nextStart": false
  },
  "error": false,
  "message": "Success"
}

Response Interface#


Response Field Descriptions#

FieldTypeDescription
countNumberTotal number of comments fetched in this call.
startNumberIndex from which comments are returned.
nextStartBooleanIndicates whether more comments are available to fetch.
contentsObjectContains the postId and comments array.
contents.postIdStringID of the post.
contents.commentsArrayList of comment objects.
errorBooleanIndicates if the request failed.
messageStringServer response message.
Comment Object#
FieldTypeDescription
userObjectDetails of the user who made the comment.
commentIdStringUnique identifier of the comment.
commentStringHTML-formatted content of the comment.
parentCommentIdStringif current comment is a reply to a comment then parentCommentId relates to its parent comment.
childCommentscountNumberNumber of replies (child comments) under this comment.
likesCountNumberNumber of likes the comment has received.
selfLikeBooleantrue if the comment is liked by the current (logged-in) user.
shareCountNumberNumber of times the comment has been shared.
user Object (Nested)#
FieldTypeDescription
idStringUnique ID of the user.
nameStringFull name of the user.
imageStringURL to the user's profile picture.
titleStringProfessional title or designation of user.

Reference#

🔗 Response Codes

Notes#

selfLike indicates whether the logged-in user has liked a specific comment.
To fetch replies (child comments), use the parentCommentId and implement a thread-based reply structure.
Make sure to paginate using start and count to avoid performance bottlenecks.

Request

Query Params

Header Params

Responses

🟢200
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://backend.networked.co/api/v1/posts/comment?postId=6855529c78bddf001282dd01&start=0&count=10' \
--header 'x-api-key: <your-api-key>'
Response Response Example
{
    "data": {
        "count": 2,
        "start": 0,
        "contents": {
            "postId": "6855529c78bddf001282dd01",
            "comments": [
                {
                    "user": {
                        "id": "6787893423126f0012a92ed6",
                        "name": "Spencer Johnson Spencer",
                        "image": "https://ntwc-us-east-2-qa-eks-s3-files-storage.s3.us-east-2.amazonaws.com/user-6787893423126f0012a92ed6/file_1741258763688_image%20%2825%29.png",
                        "title": " Software Development Test Engineer WBC Community Test Engineer"
                    },
                    "commentId": "6858c0a078bddf001282e06d",
                    "comment": "<p>test comment 2</p>",
                    "parentCommentId": null,
                    "childCommentscount": 0,
                    "likesCount": 0,
                    "selfLike": false,
                    "shareCount": 0
                },
                {
                    "user": {
                        "id": "6787893423126f0012a92ed6",
                        "name": "Spencer Johnson Spencer",
                        "image": "https://ntwc-us-east-2-qa-eks-s3-files-storage.s3.us-east-2.amazonaws.com/user-6787893423126f0012a92ed6/file_1741258763688_image%20%2825%29.png",
                        "title": " Software Development Test Engineer WBC Community Test Engineer"
                    },
                    "commentId": "6858c08378bddf001282e03f",
                    "comment": "<p>test comment</p>",
                    "parentCommentId": null,
                    "childCommentscount": 0,
                    "likesCount": 0,
                    "selfLike": false,
                    "shareCount": 0
                }
            ]
        },
        "nextStart": false
    },
    "error": false,
    "message": "Operation completed successfully"
}
Modified at 2026-05-15 11:44:52
Previous
Post to Feed
Next
Add Comments to Post
Built with