LinkedIn API

LinkedIn Post comments API

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

$2.90/1k req, pay per request, no subscription.

What the API returneditems[0]
{
"id": "7477792100112233445",
"commentary": "This lines up with what we saw rolling out usage-based billing last year. The hardest part was never the pricing model, it was getting the ledger to reconcile in real time.",
"url": "https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7477791740645564416%2C7477792100112233445%29",
"createdUtc": 1758153600,
"pinned": true,
"edited": false,
"actor": {...},
"engagement": {...}
}
Uptime
99.93%
30d · 5,938 calls
Requests
5,947
30d · weekly, last 12 wks
Response
2.3s
median · 30d

Try it

Get LinkedIn post comments in one 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.

This sample shows 19 of 20 fields. See every field

{
  "found": true,
  "data": {
    "items": [
      {
        "id": "7477792100112233445",
        "commentary": "This lines up with what we saw rolling out usage-based billing last year. The hardest part was never the pricing model, it was getting the ledger to reconcile in real time.",
        "url": "https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7477791740645564416%2C7477792100112233445%29",
        "createdUtc": 1758153600,
        "pinned": true,
        "edited": false,
        "actor": {
          "id": "ACoAAB99887766ccddeeff",
          "name": "Priya Nakamura",
          "type": "profile",
          "linkedinUrl": "https://www.linkedin.com/in/priya-nakamura-fin",
          "position": "Head of Finance Engineering at Northwind Financial",
          "image": "https://media.licdn.com/dms/image/C4E03AQZ9n2h/dp_200/0/167?e=175"
        },
        "engagement": {
          "likes": 214,
          "comments": 6
        }
      },
      {
        "id": "7477792200223344556",
        "commentary": "Great conversation. Curious whether the same approach to dunning applies once you are dealing with multi-currency subscriptions, that is where we keep hitting edge cases.",
        "url": "https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7477791740645564416%2C7477792200223344556%29",
        "createdUtc": 1758150000,
        "pinned": false,
        "edited": true,
        "actor": {
          "id": "ACoAAB88776655bbccddee",
          "name": "Marcus Delgado",
          "type": "profile",
          "linkedinUrl": "https://www.linkedin.com/in/marcus-delgado-payments",
          "position": "Product Manager, Billing at Cedarlane Health",
          "image": "https://media.licdn.com/dms/image/C4E03AQY8n2h/dp_200/0/167?e=175"
        },
        "engagement": {
          "likes": 58,
          "comments": 2
        }
      },
      {
        "id": "7477792300334455667",
        "commentary": "We are hosting a follow-up session on this exact topic next month. Would love to have some of the folks in this thread join the panel.",
        "url": "https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7477791740645564416%2C7477792300334455667%29",
        "createdUtc": 1758146400,
        "pinned": false,
        "edited": false,
        "actor": {
          "id": "urn:li:organization:4471203",
          "name": "Vantage Robotics",
          "type": "company",
          "linkedinUrl": "https://www.linkedin.com/company/vantage-robotics",
          "position": "Autonomous inspection drones",
          "image": "https://media.licdn.com/dms/image/C560BAQF7n2h/logo_200/0/167?e=175"
        },
        "engagement": {
          "likes": 19,
          "comments": 0
        }
      }
    ]
  }
}

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

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • 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.

  • limitinteger

    10

    Maximum number of comments to return.

  • postedLimitenum

    Only return comments posted within this window (default any).

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

actordata.items[].actor

The commenter (a profile or a company).

  • idstring

    ACoAAB99887766ccddeeff

    LinkedIn identifier of the commenter.

  • imagestring

    https://media.licdn.com/dms/image/C4E03AQZ9n2h/dp_200/0/167?e=175

    Profile picture URL of the commenter. Populated whenever the provider has data for the entity.

  • linkedinUrlstring

    https://www.linkedin.com/in/priya-nakamura-fin

    Canonical LinkedIn URL of the commenter. Populated whenever the provider has data for the entity.

  • namestring

    Priya Nakamura

    Display name of the commenter. Populated whenever the provider has data for the entity.

  • positionstring

    Head of Finance Engineering at Northwind Financial

    Commenter's headline or job title as displayed. Populated whenever the provider has data for the entity.

  • typestring

    profile

    Commenter kind, e.g. 'profile' or 'company'.

each itemdata.items[]

The post's comments. Populated whenever the provider has data for the entity.

  • commentarystring

    This lines up with what we saw rolling out usage-based billing last year. The hardest part was never the pricing model, it was getting the ledger to reconcile in real time.

    Full text of the comment. Populated whenever the provider has data for the entity.

  • createdUtcnumber

    1758153600

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.

  • editedboolean

    false

    Whether the comment has been edited.

  • idstring

    7477792100112233445

    Unique identifier of the comment. Populated whenever the provider has data for the entity.

  • pinnedboolean

    true

    Whether the comment is pinned on the post.

  • urlstring

    https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7477791740645564416%2C7477792100112233445%29

    Canonical permalink URL of the comment. Populated whenever the provider has data for the entity.

engagementdata.items[].engagement

Engagement metrics for the comment.

  • commentsinteger

    6

    Number of replies to the comment.

  • likesinteger

    214

    Number of likes on the comment.

top level
  • foundboolean

    true

    Whether comments were found for the post.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

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 4 sources and falls back automatically when one fails. It costs from $2.90 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.9% of LinkedIn post comments calls through AnyAPI succeeded, with a median response time of 2.3 seconds across 5,938 measured calls.

It costs from $2.90 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

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, 99.9% of LinkedIn post comments calls through AnyAPI succeeded, with a median response time of 2.3 seconds across 5,938 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 34 LinkedIn Post comments calls at $0.0029 each.

AnyAPI asks the next of its 4 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/linkedin.post_comments with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.