LinkedIn API

LinkedIn 主页帖子(完整版) API

获取公开 LinkedIn 主页的近期帖子,附带补全的作者、互动、文章、新闻通讯、媒体、标注、转发和社交动态详情。

US$5.00/千次请求,按请求付费,无需订阅。

inBill Gates | Posts | LinkedIn
linkedin.com/in/williamhgates/recent-activity/all/

Bill Gates's Activity

Posts

PostsCommentsImagesVideosDocuments

Bill Gates

Co-chair, Bill & Melinda Gates Foundation

Sep 20, 2025·

New case data out of Mozambique this week: districts that switched to the dual active ingredient bed nets two years ago are reporting a 42% drop in confirmed cases.

9,840288 comments · 155 reposts
LikeCommentRepostSend
API 返回的内容items[0]
{
"id": "urn:li:activity:7481009887654321098",
"url": "https://www.linkedin.com/posts/williamhgates_malaria-eradication-progress-activity-7481009887654321098-pT4n",
"text": "New case data out of Mozambique this week: districts that switched to the dual active ingredient bed nets two years ago are reporting a 42% drop in confirmed cases.",
"createdUtc": 1758384000,
"type": "ORIGINAL",
"author": {...},
"publicationUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7481009887654321098",
"engagement": {...},
... 还有 36 个字段
}
可用率
99.98%
30d · 16,745 次调用
请求数
16,798
30d · 按周,近 12 周
响应时间
2.6s
中位数 · 30d

试一试

一个请求获取 LinkedIn 主页帖子(完整版)

requireFieldsarray
可选;省略时路由不变,由最便宜的数据源处理。列出本次请求必须能返回的输出字段,例如 `nextCursor`,请求就只会由能返回全部这些字段的数据源处理。未列出的字段,只要处理请求的数据源有,仍会照常返回。这可能提高你的价格:最便宜的数据源无法返回某个列出的字段时,会改由更贵的数据源处理,并按它的价格报价和扣费。如果某个主页确实没有某个列出的字段,该字段仍可能缺失。如果列出的字段组合没有任何单一数据源能同时返回,请求会作为无效输入被拒绝,不扣费。在分页遍历中,它只作用于第一页;后续页面沿用该页选定的数据源,按当时的报价计费。
打开于
获取免费密钥
示例响应
免费运行只返回前 3 条结果。为密钥充值即可获得完整响应。

这个示例展示了 98 个字段中的 51 个。查看全部字段

