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.
Try it
Change a value and the request on the right follows.Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 20 calls.
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).
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
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.
How much of each item to return. All three cost the same. Values: compact, standard (default), full.
Return only these fields. Each by its path, such as author.name.
Known limits
- 20 items a page. The page size is the platform's;
limitis not accepted. - Everything comes in one page; no cursor is issued.
- 2 fields of the object are not available from this endpoint
Returned fields
data.items is a list of comment objects. Stable: fields are only ever added.
ID
Link that opens the comment
Text
Long text: the compact view keeps the first 500 characters and says so in warnings.
When it was posted
Commenter
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 →
Commenter's handle
Commenter's display name
Commenter's avatar
Engagement counts
Likes
Replies
ID of the post it is under
On this platform: The post's activity number
ID of the comment it replies to directly; null for a top-level comment
ID of the top-level comment of its thread; null for a top-level comment
The line under the commenter's name on their profile (a role or a description), as written; null for a company
Whether it is pinned
Whether it was edited
Which numbers of this item are approximate or lower bounds; absent when all are exact
Path of the field, such as metrics.views
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 hereroot_idNot provided hereWhen you are charged
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.
invalid_paramsA parameter is invalidRetry: After a fixNoinsufficient_balanceThe balance is too lowRetry: After a fixNouncharged_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: YesNoupstream_failedNo result came back this time and nothing was charged; retry shortlyRetry: YesNotimeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNoQuestions
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
Use it in your AI
Copy this prompt
Your API key is built in, so there is nothing to configure.
No account yet? Sign-up takes an email and no card, and a failed call is never charged.
Paste it into your agent
It reads the page the prompt points to and connects itself.
Now ask something
Use one of these, or your own words.
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 →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
Start with one key.
254 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.