LinkedIn · API

LinkedIn Comments

Comments on any post, with replies and commenter profiles.

per event $0.004

What it does

Pulls every comment on a LinkedIn post, optionally including threaded replies. Each comment includes the commenter's profile snapshot and the reaction count, so you can turn engaged audiences into leads with full context.

Input

Request body

Field Type Description
posts string[] required LinkedIn post URLs to extract comments from.
includeReplies boolean optional Include threaded replies. Default: true.
maxComments number optional Max comments per post. Default: unlimited.

Output

Comment object

Field Type Description
commentId string required Unique identifier for the comment.
text string required Comment body.
commenter object required Full profile snapshot of the commenter.
postedAt ISO date required When the comment was posted.
replies object[] optional Threaded replies (same shape as comments).
reactionCount number required Number of reactions on the comment.

Example request

curl -X POST \
  "https://api.apify.com/v2/acts/QEsyXru1TiU6s7ItR/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "posts": ["https://www.linkedin.com/feed/update/urn:li:activity:..."],
    "includeReplies": true
  }'

Features

Errors & limits

Changelog

AT SCALE

Running high volumes?

Skip the marketplace tiers and get unit pricing scoped to your real call volume — direct line to the team that runs the pipeline.

Get volume pricing