LinkedIn API

LinkedIn Comment replies API

List up to the 10 newest replies to a comment on a LinkedIn post - reply text, replier name/URL/job title, timestamps, and likes.

POST/v1/run/linkedin.comment_replies
Uptime
100.00%
30d · 1 call
Requests
1
30d
Response
2.4s
median · 30d

Pricing

LinkedIn Comment replies API pricing

Providers
Hedgehog1 served100.00% uptime2308ms p50$2.60/1k reqflat
You pay
$26.00
$2.60/1k req, only for what you use. No monthly plan.
Your first 38 requests are free with the $0.10 starting balance.

Try it

Get LinkedIn comment replies 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.
{
  "data": {
    "items": [
      {
        "actor": {
          "id": "a1b2c3d4",
          "image": "https://example.com/image.jpg",
          "linkedinUrl": "https://example.com/page",
          "name": "Example title",
          "position": "example",
          "type": "general"
        },
        "commentary": "example",
        "contentAnnotations": [
          {
            "hyperlink": "https://example.com/page",
            "length": 180,
            "profileFirstName": "Alex",
            "profileHandle": "alex_rivera",
            "profileId": "a1b2c3d4",
            "profileLastName": "Rivera",
            "profileUrl": "https://example.com/page",
            "start": 42,
            "textLink": "https://example.com/page",
            "type": "general"
          }
        ],
        "createdUtc": 12.5,
        "edited": true,
        "engagement": {
          "likes": 12500,
          "reactions": [
            {
              "count": null,
              "type": null
            }
          ]
        },
        "id": "a1b2c3d4",
        "postId": "a1b2c3d4",
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}

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-23 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • urlstring

    https://www.linkedin.com/feed/update/urn:li:activity:7510715600319467520?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7510715600319467520%2C7510749329649725442%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287510749329649725442%2Curn%3Ali%3Aactivity%3A7510715600319467520%29

    LinkedIn comment URL, as returned in the url field of linkedin.post_comments or copied with "Copy link to comment" (a /feed/update/... link carrying commentUrn and dashCommentUrn). A reply's URL returns the thread it belongs to. A post URL without dashCommentUrn is refused as invalid input, with no charge.

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 person or company that replied.

  • idstring

    LinkedIn identifier of the replier.

  • imagestring

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

  • linkedinUrlstring

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

  • namestring

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

  • positionstring

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

  • typestring

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

each itemdata.items[]

Up to the 10 newest replies to the comment, newest first. Populated whenever the provider has data for the entity.

  • commentarystring

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

  • createdUtcnumber

    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

    Whether the reply has been edited.

  • idstring

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

  • postIdstring

    Identifier of the post the comment belongs to (e.g. activity:7510715600319467520).

  • urlstring

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

each contentAnnotationdata.items[].contentAnnotations[]

Structured mentions and links embedded in the reply text.

  • hyperlinkstring

    Canonical hyperlink attached to the annotation, when present.

  • lengthinteger

    Length of the annotated text span.

  • profileFirstNamestring

    First name of a mentioned profile, when present.

  • profileHandlestring

    Public LinkedIn handle of a mentioned profile, when present.

  • profileIdstring

    LinkedIn identifier of a mentioned profile, when present.

  • profileLastNamestring

    Last name of a mentioned profile, when present.

  • profileUrlstring

    Canonical LinkedIn URL of a mentioned profile, when present.

  • startinteger

    Zero-based start offset of the annotation in the reply text.

  • textLinkstring

    Canonical text link attached to the annotation, when present.

  • typestring

    Kind of content annotation.

engagementdata.items[].engagement

Engagement metrics for the reply.

  • likesinteger

    Number of reactions on the reply.

each reactiondata.items[].engagement.reactions[]

Per-reaction-type breakdown of the reactions on the reply.

  • countinteger

    Number of reactions of this type.

  • typestring

    Reaction type, e.g. LIKE, PRAISE, EMPATHY, INTEREST, APPRECIATION.

top level
  • foundboolean

    Whether the comment was found with at least one reply.

  • 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 Comment replies API

The AnyAPI LinkedIn Comment replies API returns LinkedIn comment replies data as normalized JSON from one POST call to /v1/run/linkedin.comment_replies. List up to the 10 newest replies to a comment on a LinkedIn post - reply text, replier name/URL/job title, timestamps, and likes. AnyAPI returns one normalized schema whichever source serves it. It costs from $2.60 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of LinkedIn comment replies calls through AnyAPI succeeded, with a median response time of 2.4 seconds across 1 measured calls.

It costs from $2.60 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 up to the 10 newest replies to a comment on a LinkedIn post - reply text, replier name/URL/job title, timestamps, and likes. 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 comment replies calls through AnyAPI succeeded, with a median response time of 2.4 seconds across 1 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 38 LinkedIn Comment replies calls at $0.0026 each.

Send a POST request to https://api.getanyapi.com/v1/run/linkedin.comment_replies 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.