{
  "found": true,
  "data": {
    "items": [
      {
        "id": "urn:li:activity:7481009887654321098",
        "url": "https://www.linkedin.com/posts/williamhgates_malaria-eradication-progress-activity-7481009887654321098-pT4n",
        "text": "New case data out of Mozambique this week: districts that switched to the dual active ingredient bed nets two years ago are reporting a 42% drop in confirmed cases.",
        "createdUtc": 1758384000,
        "type": "ORIGINAL",
        "author": {
          "id": "ACoAAAC8x1nRkWpJ2tYq7vLh3oB5mC9zEjKfA0d",
          "handle": "williamhgates",
          "type": "profile",
          "name": "Bill Gates",
          "profileUrl": "https://www.linkedin.com/in/williamhgates/",
          "headline": "Co-chair, Bill & Melinda Gates Foundation",
          "image": "https://media.licdn.com/dms/image/v2/D4E03AQEz9pWkLm2vTr/profile-displayphoto-shrink_400_400/bill-gates.jpg",
          "imageWidth": 400,
          "imageHeight": 400
        },
        "publicationUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7481009887654321098",
        "engagement": {
          "reactions": 9840,
          "comments": 288,
          "reposts": 155,
          "breakdown": [
            {
              "type": "LIKE",
              "count": 7600
            },
            {
              "type": "APPRECIATION",
              "count": 1800
            },
            {
              "type": "INTEREST",
              "count": 440
            }
          ]
        },
        "socialContent": {
          "hideCommentsCount": false,
          "hideReactionsCount": false,
          "hideSocialActivityCounts": false,
          "hideShareAction": false,
          "hideSendAction": false,
          "hideRepostsCount": false,
          "hideViewsCount": false,
          "hideReactAction": false,
          "hideCommentAction": false,
          "showContributionExperience": false,
          "showSocialDetail": true,
          "shareUrl": "https://www.linkedin.com/posts/williamhgates_malaria-eradication-progress-activity-7481009887654321098-pT4n"
        }
      },
      {
        "id": "urn:li:activity:7482310098765432101",
        "url": "https://www.linkedin.com/posts/williamhgates_the-next-decade-of-clean-energy-activity-7482310098765432101-qR9m",
        "text": "The next decade of clean energy will be decided by how fast we can get long duration storage to cost parity with gas peaker plants. Breakthrough Energy is backing three new companies working on exactly that problem.",
        "createdUtc": 1758556800,
        "type": "SHARE",
        "author": {
          "id": "ACoAAAC8x1nRkWpJ2tYq7vLh3oB5mC9zEjKfA0d",
          "handle": "williamhgates",
          "type": "profile",
          "name": "Bill Gates",
          "profileUrl": "https://www.linkedin.com/in/williamhgates/",
          "headline": "Co-chair, Bill & Melinda Gates Foundation",
          "image": "https://media.licdn.com/dms/image/v2/D4E03AQEz9pWkLm2vTr/profile-displayphoto-shrink_400_400/bill-gates.jpg",
          "imageWidth": 400,
          "imageHeight": 400
        },
        "publicationUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7482310098765432101",
        "engagement": {
          "reactions": 18420,
          "comments": 612,
          "reposts": 340,
          "breakdown": [
            {
              "type": "LIKE",
              "count": 14100
            },
            {
              "type": "PRAISE",
              "count": 3200
            },
            {
              "type": "INTEREST",
              "count": 1120
            }
          ]
        },
        "articleTitle": "Long duration storage just crossed a cost threshold that matters",
        "articleSubtitle": "gatesnotes.com",
        "articleUrl": "https://www.gatesnotes.com/energy/long-duration-storage-cost-threshold",
        "articleDescription": "Three portfolio companies are now shipping iron air and thermal batteries under $20 per kilowatt hour.",
        "articleLinkLabel": "gatesnotes.com",
        "articleImage": "https://media.licdn.com/dms/image/v2/D4E10AQGp8xRkWnLpVz/article-cover/long-duration-storage.jpg",
        "articleImageWidth": 1200,
        "articleImageHeight": 627,
        "images": [
          {
            "url": "https://media.licdn.com/dms/image/v2/D4E10AQGp8xRkWnLpVz/article-cover/long-duration-storage.jpg",
            "width": 1200,
            "height": 627
          }
        ],
        "socialContent": {
          "hideCommentsCount": false,
          "hideReactionsCount": false,
          "hideSocialActivityCounts": false,
          "hideShareAction": false,
          "hideSendAction": false,
          "hideRepostsCount": false,
          "hideViewsCount": false,
          "hideReactAction": false,
          "hideCommentAction": false,
          "showContributionExperience": false,
          "showSocialDetail": true,
          "shareUrl": "https://www.linkedin.com/posts/williamhgates_the-next-decade-of-clean-energy-activity-7482310098765432101-qR9m"
        }
      }
    ]
  }
}

完整的参数与响应参考:这个接口的每个字段、类型和示例。

参考

一个请求,一种响应结构。

你发送的每个字段和收到的每个字段,都附有真实示例。

最近验证于 2026-11-14 · 可用率和延迟按 30d 统计

请求体

