Skip to main content
POST
Extract comments from a LinkedIn profile
Extract comments left by a LinkedIn profile on other posts. This endpoint paginates through the profile’s feed activity and filters for comment-type elements, returning up to the specified limit.

Use Cases

  • Surface intent signals from prospects actively engaging with relevant content
  • Identify which topics a lead is commenting on to personalise outreach
  • Track engagement patterns of key prospects or customers
  • Enrich lead profiles with recent activity data

Parameters

Required Parameters

  • linkedin_profile_url: LinkedIn profile URL to extract comments from (e.g., https://www.linkedin.com/in/mathieu-brun-picard/)
  • limit: Maximum number of comments to extract (minimum: 1)

Response

The response includes an array of comments with the following fields:
  • id: Numeric activity ID extracted from the URN
  • comment_url: Full LinkedIn URL with commentUrn query parameter — links directly to the comment
  • author: Full name of the commenter
  • author_url: LinkedIn profile URL of the commenter (query params stripped)
  • comment_text: Text content of the comment
  • commented_at: ISO 8601 timestamp of when the comment was posted
  • urn: LinkedIn URN identifying the comment (urn:li:comment:(parentActivity,commentId))

Example Request

Example Response

Notes

  • This endpoint returns results synchronously (HTTP 200 OK) — no polling required
  • Comments are detected from the profile’s feed when the share URL contains commentUrn or /comment/, or when parentUrn/baseUpdate fields are present on the feed element
  • The service paginates through the feed in pages of 20 until the limit is reached or the feed is exhausted
  • author_url is returned with tracking query parameters stripped

Authorizations

X-API-KEY
string
header
required

Body

application/json
linkedin_profile_url
string<uri>
required

LinkedIn profile URL to extract comments from

Example:

"https://www.linkedin.com/in/john-doe"

limit
integer
required

Maximum number of comments to extract

Required range: x >= 1
Example:

10

Response

Successfully extracted comments

comments
object[]

Array of comments left by the LinkedIn profile