Platforms/LinkedIn/Post comments

LinkedIn Comments API

GET · 1 credit

Send a post's id or link, and get its top comments: up to 10, as its page shows them logged out.

GET /v1/linkedin/posts/comments

Example request

const url = `${process.env.API_URL}/v1/linkedin/posts/comments?post_id=7449849039522545666`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
post_idNoA post's id: the digits after urn:li:activity: in its link, or after activity- in a /posts/ link. Give post_id or url.
urlNoA post's or article's link: linkedin.com/posts/..., /feed/update/urn:li:activity:<id> or /pulse/.... Give post_id or url.

Example response

{
  "data": [
    {
      "id": "7449851234567890123",
      "text": "Great to see programs like this open to people from every background.",
      "author": "Sam Okafor",
      "author_url": "https://www.linkedin.com/in/sam-okafor-6f7g8h",
      "author_picture": "https://media.licdn.com/dms/image/commenter-photo.jpg",
      "likes": 42,
      "created_at": "2026-11-28T16:10:00Z"
    }
  ],
  "page": null,
  "meta": {
    "platform": "linkedin",
    "endpoint": "post_comments",
    "params": {
      "post_id": "7449849039522545666"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

How many comments can I get?

Up to 10: the top comments the post's page shows a logged-out visitor. There is no next page.

Does it include replies?

No. It lists the top comments on the post.

Can a company comment?

Yes. author is the name of a member or a company.

Works with

On other platforms

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required