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
    • Remove users from Space
      DELETE
    • Community Details
      GET
    • Spaces List
      GET
    • Add Users to Space
      POST
  • Webhooks
    • Members
      • User joined
      • User join request
      • User join request approved
      • User join request declined
      • User left
      • User unbanned
      • User role changed
      • User profile updated
      • User invited
      • User invite declined
      • User verified
      • User questions answered
      • User nominated
      • Feedback submitted
    • Spaces
      • Space created
      • Space updated
      • Space deleted
      • User joined space
      • User left space
    • Events
      • Event created
      • Event registered
      • Event updated
      • Event cancelled
      • Event registration updated
      • Event registration cancelled
      • Event starting soon
      • Event attended
      • Event ended
    • Feed
      • Post created
      • Post updated
      • Post deleted
      • Post liked
      • Post unliked
      • Comment added
      • Post reported
      • Post approval requested
      • Post approved
      • Post rejected
      • Post shared
      • Post pinned
      • Post unpinned
      • Post scheduled
      • Comment deleted
      • Comment liked
      • Comment unliked
      • Comment reported
      • Poll voted
      • Survey responded
      • Poll ended
    • Live video
      • Live started
      • Live ended
      • Live joined
      • Live left
      • Live recording ready
    • Courses
      • Course published
      • Course updated
      • Course unpublished
      • Course enrolled
      • Lesson completed
      • Quiz submitted
      • Course completed
    • Newsletter
      • Newsletter subscriber added
      • Newsletter subscriber removed
      • Newsletter sent
      • Newsletter email opened
      • Newsletter email clicked
      • Newsletter email bounced
      • Newsletter email complained
    • Payments
      • Monetization subscription created
      • Monetization subscription renewed
      • Monetization subscription changed
      • Monetization subscription cancel scheduled
      • Monetization subscription resumed
      • Monetization subscription cancelled
      • Monetization payment failed
      • Monetization purchase completed
      • Monetization checkout abandoned
      • Monetization refund requested
      • Monetization refund issued
      • Offer reviewed
      • Offer sold out
    • Opportunities
      • Opportunity created
      • Opportunity updated
      • Opportunity deleted
      • Opportunity applied
    • Media
      • Media added
      • Media updated
      • Media deleted
      • Media shared
      • Media downloaded
    • Community
      • Community updated
      • Community tokens low
      • Community tokens limit reached
      • Website page published
      • Community app published
      • Integration sync failed
    • Chat
      • Chat channel created
      • Chat message posted
  • References
    • Role Types
    • Media Types
    • Response Codes
    • Model Status
    • Post Types
  • Schemas
    • WebhookActor
    • WebhookChannel
    • WebhookComment
    • WebhookCourse
    • WebhookEvent
    • WebhookLiveSession
    • WebhookMedia
    • WebhookMember
    • WebhookNewsletter
    • WebhookOffer
    • WebhookOpportunity
    • WebhookPost
    • WebhookPurchase
    • WebhookRegistration
    • WebhookSpace
    • WebhookSubscriber
    • WebhookSubscription
    • WebhookEnvelope
  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