Get comments on a LinkedIn post
harvestapi.linkedin.post.commentsGet comments of LinkedIn post by post URL.
- Price
- $0.004/callプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- 2026/09/10Verified working
GEThttps://toolswitch.dev/v1/tools/harvestapi.linkedin.post.comments?page=1&post=https%3A%2F%2Fwww.linkedin.com%2Fposts%2Fwilliamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50Preview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
Use only the declared query parameters, once each, without a request body. Results are provider-native: inspect element/elements and body status/error; HTTP 200 alone does not prove a hit. Empty results can still be charged.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
page | 整数 | 任意 | Page number for pagination. Default is 1 | 1 |
post | 文字列 | 必須 | URL of the LinkedIn post (required) | https://www.linkedin.com/posts/williamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50 |
sortBy | 文字列 | 任意 | Sort comments by field. Supported values: 'relevance', 'date' | |
paginationToken | 文字列 | 任意 | Required only if sortBy is 'relevance' and page > 1. Use this token from the previous page response. | |
- クエリパラメータ
page整数任意Page number for pagination. Default is 1
例:
1post文字列必須URL of the LinkedIn post (required)
例:
https://www.linkedin.com/posts/williamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50sortBy文字列任意Sort comments by field. Supported values: 'relevance', 'date'
paginationToken文字列任意Required only if sortBy is 'relevance' and page > 1. Use this token from the previous page response.
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X GET 'https://toolswitch.dev/v1/tools/harvestapi.linkedin.post.comments?page=1&post=https%3A%2F%2Fwww.linkedin.com%2Fposts%2Fwilliamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/harvestapi.linkedin.post.comments?page=1&post=https%3A%2F%2Fwww.linkedin.com%2Fposts%2Fwilliamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/harvestapi.linkedin.post.comments?page=1&post=https%3A%2F%2Fwww.linkedin.com%2Fposts%2Fwilliamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.004/call です。サービス料を含みます。