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 Post Commentsこの API LinkedIn | 1回あたり $0.0029 から | JSON |
LinkedIn | 1回あたり $0.0012 から | JSON |
LinkedIn | 1回あたり $0.0331 から | JSON |
LinkedIn | 1回あたり $0.0012 から | JSON |
LinkedIn | 1回あたり $0.00569 から | JSON |
LinkedIn | 1回あたり $0.0026 から | JSON |
ガイド:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/linkedin/post-comments に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $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 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。LinkedIn の API アクセスを別途申請する必要はありません。