# 找 LinkedIn 公司旧帖和行业帖子，用公司帖列表还是关键词搜索？

[规范网址](https://social2api.com/compare/linkedin-company-posts-vs-keyword-search/)

已知 LinkedIn 公司页时，用公司帖子列表查公开主页展示的最近帖子。DataXAPI 通道最多 10 条、不翻页。关键词搜索读取网页搜索引擎收录的 LinkedIn 帖子，适合跨公司找主题样本。

DataXAPI 价目生效日期与版本 [2026-11-25 · v22](https://social2api.com/pricing-catalog.json)

## Agent 提示词

~~~~text
用 Social2api 完成「找 LinkedIn 公司旧帖和行业帖子，用公司帖列表还是关键词搜索？」这项任务。
核对我提供的公开输入、所需输出字段和调用预算，尚缺输入时先询问。按页面列出的端点选择一次最小调用。只有我确认实时取数并配置所需密钥后才执行。
报告实际查询边界、取得的记录和缺失项，保留原始来源和采样时间。费用根据实际调用次数记录。
https://social2api.com/compare/linkedin-company-posts-vs-keyword-search/
~~~~

[读取 LinkedIn 公司公开帖子的接口文档](https://social2api.com/docs/api/catalog-linkedin-companies-posts-list/)

## 按你要交付的结果选方法

| 做法 | 适合的任务 | 要核对的条件 |
| --- | --- | --- |
| 已知公司页 | 记录指定公司的公开帖子样本 | 先用公司公开账号名或 URL 测范围。 |
| 关键词搜索 | 发现指定主题和相对日期范围内的公开帖子 | 保留原始作者和时间，避免误归属。 |
| 详情回查 | 核验单条结果或标记缺失 | 使用公开帖子链接或平台帖子 ID。 |

## 对应的 Social2api 接口

| 接口 | 输入 | 交付结果 |
| --- | --- | --- |
| [读取 LinkedIn 公司公开帖子](https://social2api.com/docs/api/catalog-linkedin-companies-posts-list/) · GET /v1/linkedin/companies/posts/list | username 或公开公司页 url | 最多 10 条，无游标。DataXAPI 通道返回正文和发布时间；作者和互动数需补详情。 |
| [按关键词搜索 LinkedIn 帖子](https://social2api.com/docs/api/catalog-linkedin-posts-search/) · GET /v1/linkedin/posts/search | query，可选 published\_within | 网页索引样本，可按 cursor 续页。 |
| [读取 LinkedIn 帖子详情](https://social2api.com/docs/api/catalog-linkedin-posts-get/) · GET /v1/linkedin/posts/get | id 或公开帖子 url | 核对单条内容与来源。 |

## 从输入到可以核对的交付

交付公司公开帖样本和行业帖子样本两张表，清楚记录每组采集边界。

1. **分别采两组样本**。 固定一个公司页标识和行业关键词。保存公司页列表的最早可见日期，再在搜索中逐页记录查询词和时间范围。
2. **复查公开来源**。 保留 id、url、published\_at 和来源。公司列表命中需要互动数或作者时按 id 查详情。将公司页匹配与网页索引命中分开，同名公司单列复核。

## 最小调用示例

将有 catalog 权限的 Social2api API Key 和自带的 DataXAPI Key 分别放在 SOCIAL2API\_API\_KEY 和 DATAXAPI\_API\_KEY。示例的 X-Max-Price 固定 DataXAPI 通道，并限制每次费用。

分别保存一份公司列表、一页网页索引结果，并对首个可用公司帖 ID 查详情。下面预算另留一页关键词续页。

~~~~bash
set -eu
: "${SOCIAL2API_API_KEY:?Set a Social2api catalog key}" "${DATAXAPI_API_KEY:?Set a DataXAPI key}"

curl -fsS --get 'https://social2api.com/v1/linkedin/companies/posts/list' \
  -H "Authorization: Bearer $SOCIAL2API_API_KEY" \
  -H "X-DataXAPI-Key: $DATAXAPI_API_KEY" \
  -H 'X-Max-Price: 0.002' \
  --data-urlencode 'username=unesco' > linkedin-company.json
jq -e '.code == "ok"' linkedin-company.json >/dev/null
curl -fsS --get 'https://social2api.com/v1/linkedin/posts/search' \
  -H "Authorization: Bearer $SOCIAL2API_API_KEY" \
  -H "X-DataXAPI-Key: $DATAXAPI_API_KEY" \
  -H 'X-Max-Price: 0.002' \
  --data-urlencode 'query=education' \
  --data-urlencode 'published_within=month' > linkedin-topic.json
jq -e '.code == "ok"' linkedin-topic.json >/dev/null
POST_ID=$(jq -r 'first(.data.items[]? | .id | select(type == "string" and length > 0)) // empty' linkedin-company.json)
if [ -n "$POST_ID" ]; then
curl -fsS --get 'https://social2api.com/v1/linkedin/posts/get' \
  -H "Authorization: Bearer $SOCIAL2API_API_KEY" \
  -H "X-DataXAPI-Key: $DATAXAPI_API_KEY" \
  -H 'X-Max-Price: 0.002' \
  --data-urlencode "id=$POST_ID" > linkedin-detail.json
jq -e '.code == "ok"' linkedin-detail.json >/dev/null
fi
~~~~

## 输出样例（合成数据）

| 样本 | 内容 ID | 作者／互动 | 边界 |
| --- | --- | --- | --- |
| 公司最近帖 | 10001 | 从详情获取 | 最多十条，无游标 |
| 行业网页索引 | 10002 | 保留来源实际返回值 | 网页索引覆盖 |

## 这组样本要多少次调用？

按 DataXAPI 通道参考价，每个请求（包括每次续页）单独计算。示例安排 4 次请求。按每次上限估算，1 × 0.002 + 2 × 0.002 + 1 × 0.002 = 0.008 USD。

此估算按下表的调用次数计算，未包含额外翻页和重试。供应商费用在你的 DataXAPI 账户结算。

| 试跑任务 | 请求数 | DataXAPI 通道每次上限 |
| --- | --- | --- |
| 读取 LinkedIn 公司公开帖子 | 1 | 0.002 USD |
| 按关键词搜索 LinkedIn 帖子 | 2 | 0.002 USD |
| 读取 LinkedIn 帖子详情 | 1 | 0.002 USD |

## 用户在比较什么

- **LinkedIn 公司页公开帖回溯需求** 提问者希望看到可获取的旧帖及范围。 [LinkedIn 公司页公开帖回溯需求](https://www.reddit.com/r/apify/comments/1wt33h5/)
- **用关键词查公开 LinkedIn 帖子的需求** 选型需要区别已知公司页面和主题搜索。 [用关键词查公开 LinkedIn 帖子的需求](https://www.reddit.com/r/WebScrapingInsider/comments/1w6svy1/)

## 常见问题

### 公司帖子接口能直接翻多年历史吗？

当前公司列表端点没有游标。先核对样本的最早日期，满足不了历史窗口时在结果里保留覆盖缺口。

## 接口文档

- [读取 LinkedIn 公司公开帖子](https://social2api.com/docs/api/catalog-linkedin-companies-posts-list/)
- [按关键词搜索 LinkedIn 帖子](https://social2api.com/docs/api/catalog-linkedin-posts-search/)
- [读取 LinkedIn 帖子详情](https://social2api.com/docs/api/catalog-linkedin-posts-get/)
- [核对 DataXAPI 通道价目表](https://social2api.com/pricing-catalog.json)

## 参考来源

- [DataXAPI 公司列表的返回字段](https://dataxapi.com/zh/apis/linkedin/companies/posts/list/)
- [DataXAPI 关键词搜索来源](https://dataxapi.com/zh/apis/linkedin/posts/search/)

## 相关用户讨论

- [LinkedIn 公司页公开帖回溯需求](https://www.reddit.com/r/apify/comments/1wt33h5/)
- [用关键词查公开 LinkedIn 帖子的需求](https://www.reddit.com/r/WebScrapingInsider/comments/1w6svy1/)

## 给 AI 代理

- [给 AI 的站点说明](https://social2api.com/zh/llms.txt)。 面向代理的功能概览与文档发现索引。
- [接入 AI 的步骤](https://social2api.com/zh/agents/)。 从免费试跑到 API Key 与 MCP 接入。
- [接入步骤（Markdown）](https://social2api.com/agents.md)。 接入指南的纯文本 Markdown 版本。
- [OpenAPI](https://social2api.com/openapi.json)。 查看 HTTP 请求参数、认证方式和响应结构。
- [价格表](https://social2api.com/prices.json)。 查看托管积分规则、扩展 API 报价和充值状态。
- [MCP 地址](https://social2api.com/docs/api/mcp/)。 Streamable HTTP 接入、授权方式和工具说明。

MCP Streamable HTTP 地址 `https://social2api.com/mcp`。

## 相关指南和问答

- [社媒数据 API 选型与对比](https://social2api.com/compare/)

[读取 LinkedIn 公司公开帖子的接口文档](https://social2api.com/docs/api/catalog-linkedin-companies-posts-list/)
