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_url: LinkedIn profile URL to extract comments from (e.g., https://www.linkedin.com/in/mathieu-brun-picard/). linkedin_profile_url is still accepted as an alias.
  • limit: Maximum number of comments to extract, from 1 to 20 (larger values are treated as 20)

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

Headers

Idempotency-Key
string

A unique value you generate per operation, such as a UUID. Retrying with the same key and the same body returns the stored response instead of running the request again, so a retry after a timeout never charges twice. Successful responses are kept for 24 hours; a failed request is not stored and can be retried with the same key.

Maximum string length: 255
Example:

"4f1c2e9a-8a7d-4c1b-9f63-2d6e0b5a7c11"

Body

application/json
linkedin_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, from 1 to 20. Larger values are treated as 20.

Required range: 1 <= x <= 20
Example:

10

linkedin_profile_url
string<uri>
deprecated

Alias of linkedin_url, still accepted. Use linkedin_url in new integrations.

Response

Successfully extracted comments

comments
object[]

Array of comments left by the LinkedIn profile