LinkedIn

List comments on a post

Top-level comments on a post, or replies to one comment when commentId is given.

GET

/api/v1/linkedin/posts/{postId}/comments

Path parameters

postId

required

string

Post id as returned by a post listing or search. An id copied from a post URL often does not resolve.

Query parameters

connectedAccountId

required

string · uuid

Connected account to act as

commentId

optional

string

Read replies to this comment instead of top-level comments.

sortBy

optional

"MOST_RECENT" | "MOST_RELEVANT"

cursor

optional

string

limit

optional

integer

Response

200Comments and an optional cursor.

comments

object[]

cursor

string | null

Errors

  • 400: Bad request
  • 401: Unauthorized: missing or invalid API key
  • 403: Forbidden
  • 404: Not found
  • 422: Invalid request payload

Search docs

Search documentation, API reference, and MCP tools

We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy