LinkedIn-Web-V2-API

获取公司帖子/Get company'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.

[中文]

用途:

  • 按公司主页 URL 获取该公司的帖子。

参数:

  • url: 公司主页 URL。
  • start: 翻页偏移,第 1 页传 0,第 2 页传 50,以此类推。请用本参数翻页。
  • pagination_token: 不支持翻页,传入无效,请改用 start。
  • sort_by: top 或 recent。

返回:

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

[English]

Purpose:

  • Fetch a company's posts by company URL.

Parameters:

  • url: Company URL.
  • start: Pagination offset — 0 for page 1, 50 for page 2, and so on. Use this parameter to paginate.
  • pagination_token: Not supported; has no effect. Use start instead.
  • sort_by: top or recent.

Returns:

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

[示例/Example]

url = "https://www.linkedin.com/company/microsoft/", sort_by = "top"

get/api/v1/linkedin/web_v2/get_company_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/Company URL

startinteger nullable

翻页偏移,第 1 页 0、第 2 页 50/Pagination offset

pagination_tokenstring nullable

不支持,请用 start 翻页/Not supported, use start instead

sort_bystring nullable

top(热门)| recent(最新)

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