Get a member’s LinkedIn comments
harvestapi.linkedin.user.commentsGet comments of LinkedIn profile by post URL.
- 价格
- $0.004/call按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年9月10日实测可用
GEThttps://toolswitch.dev/v1/tools/harvestapi.linkedin.user.comments?page=1&profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fwilliamhgates预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
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. totalElements/totalPages may be zero even with results; follow paginationToken rather than assuming no data.
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
page | 整数 | 可选 | Page number for pagination. Default is 1 | 1 |
profile | 字符串 | 可选 | URL of the LinkedIn profile | https://www.linkedin.com/in/williamhgates |
profileId | 字符串 | 可选 | Profile ID of the LinkedIn profile. It's faster to search by ID | |
postedLimit | 字符串 | 可选 | Filter posts by maximum posted date. Supported values: '24h', 'week', 'month' | |
paginationToken | 字符串 | 可选 | Required for pages > 1. Use this token from the previous page response. | |
- 查询参数
page整数可选Page number for pagination. Default is 1
示例:
1profile字符串可选URL of the LinkedIn profile
示例:
https://www.linkedin.com/in/williamhgatesprofileId字符串可选Profile ID of the LinkedIn profile. It's faster to search by ID
postedLimit字符串可选Filter posts by maximum posted date. Supported values: '24h', 'week', 'month'
paginationToken字符串可选Required for pages > 1. Use this token from the previous page response.
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/harvestapi.linkedin.user.comments?page=1&profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fwilliamhgates' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/harvestapi.linkedin.user.comments?page=1&profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fwilliamhgates",
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.user.comments?page=1&profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fwilliamhgates", {
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.004/call 计费,已含服务费。