JSON,POST 到这个接口。

  • urlstring

    https://www.linkedin.com/in/williamhgates/

    要返回其帖子的公开 LinkedIn 主页完整 URL。

  • contextCountryenum

    获取帖子时使用的 LinkedIn 地区上下文。

  • cursorstring

    上一次响应的 nextCursor 返回的分页游标。

  • includeQuotePostsboolean

    是否包含对分享内容附加评论的引用帖子。

  • includeRepostsboolean

    是否包含未附加评论直接分享内容的转发。

  • limitinteger

    10

    Most posts to return (1-100, default 10). Ignored on sources that page: each call returns one full page of 50 posts; follow nextCursor for more. Sources that cannot page return up to `limit` posts in one call with no nextCursor.

  • postedLimitenum

    只返回在此相对时间范围内发布的帖子。

  • postedLimitDatestring

    只返回在此日期或时间戳及之后发布的帖子,使用 JavaScript 兼容的日期时间字符串。

  • requireFieldsarray

    可选;省略时路由不变,由最便宜的数据源处理。列出本次请求必须能返回的输出字段,例如 `nextCursor`,请求就只会由能返回全部这些字段的数据源处理。未列出的字段,只要处理请求的数据源有,仍会照常返回。这可能提高你的价格:最便宜的数据源无法返回某个列出的字段时,会改由更贵的数据源处理,并按它的价格报价和扣费。如果某个主页确实没有某个列出的字段,该字段仍可能缺失。如果列出的字段组合没有任何单一数据源能同时返回,请求会作为无效输入被拒绝,不扣费。在分页遍历中,它只作用于第一页;后续页面沿用该页选定的数据源,按当时的报价计费。

你发送。 一个简短的 JSON 请求体。显示的值只是示例,请换成你自己的。

响应

JSON,每个字段一个示例值。

each itemdata.items[]

Recent enriched posts published by the profile. Populated whenever the provider has data for the entity.

  • articleDescriptionstring

    Description excerpt of the attached article, when present.

  • articleImagestring

    Image URL of the attached article, when present.

  • articleImageHeightinteger

    Height of the attached article image in pixels.

  • articleImageWidthinteger

    Width of the attached article image in pixels.

  • articleLinkLabelstring

    Accessible display label for the attached article link, when present.

  • articleSubtitlestring

    Subtitle or publisher label of the attached article, when present.

  • articleTitlestring

    Title of the attached article, when present.

  • articleUrlstring

    Canonical URL of the attached article, when present.

  • createdUtcnumber

    1758384000

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.

  • idstring

    urn:li:activity:7481009887654321098

    Unique identifier of the LinkedIn post. Populated whenever the provider has data for the entity.

  • newsletterTitlestring

    Title of the LinkedIn newsletter associated with the post, when present.

  • newsletterUrlstring

    Canonical URL of the LinkedIn newsletter associated with the post, when present.

  • publicationUrlstring

    https://www.linkedin.com/feed/update/urn:li:activity:7481009887654321098

    Canonical LinkedIn feed publication URL for the post. Populated whenever the provider has data for the entity.

  • repostArticleDescriptionstring

    Description excerpt of the reposted post's article, when present.

  • repostArticleImagestring

    Image URL of the reposted post's article, when present.

  • repostArticleImageHeightinteger

    Height of the reposted post's article image in pixels.

  • repostArticleImageWidthinteger

    Width of the reposted post's article image in pixels.

  • repostArticleLinkLabelstring

    Accessible display label for the reposted post's article link, when present.

  • repostArticleSubtitlestring

    Subtitle or publisher label of the reposted post's article, when present.

  • repostArticleTitlestring

    Title of the article attached to the reposted post, when present.

  • repostArticleUrlstring

    Canonical URL of the reposted post's article, when present.

  • repostAuthorHandlestring

    Public LinkedIn profile handle of the reposted post's author, when present.

  • repostAuthorHeadlinestring

    Headline or follower summary of the reposted post's author, when present.

  • repostAuthorIdstring

    Stable LinkedIn identifier of the reposted post's author, when present.

  • repostAuthorImagestring

    Image URL of the reposted post's author, when present.

  • repostAuthorNamestring

    Display name of the reposted post's author, when present.

  • repostAuthorTypestring

    Author kind for the reposted post, when present.

  • repostAuthorUniversalNamestring

    Universal LinkedIn name of the reposted post's company author, when present.

  • repostAuthorUrlstring

    Canonical LinkedIn URL of the reposted post's author, when present.

  • repostCreatedUtcnumber

    UTC epoch timestamp in seconds (Unix time) when the reposted post was published. Multiply by 1000 for a JS Date in milliseconds.

  • repostIdstring

    Unique identifier of the reposted post, when present.

  • repostTextstring

    Text content of the reposted post, when present.

  • repostUrlstring

    Canonical URL of the reposted post, when present.

  • textstring

    New case data out of Mozambique this week: districts that switched to the dual active ingredient bed nets two years ago are reporting a 42% drop in confirmed cases.

    Text content of the post. Populated whenever the provider has data for the entity.

  • typestring

    ORIGINAL

    LinkedIn record type reported for the post.

  • urlstring

    https://www.linkedin.com/posts/williamhgates_malaria-eradication-progress-activity-7481009887654321098-pT4n

    Canonical LinkedIn URL of the post. Populated whenever the provider has data for the entity.

  • videoThumbnailstring

    Thumbnail URL of the attached video, when present.

  • videoUrlstring

    URL of the attached video, when present.

