LinkedIn API

LinkedIn Post comments API

List comments on a LinkedIn post - full text, commenter name/URL/job title, timestamps, and engagement.

POST/v1/run/linkedin.post_comments
Uptime
100.00%
30d · 321 calls
Requests
323
30d · weekly, last 12 wks
Response
2.7s
median · 30d

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",
        "pinned": true,
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true
}
Response interface
interface LinkedinPostCommentsResponse {
  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;
      pinned?: boolean;
      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-16 · uptime and latency measured over 30d
POST /v1/run/linkedin.post_comments
curl -X POST https://api.getanyapi.com/v1/run/linkedin.post_comments \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":10,"url":"https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ"}'
FieldTypeExample value
Request body
urlstring"https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ"Full URL of the LinkedIn post to list comments for.
limitinteger10Maximum number of comments to return.
postedLimitenumOnly return comments posted within this window (default any).
Response
dataobjectThe post comments result, or null when not found.
data.itemsobject[]The post's comments. Populated whenever the provider has data for the entity.
data.items[].actorobjectThe commenter (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. 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[].pinnedbooleanWhether the comment is pinned on the post.
data.items[].urlstringCanonical permalink URL of the comment. Populated whenever the provider has data for the entity.
foundbooleanWhether comments were found for the post.
Price
Price per requestUSD$0.005
Price /1k reqUSD$5.00

FAQ

About the LinkedIn Post comments API

The AnyAPI LinkedIn Post comments API returns LinkedIn post comments data as normalized JSON from one POST call to /v1/run/linkedin.post_comments. List comments on a LinkedIn post - full text, commenter name/URL/job title, timestamps, and engagement. AnyAPI routes each request across 3 sources and falls back automatically when one fails. It costs from $5 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of LinkedIn post comments calls through AnyAPI succeeded, with a median response time of 2.7 seconds across 321 measured calls.

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 comments on a LinkedIn post - full text, commenter name/URL/job title, timestamps, 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.

Over the last 30 days, 100.0% of LinkedIn post comments calls through AnyAPI succeeded, with a median response time of 2.7 seconds across 321 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.