Track LinkedIn posts and comments with an API
Read recent posts for any member or company, one post in full, and its comments and replies, for social listening and competitor monitoring.
The short answer
- Four endpoints: a member's posts, one post in full, a post's comments with replies, and a company's posts.
- Posts mix two things: a member's own posts and posts they reacted to. Each row is flagged, so you can keep only their own.
- Replies keep their place: every reply carries a link to the comment it answers.
Read this as
Developer
Poll the posts endpoint for each profile or company on a schedule, store the post ids, and fetch comments only for posts that are new or growing.
Example 30 members, about 20 to 30 items each, is at most about 900 results: $2.25.
Marketer
See what competitors post, which posts draw comments, and how their audience replies, then use the language in your own copy.
Example 10 competitors, 25 posts each, is 250 results: $0.63.
Agency
Check an influencer's recent posts and the comment quality before you book them, and report on a campaign post afterward.
Example 20 creators, 30 posts each, is 600 results: $1.50.
Researcher
Comments are public, but commenters are people. Keep the text and time, and drop or hash names where your study allows it.
Example 5,000 comments on a topic over a month cost $12.50.
Four LinkedIn endpoints cover the content side. posts returns a member's recent activity. post returns one post in full. comments returns the comments on a post with their replies. company_posts returns the posts a company page has published.
What does each endpoint return?
| Endpoint | What you get |
|---|---|
| posts | A member's recent activity, about 20 to 30 recent items, own posts and reactions mixed, each flagged so you can tell them apart. |
| post | One post in full: text, media, reaction and comment counts, and the original post if it is a reshare. |
| comments | Comments and replies, with a parent_comment_id on each reply and an is_reply flag so threads can be rebuilt. |
| company_posts | About 20 recent posts published by a company page. |
Step 1: Start a run
| Part of the request | Value |
|---|---|
| Posts for a member | POST /api/public/v1/scrape/linkedin/posts with { "parameters": { "public_id": "reidhoffman" }, "limit": 25 } |
| One post | POST /api/public/v1/scrape/linkedin/post with { "parameters": { "activity_id": "7521344259774660609" } } |
| Comments | POST /api/public/v1/scrape/linkedin/comments with { "parameters": { "activity_id": "7521344259774660609" }, "limit": 200 } |
| Company posts | POST /api/public/v1/scrape/linkedin/company_posts with { "parameters": { "company_id": "microsoft" }, "limit": 25 } |
The activity id is the number in a post's URL, after urn:li:activity:. The public id and company id are the slugs after /in/ and /company/. Each call returns a run id, and you read the rows when it finishes.
Step 2: Read the rows
| Author | Text | Reactions | Own post |
|---|---|---|---|
| Ada Example | We shipped the new release today. | 312 | true |
| Sam Sample | Great thread on hiring in 2026. | 1,480 | false |
[
{
"author": "Ada Example",
"text": "We shipped the new release today.",
"reactions_count": 312,
"comments_count": 24,
"is_own_post": true
},
{
"author": "Sam Sample",
"text": "Great thread on hiring in 2026.",
"reactions_count": 1480,
"comments_count": 96,
"is_own_post": false
}
]
| Author | Text | Reply to | Is reply |
|---|---|---|---|
| User A | Does this work for small teams? | false | |
| User B | Yes, we use it with five people. | c1 | true |
[
{
"id": "c1",
"author": "User A",
"text": "Does this work for small teams?",
"parent_comment_id": null,
"is_reply": false
},
{
"id": "c2",
"author": "User B",
"text": "Yes, we use it with five people.",
"parent_comment_id": "c1",
"is_reply": true
}
]
What are the use cases?
- Social listening
- Follow what a topic's loudest voices are posting and how people respond.
- Competitor monitoring
- Watch a competitor's company page and executives for launches, hiring and messaging.
- Influencer research
- Check posting rhythm, reach and the quality of comments before you work with someone.
- Campaign reporting
- Pull the comments on a campaign post and sort them by theme.
What are the limits?
The posts list is recent activity, not a full archive, and it mixes a member's own posts with ones they reacted to, which is why each row is flagged. Counts on a post and the comments you can retrieve rarely match exactly, so plan around the rows you got. Comments are only what LinkedIn shows on the post.
Use it responsibly
Posts and comments are public, but a stored record of who said what is personal data in many places. Keep what you need, set a retention period, follow the privacy laws that apply to you, and check LinkedIn's terms for your use case. SocialHolmes is an independent service and is not affiliated with LinkedIn.
What SocialHolmes costs
Weekly competitor watch
An illustrative weekly run. Comments are extra rows, billed the same way.
$2.50 per 1,000 results (5 credits per result), with no monthly minimum (see pricing). New accounts get 1,000 free credits (200 LinkedIn results). To read the profile behind a post, see the LinkedIn profile API guide, and to find people to follow, LinkedIn lead generation search. Company pages are in the LinkedIn company data API guide.
Questions people ask
Can I get the posts of any LinkedIn member with an API?
Yes. The posts endpoint returns a member's recent activity from their profile slug. It includes posts they reacted to, and each row is flagged so you can keep only their own.
Can I get comments and replies on a LinkedIn post?
Yes. The comments endpoint returns comments and replies for a post, and each reply has a parent_comment_id pointing at the comment it answers.
Can I monitor a company's LinkedIn posts?
Yes. The company_posts endpoint returns the posts a company page has published, from the company's slug. Expect about 20 recent posts.
Will I get every post a member ever wrote?
No. You get about 20 to 30 recent items per member, not a full archive.
How much does it cost?
Each row is one result, so 1,000 posts or comments cost $2.50 with no monthly minimum.
Posts are published in English only. The rest of the site reads in ten languages; these do not, because a translated archive is one nobody keeps current.
Try it on your own targets
The only comparison that settles anything is your own. A new account gets 1,000 credits, needs no card, and runs on the same endpoints and rate as a paying one.