authordata.items[].author

Detailed identity and publication information for the post author. Populated whenever the provider has data for the entity.

  • handlestring

    williamhgates

    Public LinkedIn profile handle of the author. Populated whenever the provider has data for the entity.

  • headlinestring

    Co-chair, Bill & Melinda Gates Foundation

    Professional headline or follower summary displayed for the author. Populated whenever the provider has data for the entity.

  • idstring

    ACoAAAC8x1nRkWpJ2tYq7vLh3oB5mC9zEjKfA0d

    Stable LinkedIn identifier of the author. Populated whenever the provider has data for the entity.

  • imagestring

    https://media.licdn.com/dms/image/v2/D4E03AQEz9pWkLm2vTr/profile-displayphoto-shrink_400_400/bill-gates.jpg

    Profile or company image URL of the author. Populated whenever the provider has data for the entity.

  • imageHeightinteger

    400

    Height of the author image in pixels.

  • imageWidthinteger

    400

    Width of the author image in pixels.

  • namestring

    Bill Gates

    Display name of the author. Populated whenever the provider has data for the entity.

  • profileUrlstring

    https://www.linkedin.com/in/williamhgates/

    Canonical LinkedIn profile or company URL of the author. Populated whenever the provider has data for the entity.

  • typestring

    profile

    Author kind, such as profile or company. Populated whenever the provider has data for the entity.

  • universalNamestring

    Universal LinkedIn name used for company authors, when present.

  • websitestring

    Publication or website URL displayed by the author.

  • websiteLabelstring

    Display label for the author's publication or website link.

each contentAnnotationdata.items[].contentAnnotations[]

Structured mentions and links embedded in the post text.

  • companyIdstring

    LinkedIn identifier of a mentioned company, when present.

  • companyNamestring

    Display name of a mentioned company, when present.

  • companyUrlstring

    Canonical LinkedIn URL of a mentioned company, when present.

  • hyperlinkstring

    Canonical hyperlink attached to the annotation, when present.

  • lengthinteger

    Length of the annotated text span.

  • profileFirstNamestring

    First name of a mentioned profile, when present.

  • profileHandlestring

    Public LinkedIn handle of a mentioned profile, when present.

  • profileIdstring

    LinkedIn identifier of a mentioned profile, when present.

  • profileLastNamestring

    Last name of a mentioned profile, when present.

  • profileUrlstring

    Canonical LinkedIn URL of a mentioned profile, when present.

  • startinteger

    Zero-based start offset of the annotation in the post text.

  • textLinkstring

    Canonical text link attached to the annotation, when present.

  • typestring

    Kind of content annotation.

each breakdowndata.items[].engagement.breakdown[]

Counts grouped by LinkedIn reaction type.

  • countinteger

    7600

    Number of reactions of this type.

  • typestring

    LIKE

    LinkedIn reaction type.

engagementdata.items[].engagement

Engagement totals and reaction breakdown for the post. Populated whenever the provider has data for the entity.

  • commentsinteger

    288

    Total number of comments on the post. Populated whenever the provider has data for the entity.

  • reactionsinteger

    9840

    Total number of reactions on the post. Populated whenever the provider has data for the entity.

  • repostsinteger

    155

    Total number of reposts or shares of the post. Populated whenever the provider has data for the entity.

each imagedata.items[].images[]

Images attached to the post.

  • heightinteger

    Height of the image in pixels.

  • urlstring

    URL of the attached image.

  • widthinteger

    Width of the image in pixels.

