Introducing the Instagram APIRead more →

LinkedIn Comments API. Comments and replies, page by page.

Comments and replies on a post or article. We handle the proxies, blocks and platform changes.

In your agent: LinkedIn MCP server →

LinkedIn Comments API at a glance

Returns the comments on a public LinkedIn post or Pulse article, from its link, URN or activity ID, a page at a time. The first page is the top comments LinkedIn shows on the post, with exact reactions; later pages list the rest newest first, each followed by its replies with reply counts. Each comment has its text, exact time, link, and the commenter's name, profile, picture and headline.

GET /v1/linkedin/comments

Read the API reference
  • 1 credit per page, up to 5 credits, $0.75–$1.97 per 1,000 pages
  • 16 typed fields null when unknown
  • 200 comments and replies per page, LinkedIn's top comments first, as the post's page shows them; then the other comments newest first, each followed by its replies
  • url is all it needs, e.g. https://www.linkedin.com/feed/update/urn:li:activity:7522801130767224832

Send one request. Get up to 200 comments and replies back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.linkedin.com/feed/update/urn:li:activity:7522801130767224832
GET /v1/linkedin/commentsTry in
const params = new URLSearchParams({
  url: "https://www.linkedin.com/posts/williamhgates_world-bank-says-small-ai-could-transform-activity-7522801130767224832-2eZH",
});
const res = await fetch(`https://socialtap.dev/v1/linkedin/comments?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/linkedin/commentsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 13 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field LinkedIn doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    A LinkedIn post or article: a post's link as the share menu gives it (linkedin.com/posts/<author>_<slug>-activity-<id>-<code>), its feed or embed link (linkedin.com/feed/update/urn:li:activity:<id>, also urn:li:share: and urn:li:ugcPost:), a comment's link (the post's link with ?commentUrn=), an article's (linkedin.com/pulse/<slug>), on any country host, or a post's bare URN (urn:li:activity:<id>) or activity ID.

  • Write one parser

    LinkedIn, TikTok, Instagram and 10 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native comment ID (string; Reddit with its t1_ prefix).
post_idstring
ID of the post commented on (equals post.id).
parent_idstring
ID of the comment this replies to; null for top-level comments.
urlstring
Permalink, when the platform has one.
textstring
Comment body as plain text.
authorobject
The commenting account. An account the platform no longer names (a deleted account) has a null id and username and the platform's label as display_name (Reddit: [deleted]).
published_atstring
When the comment was posted, RFC 3339 UTC. Where the platform shows only a relative time ("3 weeks ago"), the latest time that label allows (the fetch time minus the stated amount), listed in approximate_fields.

What teams build with the LinkedIn Comments API.

  • Collect reactions to a company announcement

  • Find the people who comment on a creator's posts

  • Measure the conversation under a campaign post

  • Pull leads from comments on industry posts

Good to know before you build.

  • The first page is what LinkedIn shows logged-out visitors: its top comments, in its order, without replies. Later pages come from a data partner at the data partner's price, newest first, without the comments the first page had. Omit limit on those pages: a smaller one reads the same partner page again for each part, at that price each time.
  • like_count is exact on the first page and null on later pages, which the data partner reads without reactions. reply_count is null on the first page.
  • A reply follows its comment, with parent_id set to it. The data partner nests the first replies of a comment, so a comment can have more replies than follow it: reply_count has them all.
  • is_by_post_author compares the commenter with the post's author, and is null when the post's page didn't answer.
  • A deleted post and one its author limited to their connections both return not_found: LinkedIn answers them alike.

From 1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Public page page1 credit$0.75–$1.97
Data partner vendor5 credits$3.75–$9.83
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the LinkedIn Comments API.

More in the API reference.

Can I get every comment on a post?
Yes. Follow page.next_cursor: after the top comments LinkedIn shows, the data partner lists the rest, newest first.
Do I need the post's own link to list a comment's thread?
No. A comment's link (the post's link with ?commentUrn=) lists the comments of its post.
How much does the LinkedIn Comments API cost?
A page of up to 200 comments and replies costs 1 credit for public page results (meta.source = page) and 5 credits for data partner results (meta.source = vendor). Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 276 endpoints
Start for free Read the docs