posts
Get Comments
Retrieve comments on a specific LinkedIn post
POST
Get a detailed list of comments on a LinkedIn post, including information about who commented and the comment content.
Credit Usage: 1 credit per 10 results (or fraction thereof). For example:
- 1-10 results = 1 credit
- 11-20 results = 2 credits
- 300 results = 30 credits
Header Parameters
Your API key
Body Parameters
URL of the LinkedIn post to extract comments from (supports feed/update and /posts/ formats)
Number of comments to retrieve (used when not in pagination mode)
First page to fetch when using pagination mode (default: 1)
Last page to fetch when using pagination mode (default: same as start_page)
Country code for proxy selection. Available: (US,UK,FR)
LinkedIn authentication cookie obtained from the login/verify process
Response
Request status (success/error)
Notes
- The API supports two post URL formats:
- Feed updates:
https://www.linkedin.com/feed/update/urn:li:activity:...
- share url:
https://www.linkedin.com/posts/..
- Feed updates:
- Results are paginated with a maximum of 50 comments per page
- The profile picture URL may be null if not available or if the user has no profile picture
- Connection degree shows your network relationship with the commenter (1st, 2nd, or 3rd degree connection)
- Pagination Mode vs. Total Results Mode:
- Total Results Mode: Use the
total_results
parameter to specify how many comments you want (default) - Pagination Mode: Use
start_page
andend_page
parameters to fetch specific pages of results - Credit usage in pagination mode is based on the number of pages fetched (1 credit per page)
- When using pagination mode,
total_results
parameter is ignored
- Total Results Mode: Use the
- The
total_available_results
field shows the total number of comments available on the post - Some comment information may be limited based on:
- Your connection level with the commenter
- The commenter’s privacy settings
- The post’s visibility settings
- Rate limits apply to comment retrieval requests