PostComment
A comment on a post, with its author.
Fields #
| Field | Type | Notes |
|---|---|---|
urn | string | The comment's own numeric id. A comment urn arrives as a nested tuple, urn:li:comment:(activity:<postId>,<commentId>), and this is the comment id from inside it, not the post id. |
url | string | |
text | string | |
commented_at | string (RFC 3339) | Absent when the date could not be decoded, rather than present and wrong. |
author | PostAuthor | Deliberately richer than ActivityComment, which is the same word for a different payload: that one is a comment the member left on someone else's post and carries a stub of that post; this one is a comment left on the post you asked for, and carries the commenter instead. |
reaction_count | integer | |
reply_count | integer | The total count of replies to this comment, which can be higher than what replies carries - only the first is returned inline. |
reactions_by_type | ReactionCount[] | The breakdown behind reaction_count. |
replies | PostComment[] | Nested replies, two levels deep. LinkedIn returns the first reply inline; deeper threads are not fetched, because each level is another request. |
Absent is not null: a field we did not get is omitted rather than sent as an empty string, so you can tell "LinkedIn does not have this" from "this person left it blank".
Sample #
{
"urn": "7000000000000001",
"url": "https://www.linkedin.com/feed/update/urn:li:activity:7000000000000000000/?commentUrn=...",
"text": "Congratulations to the team on today's launch.",
"commented_at": "2026-08-29T14:02:00Z",
"author": {
"name": "Elina Virtanen",
"url": "https://www.linkedin.com/in/ACwAAAyHg0MB",
"headline": "Head of Engineering",
"avatar_url": "https://media.licdn.com/dms/image/..."
},
"reaction_count": 14,
"reply_count": 2,
"reactions_by_type": [
{ "type": "LIKE", "count": 10 },
{ "type": "PRAISE", "count": 4 }
],
"replies": [
{
"urn": "7000000000000002",
"url": "https://www.linkedin.com/feed/update/urn:li:activity:7000000000000000000/?commentUrn=...",
"text": "Well deserved, congrats!",
"commented_at": "2026-08-29T14:10:00Z",
"author": {
"name": "Satya Nadella",
"url": "https://www.linkedin.com/in/satyanadella",
"headline": "Chairman and CEO at Microsoft",
"avatar_url": "https://media.licdn.com/dms/image/..."
},
"reaction_count": 3,
"reply_count": 0,
"reactions_by_type": [ { "type": "LIKE", "count": 3 } ],
"replies": []
}
]
}