LinkedIn post comments API

Get the newest 20 comments on a LinkedIn post, by the post's link, no further pages: text, time, likes, replies, whether pinned or edited, and the commenter's name, handle, picture and profile headline. Up to 20 items a call; $0.0050 per call. Errors and timeouts are not charged.

GEThttps://api.dataxapi.com/v1/linkedin/posts/comments/list
Also known aslinkedin commentscomments on a linkedin postlinkedin post repliesIn Chinese: LinkedIn 帖子评论 API
Price$0.0050/ call · Errors and timeouts are not charged
Returns20 a pageeverything in one answer, no paging
When a call failsRetried for youon the same route, or a backup route; never charged

Try it

Change a value and the request on the right follows.
Run · $0.0050

Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 20 calls.

The first 3 rows of a response recorded 2026-12-02 08:22 UTC.
FieldValue
published_at2026-12-02 08:22 UTC
metrics.likes0
metrics.comments0
curl -G "https://api.dataxapi.com/v1/linkedin/posts/comments/list" \
  --data-urlencode "url=https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
  "code": "ok",
  "request_id": "b934334a-d641-4ace-b761-e8b48d995850",
  "data": {
    "items": [
      {
        "id": "7054631916621257061",
        "url": "https://www.linkedin.com/feed/update/urn:li:activity:7054631916621257061",
        "text": "What lens did you use for this?",
        "published_at": "2026-12-02T08:22:52.000Z",
        "author": {
          "id": "13777641",
          "username": "hannah.w.photo",
          "name": "Hannah Weiss",
          "avatar_url": "https://media.licdn.com/dms/image/v2/n3HX28Zm_U4NvHJr/profile-displayphoto-shrink_100_100/0/"
        },
        "metrics": { "likes": 0, "comments": 0 },
        "post_id": "7050529358070812472"
      },
      // … 2 more
    ]
  },
  "page": {
    "next_cursor": null,
    "cursor_expires_at": null,
    "has_more": false,
    "returned": 3
  },
  "warnings": [],
  "meta": {
    "capability": "linkedin.posts.comments.list",
    "result_status": "complete",
    "fetched_at": "2026-12-02T08:22:59.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": { "parent_id": "capability", "root_id": "capability" },
    "billing": {
      "amount": "0.005",
      "currency": "USD",
      "balance_after": "9.995"
    }
  }
}

From a response recorded 2026-12-02 08:22 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.

Size as sent: 2.4 KB in the standard view (1.9 KB compact, 2.9 KB full).

This example as a JSON file

curl -G "https://api.dataxapi.com/v1/linkedin/posts/comments/list" \
  --data-urlencode "url=https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
# pip install dataxapi
from dataxapi import DataXAPI

dx = DataXAPI()  # reads DATAXAPI_API_KEY
result = dx.linkedin.posts.comments.list(url="https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH")
print(result["data"]["items"])
// npm i @dataxapi/sdk
import { DataXAPI } from "@dataxapi/sdk";

const dx = new DataXAPI(); // reads DATAXAPI_API_KEY
const result = await dx.linkedin.posts.comments.list({ url: "https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH" });
console.log(result.data.items);
dataxapi call linkedin.posts.comments.list url=https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH
{
  "mcpServers": {
    "dataxapi": {
      "type": "http",
      "url": "https://api.dataxapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${DATAXAPI_API_KEY}"
      }
    }
  }
}

Add this to your MCP client, then ask your agent to call linkedin.posts.comments.list.

Parameters

urltextrequired

Link to the post, the kind that starts linkedin.com/posts/ and carries its activity number. Example: https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH. Full link: https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH.

viewtext

How much of each item to return. All three cost the same. Values: compact, standard (default), full.

fieldslist of text

Return only these fields. Each by its path, such as author.name.

Known limits

Returned fields

data.items is a list of comment objects. Stable: fields are only ever added.

idtextcompact

ID

urllinkcompact

Link that opens the comment

texttextcompact

Text

Long text: the compact view keeps the first 500 characters and says so in warnings.

published_attimecompact

When it was posted

authorobjectcompact

Commenter

author.idtextcompact

Commenter's account ID

On this platform: The commenter's member ID on LinkedIn (starting ACoAA); a company's number for a company

Show all 21 fields →
author.usernametextcompact

Commenter's handle

author.nametextcompact

Commenter's display name

author.avatar_urllinkstandard

Commenter's avatar

metricsobjectcompact

Engagement counts

metrics.likesintegercompact

Likes

metrics.commentsintegercompact

Replies

post_idtextcompact

ID of the post it is under

On this platform: The post's activity number

parent_idtextcompactNot provided here

ID of the comment it replies to directly; null for a top-level comment

root_idtextcompactNot provided here

ID of the top-level comment of its thread; null for a top-level comment

ext.author_headlinetextfull

The line under the commenter's name on their profile (a role or a description), as written; null for a company

ext.pinnedyes/nofull

Whether it is pinned

ext.editedyes/nofull

Whether it was edited

approximatelist of objectcompact

