---
title: "公众号 API 数据接口 · SocialToAI"
canonical: https://socialtoai.app/zh/platforms/wechat/
updated: 2026-11-20
---

# 公众号 API 数据接口

公众号 API（数据接口）可以搜文章，读文章详情、评论、账号资料和账号发布的文章，不用登录公众号账号，也不用提供 Cookie。每次调用 12 积分（约 $0.024–$0.04），失败不扣。公众号不提供浏览量，这个字段返回 null。可以直接发 HTTP 请求，也可以通过 MCP 接到 AI 客户端里用。最近实测：2026-11-19。

- 页面：https://socialtoai.app/zh/platforms/wechat/
- 最近更新：2026-11-20
- 最近实测：2026-11-19

## 可用的动作

| 动作 | 返回什么 | 由什么参数选中 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- | --- |
| `search` | 按关键词找文章：正文、作者、点赞数和发布时间。 | — | `wechat.search` | 12 | [公众号搜索接口](https://socialtoai.app/zh/wechat-search-api.md) |
| `search` | 搜账号 | `type=user` | `wechat.search:user` | 12 | [公众号搜索接口](https://socialtoai.app/zh/wechat-search-api.md) |
| `detail` | 用链接取一条文章：正文、作者和发布时间。 | — | `wechat.detail` | 12 | [公众号详情接口](https://socialtoai.app/zh/wechat-detail-api.md) |
| `comments` | 一条文章下的评论：正文、点赞数、回复数和时间。 | — | `wechat.comments` | 12 | [公众号评论接口](https://socialtoai.app/zh/wechat-comments-api.md) |
| `comments` | 某条评论下的回复 | `reply_of` | `wechat.comments:replies` | 12 | [公众号评论接口](https://socialtoai.app/zh/wechat-comments-api.md) |
| `user_profile` | 一个账号：名称。 | — | `wechat.user_profile` | 12 | [公众号账号资料接口](https://socialtoai.app/zh/wechat-user-profile-api.md) |
| `user_posts` | 一个账号最近发布的文章。 | — | `wechat.user_posts` | 12 | [公众号账号作品接口](https://socialtoai.app/zh/wechat-user-posts-api.md) |

公众号不提供：热榜。

和知乎比，公众号的文章少给作者粉丝数、评论数、转发、播放或浏览、图片和话题标签；账号资料少给粉丝数。

给 AI 读更省：12 个接口实测，同样的录制数据，平台原始 JSON 合计约 51,639 token，SocialToAI 返回约 19,824 token，少 61%（2026-11-06，方法见“测量方法”页）。

## 调用示例

```bash
curl https://socialtoai.app/v1/search \
  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "wechat",
    "query": "咖啡店开业"
  }'
```

## 公众号独有的接口

每个接口用自己的 op，通过 `POST /v1/call/{op}` 调用；完整的参数和返回字段在它自己的页面。

### 达人

| 接口 | 做什么 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- |
| 主体信息 | 按公众号原始编号取它的主体（背后的公司、机构或个人）。 | `wechat.account_owner` | 60 | [微信公众号主体信息接口](https://socialtoai.app/zh/wechat-account-owner-api.md) |
| 账号搜索 | 按名字或关键词找公众号，最像的排前面。 | `wechat.account_estimates` | 102 | [微信公众号账号搜索接口](https://socialtoai.app/zh/wechat-account-estimates-api.md) |

### 关键词与指数

| 接口 | 做什么 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- |
| 微信指数 | 按关键词取它最近 30 天的微信指数，一天一个数。 | `wechat.keyword_history` | 60 | [微信指数接口](https://socialtoai.app/zh/wechat-keyword-history-api.md) |
| 微信搜一搜推荐词 | 按关键词取微信搜一搜在搜索框里给的联想推荐词，按搜一搜列出的顺序排，一次约 10 个。 | `wechat.keyword_related` | 60 | [微信搜一搜推荐词接口](https://socialtoai.app/zh/wechat-keyword-related-api.md) |

### 内容与账号

| 接口 | 做什么 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- |
| 文章互动数据 | 按文章长链接取这篇公众号文章此刻的数字。 | `wechat.article_stats` | 12 | [微信公众号文章互动数据接口](https://socialtoai.app/zh/wechat-article-stats-api.md) |
| 微信小程序搜索 | 按搜索词在微信搜一搜里找小程序，取第一页（约 25 个）。 | `wechat.miniprogram_search` | 60 | [微信小程序搜索接口](https://socialtoai.app/zh/wechat-miniprogram-search-api.md) |

## 公众号给不了的字段

这些字段在对应的调用里始终是 null，并列在返回的 `unavailable` 里。

| 字段 | 哪些动作 |
| --- | --- |
| `author.id` | search |
| `author.username` | search, user_posts |
| `author.verified` | search, detail, user_posts |
| `author.followers` | search, detail, user_posts |
| `metrics.comments` | search, detail, user_posts |
| `metrics.shares` | search, detail, user_posts |
| `metrics.views` | search, detail, user_posts |
| `metrics.reposts` | search, detail, user_posts |
| `images` | search, detail, user_posts |
| `hashtags` | search, detail, user_posts |
| `is_pinned` | search, detail, user_posts |
| `metrics.likes` | detail, user_posts |
| `metrics.collects` | detail, user_posts |
| `url` | comments, user_profile |
| `content_id` | comments |
| `username` | user_profile |
| `bio` | user_profile |
| `verified` | user_profile |
| `followers` | user_profile |
| `following` | user_profile |
| `posts_count` | user_profile |
| `author.name` | user_posts |

## 办成一件事多少钱

| 要做的事 | 怎么算 | 积分 | 约合 |
| --- | --- | --- | --- |
| 搜 1,000 条公众号结果 | 每页通常 20 条，50 页 | 600 积分 | 约 ¥14（$2.00） |
| 读 1,000 条公众号评论 | 每页通常 20 条，50 页 | 600 积分 | 约 ¥14（$2.00） |
| 回填一个公众号：200 条文章列表加 20 条全文 | 20 页列表 + 20 次全文 | 480 积分 | 约 ¥12（$1.60） |
| 每天盯 1 个公众号账号，一个月最多 | 每次 42 积分 × 31 天 | 1,302 积分 | 约 ¥31（$4.34） |

按 $10 档算，买得越多单价越低。监控只在你开启时运行，随时可以暂停，没有订阅。

## 在 AI 里直接问

- 这周公众号上，家用咖啡和抹茶哪个更火？ → search, search: 24 积分

- 读一下这条公众号文章的评论，告诉我大家在抱怨什么。 → detail, comments × 3: 48 积分

- 在公众号上找 5 个发露营咖啡内容的账号，看看他们最近发了什么。 → search, user_posts × 5: 72 积分

[公众号 MCP 服务器](https://socialtoai.app/zh/mcp/wechat.md)

## 能读公众号的现成工具

- [品牌口碑](https://socialtoai.app/zh/tools/brand-buzz.md)：各平台上的态度占比、提到最多的事，以及背后的帖子
- [评论分析](https://socialtoai.app/zh/tools/comment-insights.md)：评论里的话题和各自占比，还有提问、想买和投诉
- [账号动态](https://socialtoai.app/zh/tools/account-watch.md)：每个账号最近发了什么，哪条明显好于平时
- [达人档案](https://socialtoai.app/zh/tools/creator-card.md)：这个人在其他平台的账号、各自的数据，以及是同一人的把握
- [批量链接数据](https://socialtoai.app/zh/tools/batch-stats.md)：每条链接一行，给出现在的数字；失效的链接会标出来

## 官方 API

微信公众号接口用于管理本账号的内容，包括素材、草稿、发布、留言和数据统计。文档中没有读取其他公众号文章的接口。

来源：[公众号官方开发者文档](https://developers.weixin.qq.com/doc/subscription/guide/)，核对于 2026-11-05。

在这里读 1,000 条文章：约 50 次 `wechat.search` 调用（每页通常 20 条），共 600 积分，按第一档约 $2.00。 [算一下要多少钱](https://socialtoai.app/zh/free-tools/api-cost-estimator.md)

[公众号官方 API 的申请条件和价格](https://socialtoai.app/zh/does-wechat-have-an-api.md)

- [各平台评论接口对比](https://socialtoai.app/zh/comments-api.md)：哪些平台能取评论、每页多少条、多少积分。
- [让 AI 读公众号文章](https://socialtoai.app/zh/how-to/let-ai-read-wechat-articles.md)：让 AI 读公众号文章
- [公众号文章转 RSS，或每天推到飞书、企业微信](https://socialtoai.app/zh/how-to/wechat-official-account-to-rss-feishu-wecom.md)：公众号文章转 RSS，或推送到飞书、企业微信群
- [每天盯竞品账号：发了什么，哪条比平时好](https://socialtoai.app/zh/monitors/competitors.md)：每天盯竞品账号：新发了什么、哪条比平时好，每个账号 9 积分起
- [Claude 能读公众号文章吗？](https://socialtoai.app/zh/can-ai-read/claude-wechat-articles.md)：Claude 能读和读不到公众号文章的什么，带来源和真实请求
- [ChatGPT 能读公众号文章吗？](https://socialtoai.app/zh/can-ai-read/chatgpt-wechat-articles.md)：ChatGPT 能读和读不到公众号文章的什么，带来源和真实请求
- [豆包能读小红书、抖音和公众号吗？](https://socialtoai.app/zh/can-ai-read/doubao.md)：豆包 App 和火山方舟上的豆包模型：谁能读到这些平台，带来源
- [公众号的 gh_ 编号是什么，怎么拿？](https://socialtoai.app/zh/can-ai-read/wechat-gh-id.md)：gh_ 编号是什么、三种拿法、一次真实请求
- [公众号 MCP 服务器](https://socialtoai.app/zh/mcp/wechat.md)：让你的 AI 直接读公众号。
