App Logo
linkedin.com

Reply to LinkedIn comment

Reply to a specific comment on a LinkedIn post, by the post URL plus the comment's urn (from get_post_comments or comment_post). Posts a real public reply under the logged-in account. The whole comment thread is paged through to reach the target, so a comment far down a long list is still found; replies that LinkedIn keeps hidden behind a "see previous replies" link are not expanded. The reply box auto-@mentions the comment author, and your text is added after that mention. Returns replied, plus the new reply's urn.

Input

reply required

The reply text. This posts a real, public reply under the user's account immediately, so confirm the exact text with them before running.

postUrl required

LinkedIn post permalink (/feed/update/urn:li:activity:.../).

commentUrn required

The target comment's urn, e.g. urn:li:comment:(activity:123,456) (from get_post_comments / comment_post).

Output

reply required
postUrl required
replied required
commentUrn required

The TARGET comment's urn (the one replied to).

account_used required

The real account the reply was (or would be) posted under, echoed from the session/UI.

already_present required

True if an exact-text reply was found already loaded under this comment's activity before opening the reply composer. Best-effort: a false does not guarantee no duplicate exists behind an unexpanded 'see previous replies' link.

verified_on_page required

True if the script independently re-inspected the newly created reply node's own rendered text and confirmed it matches what was posted. Always true when already_present is true.

replyUrn optional

urn:li:comment of the CREATED reply, from the create response; null if unresolved. Points at the pre-existing reply instead when already_present is true.

Start building not clicking