Which numbers of this item are approximate or lower bounds; absent when all are exact

approximate[].fieldtextcompact

Path of the field, such as metrics.views

approximate[].kindtextcompact

Approximate, or a lower boundapproximatelower_bound

Typical size of one item: compact 493 B, standard 649 B, full 832 B (measured on the response recorded 2026-12-02 08:22 UTC).

What this endpoint cannot give

parent_idNot provided here
root_idNot provided here

When you are charged

A result with data$0.0050, once per call
Invalid parameters, a failure or a timeoutnot charged
CaseCharged
The most one call can cost$0.0050 (send X-Max-Price to refuse anything above your own limit)

Prices as read 2026-12-05 10:35 UTC, under price book 66, in effect since 2026-12-04 18:35 UTC; the Playground reads the price in force before a run.

If the object does not exist

A post that does not exist is not answered with a 404: it returns an empty result, which cannot be told from a post without comments.

Errors

What this endpoint can answer with; codes all endpoints share are on the full list.

HTTPCodeMeaningCharged
400invalid_paramsA parameter is invalidRetry: After a fixNo
402insufficient_balanceThe balance is too lowRetry: After a fixNo
429uncharged_cost_limitToo many of this account's calls today returned nothing and were not charged; endpoints of this kind can be called again tomorrow (UTC)Retry: YesNo
502upstream_failedNo result came back this time and nothing was charged; retry shortlyRetry: YesNo
504timeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNo

All error codes →

Questions

How much does the LinkedIn post comments API cost?

$0.0050 per call. The most one call can cost is $0.0050.

When am I not charged?

Errors and timeouts are not charged.

How many items does one call return, and how do I get the next page?

20 items a page. The page size is the platform's; limit is not accepted. Everything comes in one page; no cursor is issued.

What happens if the object does not exist?

A post that does not exist is not answered with a 404: it returns an empty result, which cannot be told from a post without comments.

30-day availability

3 days are on record. The share is written here once 14 days are.

A failed call is not charged.

Every endpoint's state now, and each incident with whether anyone was charged: the status page →

All 7 LinkedIn endpoints

LinkedIn endpoints

Use it in your AI

Copy this prompt

Your API key is built in, so there is nothing to configure.

Read https://dataxapi.com/agents.md and set up DataXAPI in this agent. My API key is dx_…; use it for every DataXAPI call.
Sign in to copy it with your key

No account yet? Sign-up takes an email and no card, and a failed call is never charged.

then paste

Paste it into your agent

It reads the page the prompt points to and connects itself.

Your agent
Read https://dataxapi.com/agents.md and set up DataXAPI in this agent. My API key is dx_••••; use it for every DataXAPI call.
DataXAPI connected · 5 tools ready
now try it

Now ask something

Use one of these, or your own words.

Read https://dataxapi.com/apis/linkedin/posts/comments/list.md and help me use the DataXAPI endpoint linkedin.posts.comments.list (LinkedIn post comments).
Prefer to set it up by hand?
dataxapi setupgives the agents on your machine (Claude Code, Codex, Cursor) the DataXAPI MCP server and the base skill. The key is read from DATAXAPI_API_KEY; none is written into a file.MCP server: https://api.dataxapi.com/mcp. The entry for your client is under MCP in the request examples of this page; then ask your agent to call linkedin.posts.comments.list.Other clients →
Ask with this pageSends the Markdown version
Brief for an AIEverything needed to call it, as text
Show the text
Use the DataXAPI endpoint linkedin.posts.comments.list (LinkedIn post comments). Get the newest 20 comments on a LinkedIn post, by the post's link, no further pages: text, time, likes, replies, whether pinned or edited, and the commenter's name, handle, picture and profile headline.
Call GET https://api.dataxapi.com/v1/linkedin/posts/comments/list with the header "Authorization: Bearer $DATAXAPI_API_KEY". Read the key from the environment variable DATAXAPI_API_KEY; never write it into code.
Parameters:
- url (required): Link to the post, the kind that starts linkedin.com/posts/ and carries its activity number. Example: https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH. Full link: https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH.
- view: How much of each item to return. All three cost the same. Values: compact, standard (default), full.
- fields: Return only these fields. Each by its path, such as author.name.
Price: $0.0050 per call. Errors and timeouts are not charged.
The answer is JSON: data.items holds comment; meta.billing.amount is what this call was charged.
Example:
curl -G "https://api.dataxapi.com/v1/linkedin/posts/comments/list" \
  --data-urlencode "url=https://www.linkedin.com/posts/satyanadella_climbing-from-a-base-model-to-the-frontier-activity-7530839822152708096-r9PH" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
Full reference in Markdown: https://dataxapi.com/apis/linkedin/posts/comments/list.md

Names and identifiers

In Chinese
LinkedIn 帖子评论 API
Endpoint ID
linkedin.posts.comments.list
Endpoint
GET /v1/linkedin/posts/comments/list
Last checked 2026-12-05 10:35 UTC.View the Markdown versionopenapi.jsonllms.txt

Start with one key.

254 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.

Start free