Skip to main content
POST
/
intents
/
leads
/
comments
Extract comments from a LinkedIn profile
curl --request POST \
  --url https://app.prontohq.com/api/v2/intents/leads/comments \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "linkedin_profile_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
  "limit": 10
}
'
{
  "comments": [
    {
      "id": "7241056783920183297",
      "comment_url": "https://www.linkedin.com/feed/update/urn:li:activity:7241056783920183297?commentUrn=urn%3Ali%3Acomment%3A%28urn%3Ali%3Aactivity%3A7241056783920183297%2C7241089034521346049%29",
      "author": "Mathieu Brun-Picard",
      "author_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
      "comment_text": "Great point - we've been seeing the same pattern.",
      "commented_at": "2025-11-20T14:17:00Z",
      "urn": "urn:li:comment:(urn:li:activity:7241056783920183297,7241089034521346049)"
    }
  ]
}
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

curl --request POST \
  --url https://app.prontohq.com/api/v2/intents/leads/comments \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: your-api-key' \
  --data '{
    "linkedin_profile_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
    "limit": 10
  }'

Example Response

{
  "comments": [
    {
      "id": "7241056783920183297",
      "comment_url": "https://www.linkedin.com/feed/update/urn:li:activity:7241056783920183297?commentUrn=urn%3Ali%3Acomment%3A%28urn%3Ali%3Aactivity%3A7241056783920183297%2C7241089034521346049%29",
      "author": "Mathieu Brun-Picard",
      "author_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
      "comment_text": "Great point — we've been seeing the same pattern at Pronto. The signal quality improves significantly once you filter by recency and engagement depth.",
      "commented_at": "2025-11-20T14:17:00Z",
      "urn": "urn:li:comment:(urn:li:activity:7241056783920183297,7241089034521346049)"
    },
    {
      "id": "7238912047563218945",
      "comment_url": "https://www.linkedin.com/feed/update/urn:li:activity:7238912047563218945?commentUrn=urn%3Ali%3Acomment%3A%28urn%3Ali%3Aactivity%3A7238912047563218945%2C7238945301827563521%29",
      "author": "Mathieu Brun-Picard",
      "author_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
      "comment_text": "This is exactly why we built intent signals into Pronto. Knowing when a prospect is actively commenting on topics relevant to your product is a game changer for outbound timing.",
      "commented_at": "2025-11-17T10:44:00Z",
      "urn": "urn:li:comment:(urn:li:activity:7238912047563218945,7238945301827563521)"
    }
  ]
}

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/mathieu-brun-picard/"

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