Blog
Who liked and commented on a LinkedIn post, and what the full engagement list actually costs
LinkedIn's own API returns reactions only on posts you administer. Here is what the full liker and commenter list costs, and where the paging lies to you.
A post with 4,321 reactions is 4,321 people who raised their hand at a specific claim on a specific day. That is the highest-intent list most go-to-market teams will ever get for free.
LinkedIn’s own API will not tell you who they are, unless you administer the page that published the post.
What the official API actually grants
This is worth reading from the source rather than from a tool’s landing page. LinkedIn’s
Reactions API
documents a Get Reactions on a Share method, which sounds exactly like the thing you want. The
permission table is where it stops being that.
r_organization_social_feed retrieves “organizations’ posts, comments, and reactions” and is
“Restricted to organizations in which the authenticated member has one of the following company
page roles”,
namely ADMINISTRATOR or DIRECT_SPONSORED_CONTENT_POSTER. So it reads your own company page’s
posts. The member-level equivalent, r_member_social_feed, is marked Restricted and
“granted to select developers only”.
There is no tier that hands a normal application the reaction list of someone else’s post. That is a product decision, not an oversight, and no amount of developer-portal paperwork changes it.
Then there is the part people discover after they get access. A reaction in that API looks like this:
{
"id": "urn:li:reaction:(urn:li:person:rboDhL7Xsf,urn:li:activity:7067167295080394752)",
"reactionType": "LIKE",
"created": { "actor": "urn:li:person:rboDhL7Xsf", "time": 1686183251857 },
"root": "urn:li:activity:7067167295080394752"
}
The actor is a bare person urn. No name, no headline, no company. You have the fact that somebody liked it and no way to say who without a second system. Worth noting on timing, too: that same page carries a deprecation notice that Marketing Version 202510 “will be sunset on October 15, 2026”, so anything you build against the current version has a migration in front of it.
The two urns, which is the expensive mistake
Every third-party route to this data runs into the same structural oddity, so it is worth learning once. A LinkedIn post has two different urns, and the comment list and the reaction list are keyed by different ones.
| You want | Endpoint | Urn form it takes |
|---|---|---|
| Everyone who commented | GET /v1/posts/comments | urn:li:activity |
| Everyone who reacted | GET /v1/posts/reactions | urn:li:ugcPost or urn:li:share |
The two are different numbers, and neither one can be derived from the other. Hand reactions an
activity urn and the source returns an empty page and bills for it, which is the failure mode that
costs money while looking like “nobody reacted”. Triguna refuses that combination with a free 400
instead:
HTTP/1.1 400 Bad Request
X-Credits-Charged: 0
invalid post: reactions are only available for the urn:li:ugcPost or urn:li:share form of a post.
The comments path refuses the mirror image: invalid post: comments are only available for the urn:li:activity form of a post.
So resolve the post once and keep both. GET /v1/posts/details accepts any form, including the
page URL, and returns both:
curl -s "https://api.triguna.ai/v1/posts/details?post=https://www.linkedin.com/feed/update/urn:li:activity:7067167295080394752" \
-H "ApiKey: $TRIGUNA_KEY" \
| jq '{activity: .post.activity_urn, share: .post.share_urn}'
The page count lies, so stop on an empty page
This is the trap that silently truncates engagement lists, and it is not specific to one provider.
Ask for 100 items a page and pages routinely come back short without being the last one. Real
sizes from consecutive pages of a single post: 89, 66, 64, 55. If your loop stops when
items.length < count, you keep 89 reactors out of several thousand and your dashboard shows a
number that looks plausible. Stop only when the page is empty.
Two more things in the same shape. total is the source’s own figure and over-reports what you
can actually retrieve, so treat it as a ceiling for budgeting and never as a loop bound. And items
occasionally repeat across pages, so dedupe as you go:
// Reactions take the share urn. Comments take the activity urn. Not interchangeable.
async function fetchPage(kind, postUrn, page) {
const url = new URL(`https://api.triguna.ai/v1/posts/${kind}`);
url.search = new URLSearchParams({ post: postUrn, page, count: 100 });
const res = await fetch(url, { headers: { ApiKey: process.env.TRIGUNA_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
return res.json();
}
const engagers = new Map();
for (let page = 0; page <= 500; page++) {
const { items } = await fetchPage('reactions', shareUrn, page);
if (items.length === 0) break; // the only reliable stop condition
for (const { reaction_type, reactor } of items) {
engagers.set(reactor.entity_urn, { ...reactor, reaction_type });
}
}
Keying the map on entity_urn does the deduping for free, and it is the right key for the same
reason it is everywhere else in an enrichment integration: the display name and the public slug
both change, and the urn does not. That argument in full is in
key your enriched records on the stable identifier.
Pace the loop. The published limit is 10 requests per second, and 429 and 503 both carry
Retry-After. Which statuses are worth retrying, and which ones cost a credit if you do, is laid
out in which enrichment errors to retry.
What the list costs
One credit per page, whatever the page’s size, which is why count=100 and count=10 are the
same price and you should always ask for 100. At $0.005 a credit:
| What you ask for | Calls | Credits | Cost |
|---|---|---|---|
| Both urns for one post | 1 | 1 | $0.005 |
| 4,321 reactions, 100 a page | 44 | 44 | $0.22 |
| 615 comments, 100 a page | 7 | 7 | $0.035 |
| Full profiles for 200 of them | 4 bulk calls | 200 | $1.00 |
Those page counts are upper bounds, because total over-reports. The arithmetic matters mostly
for the last row: walking the engagement list is cheap, and enriching the people on it is the line
item that scales with your ambition rather than with the post.
For an honest external reference point, Apify’s LinkedIn Reactions and Comments Scraper publishes “from $1.50 / 1,000 engager returneds” at the time of writing, and returns a deduplicated list with name, headline, profile URL and engagement type.
Pick on shape, not on the unit price. An actor run hands you a CSV with no code at all, dedupes across posts for you, and is the right answer if you want one list once. An API is the right answer when the same question runs every week inside your own system and you need the failure modes, the provenance and the bill to be inspectable. The broader version of that tradeoff, with your own login session on one side and an API key on the other, is in PhantomBuster vs an enrichment API.
The engagement list is already a lead list
This is the part worth knowing before you budget a second enrichment pass: every reactor and commenter arrives with identity attached, not just a urn.
{
"reaction_type": "like",
"reactor": {
"profile_type": "person",
"name": "Sam Okafor",
"headline": "Platform engineer, Contoso",
"entity_urn": "ACoAAC9fanUrnExample",
"public_identifier": "sam-okafor",
"linkedin_url": "https://www.linkedin.com/in/sam-okafor"
}
}
Name, headline, slug and the stable urn, for a hundredth of a credit per person. For a lot of jobs, routing by headline keyword or exporting for a human to read, that is the whole task and you are done at $0.22.
You need the Person API when the headline is not enough: seniority from a
real position history, tenure, education, location. That is one credit per profile, and
POST /v1/people/bulk takes up to fifty bare entity_urn values at a time. It saves round trips
and rate limit headroom, not credits, so fifty profiles cost fifty credits either way. One stale
urn empties the whole batch and returns a 502 charged a single credit, so retry in smaller
batches to find the bad one.
Comments carry one thing reactions do not, which is text. text plus created_at_ms, which is
exact Unix milliseconds, means you can rank a commenter above a liker and a long comment above
“Great post”, without any inference about intent that you cannot defend later.
Every field in these payloads may be null while the key is always present, and that distinction decides whether your parser crashes or records a gap. The patterns are in handling partial enrichment records. If you are walking many posts on a schedule rather than one post on demand, the pacing and checkpointing patterns in running a nightly backfill apply unchanged.
The short version
- The official API covers your own page’s posts, and nothing else. Read the permission table before you plan a sprint around it.
- Resolve the post once and keep both urns. Comments take the activity form, reactions take
the share form, and guessing costs either a billed empty page elsewhere or a free
400here. - Stop on an empty page, never on a short one. This is the bug that quietly keeps 89 of 4,321.
- Walk the list before you enrich it. The names and headlines are already there, so only pay per profile for the people you actually need a career history for.
Fifty free credits are enough to resolve a post and walk dozens of pages of its reactions before you wire up billing. Why the surface is deliberately small enough to hold in your head is the argument on the about page.
Next
- Person API: what
GET /v1/people/profilereturns, and the identifiers it accepts. - Company API: company fields, and why
company_idtakes the URL slug rather than the display name. - Handling partial records: parsing a payload where every value may be null.
- Which enrichment errors to retry: the status codes worth a second attempt, and the one that bills you for it.
- Pricing: what an answered lookup costs, and the statuses that cost nothing. Sign up for fifty free credits at app.triguna.ai/signup.