LinkedIn Comment Replies API
This API returns up to the 10 newest replies to one comment on a LinkedIn post. Each reply includes the text, the replier's name, profile URL and job title, a timestamp, and like counts. It needs a LinkedIn comment URL as input.
Use cases
- Read the full thread under a high-traffic comment to see how people respond to it.
- Collect the profile URLs and job titles of people who reply to a comment, to build a list of engaged accounts.
- Track which replies draw likes and which reaction types they get.
- Find who is mentioned in each reply through the
contentAnnotations entries.
Request
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/comment-replies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.linkedin.com/feed/update/urn:li:activity:7510715600319467520?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7510715600319467520%2C7510749329649725442%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287510749329649725442%2Curn%3Ali%3Aactivity%3A7510715600319467520%29"}'
The result is returned in outputs[0].data.
Parameters
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"actor": {
"id": "ACoAAAEdHaIBq2zcPNMrJ_k-Z5E7LasZNFSRl7E",
"linkedinUrl": "https://www.linkedin.com/in/kate-orloski-3423116",
"name": "Kate Orloski",
"position": "Marketing",
"type": "profile"
},
"commentary": "Paul Linehan\nTo put a finer point on this, your earlier response, “My point was …",
"contentAnnotations": [
{
"hyperlink": "https://www.linkedin.com/in/ACoAAAbqHRMBD_eyM7-R9_bqbQHjBhVCpmHRIq4",
"length": 12,
"profileFirstName": "Paul",
"profileId": "ACoAAAbqHRMBD_eyM7-R9_bqbQHjBhVCpmHRIq4",
"profileLastName": "Linehan",
"profileUrl": "https://www.linkedin.com/in/ACoAAAbqHRMBD_eyM7-R9_bqbQHjBhVCpmHRIq4",
"start": 0,
"type": "PROFILE_MENTION"
}
],
"createdUtc": 1792813635,
"edited": false,
"engagement": {
"likes": 0,
"reactions": []
},
"id": "7519605402238476288",
"postId": "activity:7510715600319467520",
"url": "https://www.linkedin.com/feed/update/urn:li:activity:7510715600319467520?comment…"
}
]
},
"found": true
}
Response fields
Notes
- Get the input
url from the url field of LinkedIn Post Comments, or copy it with "Copy link to comment" on LinkedIn.
- The URL must carry
commentUrn and dashCommentUrn. A post URL without dashCommentUrn is refused as invalid input.
- A reply's URL returns the thread it belongs to.
- To see who reacted to a comment, call LinkedIn Comment Reactions.
Pricing
Billed at the actual cost of each call, about $0.0026 for the request above. Failed calls are not charged.