urlstring必填
Full URL of the LinkedIn post to list comments for.
https://api.sandbase.ai/v1/api/linkedin/post-commentsList comments on a LinkedIn post - full text, commenter name/URL/job title, timestamps, and engagement.
您的输出将显示在这里
完成输入,然后点击运行。
Returns the comments on a LinkedIn post, including comment text, commenter details, timestamps and like and reply counts. It needs the full URL of the post in the url parameter.
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ", "limit": 10}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full URL of the LinkedIn post to list comments for. |
limit | integer | No | Maximum number of comments to return. |
postedLimit | string | No | Only return comments posted within this window (default any). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"actor": {
"id": "ACoAABRFjvYBzGevlr0HJfL7UbMH7vjgln6iBRg",
"image": "https://media.licdn.com/dms/image/v2/D4D03AQFG38rxIus6KA/profile-displayphoto-cr…",
"linkedinUrl": "https://www.linkedin.com/in/trishalhjohnson",
"name": "Trisha Johnson",
"type": "profile"
},
"commentary": "BEWARE! SCAM ALERT! STRIPE IS FRAUDULENT!\n\nStripe allowed me to create an accoun…",
"createdUtc": 1786569458,
"edited": false,
"engagement": {
"comments": 0,
"likes": 0
},
"id": "7493415427058929664",
"pinned": false,
"url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7477791277128765440?commentU…"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].commentary | Text of the comment. Long comments may be shortened in this view. |
data.items[].actor.name | Display name of the person or page that wrote the comment. |
data.items[].actor.linkedinUrl | LinkedIn profile URL of the commenter. |
data.items[].actor.position | Headline or job title text of the commenter. Some commenters have no position. |
data.items[].actor.id / data.items[].actor.type | Internal LinkedIn ID of the commenter and the kind of actor, such as profile. |
data.items[].actor.image | URL of the commenter's profile photo. |
data.items[].createdUtc | Time the comment was posted, as a Unix timestamp in seconds. |
data.items[].engagement.likes / data.items[].engagement.comments | Number of likes on the comment and number of replies to it. |
data.items[].id | ID of the comment. |
data.items[].url | Link to the post that opens at this comment. |
data.items[].edited / data.items[].pinned | Whether the comment was edited and whether it is pinned. |
url.limit to cap the number of comments (1 to 100, default 100). Use postedLimit to keep only recent comments, for example 24h or week.id is a long numeric string. Keep it as a string.Billed at the actual cost of each call, about $0.0029 for the request above. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ",
"limit": 10
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
urlstring必填Full URL of the LinkedIn post to list comments for.
limitintegerMaximum number of comments to return.
默认值:100
postedLimitstringOnly return comments posted within this window (default any).
可选值:any, 24h, week, month, 3months, 6months, year
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
LinkedIn | 每次调用从 $0.0029 起 | JSON |
LinkedIn | 每次调用从 $0.0012 起 | JSON |
LinkedIn | 每次调用从 $0.0331 起 | JSON |
LinkedIn | 每次调用从 $0.0012 起 | JSON |
LinkedIn | 每次调用从 $0.00569 起 | JSON |
LinkedIn | 每次调用从 $0.0026 起 | JSON |
指南:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared
问题
向 https://api.sandbase.ai/v1/api/linkedin/post-comments 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
起价每次调用 $0.0029,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:url (string)。 可选:limit (integer) 和 postedLimit(any, 24h, week, month, 3months, 6months, year 之一)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。LinkedIn Post Comments 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 LinkedIn API 访问权限。