each repostImagedata.items[].repostImages[]

Images attached to the reposted post.

  • heightinteger

    Height of the reposted image in pixels.

  • urlstring

    URL of an image attached to the reposted post.

  • widthinteger

    Width of the reposted image in pixels.

socialContentdata.items[].socialContent

LinkedIn visibility and action flags for the post.

  • hideCommentActionboolean

    false

    Whether LinkedIn hides the comment action.

  • hideCommentsCountboolean

    false

    Whether LinkedIn hides the comment count.

  • hideReactActionboolean

    false

    Whether LinkedIn hides the react action.

  • hideReactionsCountboolean

    false

    Whether LinkedIn hides the reaction count.

  • hideRepostsCountboolean

    false

    Whether LinkedIn hides the repost count.

  • hideSendActionboolean

    false

    Whether LinkedIn hides the send action.

  • hideShareActionboolean

    false

    Whether LinkedIn hides the share action.

  • hideSocialActivityCountsboolean

    false

    Whether LinkedIn hides social activity counts.

  • hideViewsCountboolean

    false

    Whether LinkedIn hides the view count.

  • shareUrlstring

    https://www.linkedin.com/posts/williamhgates_malaria-eradication-progress-activity-7481009887654321098-pT4n

    Canonical LinkedIn share URL for the post.

  • showContributionExperienceboolean

    false

    Whether LinkedIn enables the contribution experience.

  • showSocialDetailboolean

    true

    Whether LinkedIn shows social detail.

datadata

The enriched profile posts result, or null when no posts were found.

  • nextCursorstring可设为必填

    Opaque cursor for the next page of posts, or null when there are no more. Pass it back as cursor to continue.

top level
  • foundboolean

    true

    Whether profile posts were found.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

你收到。 字段有名称、有类型,无论哪个数据源响应,结构都一样。

常见问题

关于 LinkedIn 主页帖子(完整版) API

AnyAPI 的 LinkedIn 主页帖子(完整版) API 只需一次 POST 请求 /v1/run/linkedin.profile_posts_full,就以统一格式的 JSON 返回 LinkedIn 数据。获取公开 LinkedIn 主页的近期帖子,附带补全的作者、互动、文章、新闻通讯、媒体、标注、转发和社交动态详情。AnyAPI 会在 3 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$5 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 LinkedIn 主页帖子(完整版) API 调用中有 100.0% 成功,响应时间中位数为 2.6 秒,共测量 16,745 次调用。

费用:每千次请求 US$5 起,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。

获取公开 LinkedIn 主页的近期帖子,附带补全的作者、互动、文章、新闻通讯、媒体、标注、转发和社交动态详情。响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。

过去 30 天,通过 AnyAPI 发起的 LinkedIn 主页帖子(完整版) API 调用中有 100.0% 成功,响应时间中位数为 2.6 秒,共测量 16,745 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。

可以。新的 AnyAPI 账户自带 US$0.10 免费余额,无需绑卡,足够调用 20 次 LinkedIn 主页帖子(完整版),每次 US$0.005。

AnyAPI 会在同一个请求中依次尝试它的 3 个数据源,从最便宜的开始,所以一个数据源宕机不会让你的调用失败。

向 https://api.getanyapi.com/v1/run/linkedin.profile_posts_full 发送 POST 请求,在 “Authorization: Bearer” 请求头中放入你的 AnyAPI 密钥,并以 JSON 请求体传入参数。同一个密钥和同一个钱包适用于所有 AnyAPI 接口。

不需要。你向一个预付费的 AnyAPI 余额充值美元,每个请求从中扣费。没有月度套餐,也没有最低消费,同一个余额可用于所有 AnyAPI 接口。

有。TypeScript 用 npm 安装 @getanyapi/sdk,Python 用 pip 安装 getanyapi。两者都用同一个密钥调用所有 AnyAPI 接口,任何 HTTP 客户端也都可以。

可以。智能体可以连接 https://api.getanyapi.com/mcp 上的 AnyAPI MCP 服务器,或者向 https://api.getanyapi.com/agent/signup 发送一次无需认证的 POST 来创建自己的免费试用密钥,再通过 HTTP 调用这个接口。