LinkedIn API

LinkedIn Profile comments API

List the comments a LinkedIn member has left on other people's posts - the comment text, its permalink and timestamp, plus the post it was left on and that post's author and engagement.

POST/v1/run/linkedin.profile_comments
Requests
-
30d

Pricing

One price, in dollars

Providers
Hedgehog- served- uptime- p50$5.00/1k reqflat

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "items": [
      {
        "actor": {
          "image": "https://example.com/image.jpg",
          "linkedinUrl": "https://example.com/page",
          "name": "Example title",
          "position": "example",
          "type": "general"
        },
        "commentary": "example",
        "createdUtc": 12.5,
        "edited": true,
        "engagement": {
          "comments": 12500,
          "likes": 12500
        },
        "id": "a1b2c3d4",
        "post": {
          "author": {
            "headline": "Example title",
            "image": "https://example.com/image.jpg",
            "name": "Example title",
            "profileUrl": "https://example.com/page",
            "publicIdentifier": "a1b2c3d4"
          },
          "engagement": {
            "comments": 12500,
            "reactions": 42,
            "reposts": 248
          },
          "id": "a1b2c3d4",
          "postedUtc": 248,
          "text": "A short example description of this item.",
          "url": "https://example.com/page"
        },
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true
}
Response interface
interface LinkedinProfileCommentsResponse {
  data: {
    items: {
      actor?: {
        image?: string;
        linkedinUrl?: string;
        name?: string;
        position?: string;
        type?: string;
      };
      commentary: string;
      createdUtc?: number;
      edited?: boolean;
      engagement?: {
        comments?: number;
        likes?: number;
      };
      id: string;
      post?: {
        author?: {
          headline?: string;
          image?: string;
          name?: string;
          profileUrl?: string;
          publicIdentifier?: string;
        };
        engagement?: {
          comments?: number;
          reactions?: number;
          reposts?: number;
        };
        id?: string;
        postedUtc?: number;
        text?: string;
        url?: string;
      };
      url?: string;
    }[];
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-13 · uptime and latency measured over 30d
POST /v1/run/linkedin.profile_comments
curl -X POST https://api.getanyapi.com/v1/run/linkedin.profile_comments \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":10,"url":"https://www.linkedin.com/in/jeffweiner08"}'
FieldTypeExample value
Request body
urlstring"https://www.linkedin.com/in/jeffweiner08"Full URL of the LinkedIn member profile whose comments on other people's posts should be listed.
limitinteger10Maximum number of comments to return.
postedLimitenumOnly return comments posted within this window (default any).
Response
dataobjectThe profile comments result, or null when not found.
data.itemsobject[]Comments this member left on other people's posts, newest first, each with the post it was left on. Populated whenever the provider has data for the entity.
data.items[].actorobjectThe member who left the comment (a profile or a company).
data.items[].actor.imagestringProfile picture URL of the commenter. Populated whenever the provider has data for the entity.
data.items[].actor.linkedinUrlstringCanonical LinkedIn URL of the commenter. Populated whenever the provider has data for the entity.
data.items[].actor.namestringDisplay name of the commenter. Populated whenever the provider has data for the entity.
data.items[].actor.positionstringCommenter's headline or job title as displayed. Populated whenever the provider has data for the entity.
data.items[].actor.typestringCommenter kind, e.g. 'profile' or 'company'.
data.items[].commentarystringFull text of the comment the member left. Populated whenever the provider has data for the entity.
data.items[].createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
data.items[].editedbooleanWhether the comment has been edited.
data.items[].engagementobjectEngagement metrics for the comment.
data.items[].engagement.commentsintegerNumber of replies to the comment.
data.items[].engagement.likesintegerNumber of likes on the comment.
data.items[].idstringUnique identifier of the comment. Populated whenever the provider has data for the entity.
data.items[].postobjectThe post the comment was left on, so the comment can be read in context. Populated whenever the provider has data for the entity.
data.items[].post.authorobjectAuthor of the post that was commented on.
data.items[].post.author.headlinestringPublic headline or company follower summary for the post author.
data.items[].post.author.imagestringProfile or company image URL of the post author. Populated whenever the provider has data for the entity.
data.items[].post.author.namestringDisplay name of the post author. Populated whenever the provider has data for the entity.
data.items[].post.author.profileUrlstringCanonical LinkedIn profile or company URL of the post author. Populated whenever the provider has data for the entity.
data.items[].post.author.publicIdentifierstringLinkedIn public identifier (vanity slug) of the post author, for example "williamhgates". Stable across lanes, unlike the raw id.
data.items[].post.engagementobjectPublic engagement totals on the post that was commented on.
data.items[].post.engagement.commentsintegerTotal comment count on the post.
data.items[].post.engagement.reactionsintegerTotal reaction count on the post.
data.items[].post.engagement.repostsintegerTotal repost or share count on the post.
data.items[].post.idstringUnique identifier of the LinkedIn post that was commented on.
data.items[].post.postedUtcnumberUTC epoch timestamp in seconds (Unix time) when the post was published. Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
data.items[].post.textstringText content of the post that was commented on. Empty when the post carries no commentary of its own, such as a bare reshare or an image-only post. Populated whenever the provider has data for the entity.
data.items[].post.urlstringCanonical LinkedIn URL of the post that was commented on. Populated whenever the provider has data for the entity.
data.items[].urlstringCanonical permalink URL of the comment. Populated whenever the provider has data for the entity.
foundbooleanWhether comments by this member were found.
Price
Price per requestUSD$0.005
Price /1k reqUSD$5.00

FAQ

About the LinkedIn Profile comments API

The AnyAPI LinkedIn Profile comments API returns LinkedIn profile comments data as normalized JSON from one POST call to /v1/run/linkedin.profile_comments. List the comments a LinkedIn member has left on other people's posts - the comment text, its permalink and timestamp, plus the post it was left on and that post's author and engagement. AnyAPI returns one normalized schema whichever source serves it. It costs from $5 per 1,000 requests, in US dollars with no subscription and no monthly minimum.

It costs from $5 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

List the comments a LinkedIn member has left on other people's posts - the comment text, its permalink and timestamp, plus the post it was left on and that post's author and engagement. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.