获取用户帖子/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"
Request
- Base URLhttps://api.tikhub.io (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Query parameters
用户主页 URL/Profile URL
posts(发帖/转发)| comments(评论过的帖子)| reactions(点赞过的帖子)
本接口不支持翻页,传入无效/Not supported, has no effect
本接口不支持翻页,传入无效/Not supported, has no effect
Response
Successful Response
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
endpoint added
- info