LinkedIn-Web-V2-API

获取用户帖子/Get user's posts

Changed on

⚠️ 注意 / Note

本接口由有限的资源池提供服务,在高并发或资源紧张时可能间歇性返回 400 或其他错误。 此类失败通常是暂时性的,重试即可成功。建议客户端实现自动重试机制,推荐 retry = 3。

This endpoint is served from a limited resource pool and may intermittently return 400 or other errors under load. Such failures are typically transient and succeed on retry. We recommend implementing automatic retries with retry = 3.

本接口不支持翻页,固定只返回最近 50 条帖子。 响应的 paging.pagination_token 虽有值,但传回后会得到完全相同的第一页,且该 token 不会前进;start 同样无效。 请不要依赖这两个参数翻页,也不要用它们做循环,否则只会重复拿到同一页数据。

This endpoint does NOT support pagination — it always returns only the 50 most recent posts. The paging.pagination_token in the response is populated, but passing it back returns the exact same first page and the token never advances; start has no effect either. Do not rely on these two parameters for paging, and do not loop on them — you will only receive the same page repeatedly.

[中文]

用途:

  • 按主页 URL 获取该用户的帖子、评论过的帖子或点赞过的帖子。
  • 固定返回最近 50 条,不支持翻页。

参数:

  • url: 用户主页 URL。
  • type: posts / comments / reactions,默认 posts。
  • start: 本接口不支持翻页,传入无效。
  • pagination_token: 本接口不支持翻页,传入无效。

返回:

  • data: 帖子列表(最多 50 条);paging: 翻页信息(count / start / pagination_token),其中 pagination_token 不可用于翻页。

[English]

Purpose:

  • Fetch a member's posts, commented posts, or reacted posts by profile URL.
  • Always returns the 50 most recent items; pagination is not supported.

Parameters:

  • url: Profile URL.
  • type: posts / comments / reactions. Defaults to posts.
  • start: Not supported by this endpoint; has no effect.
  • pagination_token: Not supported by this endpoint; has no effect.

Returns:

  • data: list of posts (up to 50); paging: pagination info (count / start / pagination_token). The pagination_token cannot be used for paging.

[示例/Example]

url = "https://www.linkedin.com/in/williamhgates/", type = "posts"

get/api/v1/linkedin/web_v2/get_user_posts

Request

  • Base URL
    https://api.tikhub.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

urlstring required

用户主页 URL/Profile URL

typestring

posts(发帖/转发)| comments(评论过的帖子)| reactions(点赞过的帖子)

startinteger nullable

本接口不支持翻页,传入无效/Not supported, has no effect

pagination_tokenstring nullable

本接口不支持翻页,传入无效/Not supported, has no effect

Response

Successful Response

codeinteger

HTTP status code | HTTP状态码

request_idstring nullable

Unique request identifier | 唯一请求标识符

messagestring

Response message (EN-US) | 响应消息 (English)

message_zhstring

Response message (ZH-CN) | 响应消息 (中文)

supportstring

Support message | 支持消息

timestring

The time the response was generated | 生成响应的时间

time_stampinteger

The timestamp the response was generated | 生成响应的时间戳

time_zonestring

The timezone of the response time | 响应时间的时区

docsstring nullable

Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接

cache_messagestring nullable

Cache message (EN-US) | 缓存消息 (English)

cache_message_zhstring nullable

Cache message (ZH-CN) | 缓存消息 (中文)

cache_urlstring nullable

The URL to access the cached result | 访问缓存结果的 URL

routerstring

The endpoint that generated this response | 生成此响应的端点

paramsunknown
dataunknown

Changes