Skip to main content
POST
Get Comments
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

string
required
Your API key

Body Parameters

string
required
URL of the LinkedIn post to extract comments from (supports feed/update and /posts/ formats)
integer
default:"10"
Number of comments to retrieve (used when not in pagination mode)
integer
First page to fetch when using pagination mode (default: 1)
integer
Last page to fetch when using pagination mode (default: same as start_page)
string
default:"FR"
Country code for proxy selection. Available: (US, UK, FR, DE, NL, IT, IL, CA, BR, ES, IN)
string
required
LinkedIn authentication cookie obtained from the login/verify process

Response

string
Request status (success/error)
object

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/..
  • 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 and end_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
  • 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