Facebook Pixel
APILinkedIn Posts

Get comments from a post

Retrieve comments from a LinkedIn post with pagination support. Useful for analyzing engagement, finding leads who commented, or monitoring discussions. Returns comment content, author info, timestamps, and like counts.

POST/posts/comments

Get comments from a post

Retrieve comments from a LinkedIn post with pagination support. Useful for analyzing engagement, finding leads who commented, or monitoring discussions. Returns comment content, author info, timestamps, and like counts.

Authentication requiredPosts

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/posts/comments' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"postUrl":"https://linkedin.com/posts/example-post"}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
postUrlstringYesFull URL of the LinkedIn post to get comments from
commentCountnumberNoNumber of comments per page (enables pagination mode)
startnumberNoPagination offset (0-indexed)
paginationTokenstringNoToken from previous response to fetch next page
maxCommentsnumberNoMaximum total comments to retrieve
batchSizenumberNoInternal batch size for fetching

Example

{
  "postUrl": "https://linkedin.com/posts/example-post"
}

Responses

StatusDescription
200Comments retrieved successfully