LinkedIn 帖子详情 API
LinkedIn 帖子详情 API:输入参数、完整枚举、输出字段和真实响应示例。
打开产品页并测试
POST https://api.goanyapi.com/api/v1/linkedin/post/detail请求与输入参数
同步 POST JSON 查询;没有 Path 或 Query 参数,不生成异步任务。
| 参数 | 位置 | 类型 | 必填 | 默认值 | 范围与说明 |
|---|---|---|---|---|---|
| Authorization | Header | string | 是 | — | Bearer YOUR_API_KEY |
| Content-Type | Header | string | 是 | application/json | application/json |
| url | JSON body | string | 是 | — | 完整 HTTPS 资源链接;优先于资源 ID |
条件必填规则(required 表示必须提供的字段,anyOf 至少满足一组,oneOf 仅满足一组,allOf 全部满足):
{
"required": [
"url"
]
}请求示例
POST /api/v1/linkedin/post/detail
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"url": "https://www.linkedin.com/posts/karin-dodis_web-data-collection-for-businesses-bright-activity-7176601589682434049-Aakz"
}输出字段
| 字段路径 | 类型 | 含义 |
|---|---|---|
| code | string | 成功为 ok,失败为公开错误码 |
| message | string | 请求状态说明 |
| data.result | object / null | 业务结果;保留实际空值和字段缺失 |
| data.creditsUsed | integer | 本次实际扣费;空结果与失败不扣费 |
| data.remainingCredits | number | 结算后的账户积分余额 |
| data.result.url | string | 公开资源链接 |
| data.result.id | string | 记录标识 |
| data.result.user_id | string | user_id:实际公开业务字段,可为空或缺失 |
| data.result.author | object | 公开作者资料 |
| data.result.author.name | string | 显示名称 |
| data.result.author.image | object | image:实际公开业务字段,可为空或缺失 |
| data.result.author.image.url | string | 公开资源链接 |
| data.result.author.image.@type | string | @type:实际公开业务字段,可为空或缺失 |
| data.result.author.url | string | 公开资源链接 |
| data.result.author.@type | string | @type:实际公开业务字段,可为空或缺失 |
| data.result.author.interactionStatistic | object | interactionStatistic:实际公开业务字段,可为空或缺失 |
| data.result.author.interactionStatistic.@type | string | @type:实际公开业务字段,可为空或缺失 |
| data.result.author.interactionStatistic.interactionType | string | interactionType:实际公开业务字段,可为空或缺失 |
| data.result.author.interactionStatistic.userInteractionCount | integer | userInteractionCount:实际公开业务字段,可为空或缺失 |
| data.result.title | string | 标题 |
| data.result.post_text | string | post_text:实际公开业务字段,可为空或缺失 |
| data.result.date_posted | string | date_posted:实际公开业务字段,可为空或缺失 |
| data.result.num_likes | integer | num_likes:实际公开业务字段,可为空或缺失 |
| data.result.num_comments | integer | num_comments:实际公开业务字段,可为空或缺失 |
| data.result.top_visible_comments | array | top_visible_comments:实际公开业务字段,可为空或缺失 |
| data.result.top_visible_comments[].@type | string | @type:实际公开业务字段,可为空或缺失 |
| data.result.top_visible_comments[].datePublished | string | datePublished:实际公开业务字段,可为空或缺失 |
| data.result.top_visible_comments[].text | string | 文本内容 |
| data.result.top_visible_comments[].author | object | 公开作者资料 |
| data.result.top_visible_comments[].author.@type | string | @type:实际公开业务字段,可为空或缺失 |
| data.result.top_visible_comments[].author.name | string | 显示名称 |
| data.result.top_visible_comments[].interactionStatistic | object | interactionStatistic:实际公开业务字段,可为空或缺失 |
| data.result.top_visible_comments[].interactionStatistic.@type | string | @type:实际公开业务字段,可为空或缺失 |
| data.result.top_visible_comments[].interactionStatistic.interactionType | string | interactionType:实际公开业务字段,可为空或缺失 |
| data.result.top_visible_comments[].interactionStatistic.userInteractionCount | integer | userInteractionCount:实际公开业务字段,可为空或缺失 |
| data.result.images | array | images:实际公开业务字段,可为空或缺失 |
真实响应示例
采集时间:2026-11-25T10:22:13Z。以下为真实公开响应的结构节选,仅省略 data.creditsUsed 和 data.remainingCredits,价格与余额以实际请求为准。
{
"code": "ok",
"message": "ok",
"data": {
"result": {
"url": "https://www.linkedin.com/posts/karin-dodis_web-data-collection-for-businesses-bright-activity-7176601589682434049-Aakz",
"id": "7176601589682434049",
"user_id": "karin-dodis",
"author": {
"name": "Karin Dodis",
"image": {
"url": "https://media.licdn.com/dms/image/v2/C4D03AQHQ6z9XfK01gQ/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1652722173913?e=2147483647&v=beta&t=CZeDNm7vC2NbnykEF61o5THF4z6iLYLH8SBEuiKiX-U",
"@type": "ImageObject"
},
"url": "https://il.linkedin.com/in/karin-dodis",
"@type": "Person",
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "http://schema.org/FollowAction",
"userInteractionCount": 4321
}
},
"title": "Hey data enthusiasts,",
"post_text": "Hey data enthusiasts,\nBright Data has an awesome collection of free datasets waiting for you to dive into. Whether you're a seasoned analyst or just starting out, these datasets are a goldmine of potential for your projects. From Wikipedia to ESPN and beyond, there's something here for everyone. Use them to fuel your next big idea, hone your skills, and add some serious value to your resume",
"date_posted": "2024-03-21T15:32:33.770Z",
"num_likes": 12,
"num_comments": 6,
"top_visible_comments": [
{
"@type": "Comment",
"datePublished": "2025-10-02T01:07:30.330Z",
"text": "Karin Dodis These datasets sound amazing! Excited to explore and see what I can create.",
"author": {
"@type": "Person",
"name": "Ido Arieli Noga"
},
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "http://schema.org/LikeAction",
"userInteractionCount": 0
}
},
{
"@type": "Comment",
"datePublished": "2024-12-28T09:27:24.118Z",
"text": "תודה רבה לך על השיתוף.\n",
"author": {
"@type": "Person",
"name": "Adam Avnon"
},
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "http://schema.org/LikeAction",
"userInteractionCount": 0
}
},
{
"@type": "Comment",
"datePublished": "2024-06-19T14:18:08.671Z",
"text": "תודה רבה על השיתוף!\nשיתפתי את הפוסט שלך בקבוצה בווצאפ:\nhttps://chat.whatsapp.com/HWWA9nLQYhW9DH97x227hJ",
"author": {
"@type": "Person",
"name": "Daniel Davidov"
},
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "http://schema.org/LikeAction",
"userInteractionCount": 0
}
},
{
"@type": "Comment",
"datePublished": "2024-05-27T05:27:54.326Z",
"text": "תודה רבה לך על השיתוף🙂\nאני מאוד אשמח לראות אותך בקבוצה שלי:\nhttps://chat.whatsapp.com/DsQ1OBdSeGsBd6rKgnnE1L",
"author": {
"@type": "Person",
"name": "Netanel Stern"
},
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "http://schema.org/LikeAction",
"userInteractionCount": 0
}
}
],
"images": [
"https://media.licdn.com/dms/image/sync/v2/C4E27AQFZ0sMtmMfkgQ/articleshare-proxy-image-offsite-ads_627_1200/articleshare-proxy-image-offsite-ads_627_1200/0/1771943236890?e=2147483647&v=beta&t=jSGIrBh4j7dDSZFZs2fATfzBmkdVo-x2aCxDzZVJ-SI"
]
}
}
}分页与计费
本接口不支持游标分页,不得自行构造下一页。
…
仅有有效业务数据的成功请求按数据库当前配置扣费。空结果与失败不扣费,每页独立结算。可选字段为空不代表整条结果为空;缺失、null、空字符串、空数组按实际返回。示例中的媒体链接和游标可能过期,正式使用时重新查询。
状态码
| HTTP | 含义 |
|---|---|
| 200 | 成功,结果可能为空 |
| 400 | 参数或 JSON 不合法 |
| 401 | 鉴权缺失或无效 |
| 402 | 积分不足 |
| 429 | 请求过于频繁 |
| 502 | 请求未能完成 |
| 503 | 接口或计费尚未配置 |