# 公众号文章怎么自动导入 ima 知识库（2026）

10 个号每天查一次，一个月 $6：用 wechat_mp.accounts.articles.list 取每个号新文章的链接，每次 $0.0200，再交给 ima 官方 Skill 的 import_urls，一次 1 到 10 个链接。手动的话，ima 是在微信里一篇一篇导入。 DataXAPI 有 8 个微信公众号接口，一次 $0.0200 起，失败不收费。

更新于 2026-11-04

## ima 这边有什么

手动：ima.copilot 频道的使用指南写的是，在微信里打开文章，点右上角“...”，选“更多打开方式”，再选“ima 知识库”小程序。

自动：ima 的 agent 页面提供 Client ID 和 API Key，核心功能里写了导入知识库。腾讯 SkillHub 上 ima-skills（我们读到时是 v1.1.10）的知识库模块写着，网页和微信文章用 `import_urls` 添加，参数是 `knowledge_base_id`、`folder_id`（根目录就传知识库编号）和 `urls`（1 到 10 个）。ima 自己的限额和费用以它的说明为准。

## 四步

1. 建名单。用 `wechat.accounts.search` 查出每个号的原始编号，存进文件，只查一次：10 个号每次 $0.0200，$0.20。

2. 在 ima 的 agent 页面拿 Key，别放进会分享出去的文件。

3. 定时检查。对每个号调 `wechat_mp.accounts.articles.list`，用每条的 `id` 和存下的比对，新出现的就是要导入的。

4. 导入。把新文章的 `url` 传给 `import_urls`，每次 10 个。返回里每个链接各有一个 `ret_code`，没导进去的留到下一轮。

第 4 步是按 ima 的文档写的，我们没有实跑，先导几篇试试。也可以都装到一个 AI 客户端：装上 ima 的 Skill，接好 DataXAPI，然后说：“每天早上取这些号的新文章，把链接导入我的‘行业研究’知识库。”

## 自己也留一份文字

`wechat_mp.articles.get` 给标题和不带排版的正文，每篇 $0.0200。想先总结、先筛一遍，或者自己留一份，就用它。ima 的 Skill 也能写笔记（`import_doc`），再把笔记加进知识库（`add_knowledge`，`media_type=11`）。

| 10 个号每天查一次，一个月 | 调用 | 合计 |
| --- | --- | --- |
| 只导链接 | 300 × $0.0200 | $6 |
| 再取 60 篇新文章的正文 | + 60 × $0.0200 | $7.20 |

## 用到的接口

- [微信公众号文章列表](https://dataxapi.com/zh/apis/wechat_mp/accounts/articles/list/) ($0.0200 / 一次): 按公众号原始编号取一页它发布的文章，从新到旧：标题、摘要、链接、发布时间。
- [微信公众号文章详情](https://dataxapi.com/zh/apis/wechat_mp/articles/get/) ($0.0200 / 一次): 按文章链接取一篇公众号文章：标题、正文、发布时间、公众号的名称和编号。
- [微信公众号实时查找](https://dataxapi.com/zh/apis/wechat/accounts/search/) ($0.0200 / 一次): 按搜索词在微信搜一搜里找公众号和服务号，最像的排前面，后面可能跟着不太相关的账号：原始编号、微信号、名称、简介、头像、是否认证、主体名称、原创文章数。按次计费；不带粉丝和阅读数，要这些的估计值用 wechat_mp.accounts.search。

## 怎么做

- [如何获取公众号历史文章列表](https://dataxapi.com/zh/guides/wechat-official-account-articles/)

## 出处

本页写到的别家的价格和功能，都来自对方自己的页面和文档，读取于 2026-11-04。价格和功能会变，做决定前请以出处为准。

- [ima：agent 配置和 API Key](https://ima.qq.com/agent-interface)
- [腾讯 SkillHub：ima-skills](https://skillhub.tencent.com/skills/ima-skills)
- [ima.copilot 频道：知识库资料导入](https://pd.qq.com/g/tengxunima/post/B_b0d7636899cb07001441152186774738700X60)

## 微信公众号的更多内容

- [微信公众号 API](https://dataxapi.com/zh/apis/wechat_mp/)
- [微信搜一搜 API](https://dataxapi.com/zh/apis/wechat/)
- [公众号文章能用 API 读取吗？](https://dataxapi.com/zh/answers/is-there-an-api-for-wechat-official-account-articles/)
- [视频号数据怎么获取？](https://dataxapi.com/zh/answers/how-to-get-wechat-channels-data/)
- [公众号文章链接里的 __biz 是什么？](https://dataxapi.com/zh/answers/wechat-official-account-biz/)
- [公众号文章链接里的 mid、idx、sn 是什么意思？](https://dataxapi.com/zh/answers/wechat-article-link-mid-idx-sn/)
- [公众号原始 ID（gh_ 开头）是什么？](https://dataxapi.com/zh/answers/wechat-official-account-original-id/)
- [视频号的 …@finder 账号编号和 export 编号是什么？](https://dataxapi.com/zh/answers/wechat-channels-finder-id/)
- [微信数据接口有哪些？公众号、视频号、搜一搜能取什么（2026）](https://dataxapi.com/zh/answers/wechat-data-apis/)
- [公众号数据 API 有哪些？历史文章、全文、阅读数、评论都能取吗（2026）](https://dataxapi.com/zh/answers/wechat-official-account-data-apis/)
- [公众号接口报 ret=200013 freq control 怎么办（2026 年 7 月之后）](https://dataxapi.com/zh/answers/wechat-ret-200013-freq-control/)
- [wechat-article-exporter 停了，还能用什么批量导出公众号文章（2026）](https://dataxapi.com/zh/answers/wechat-article-exporter-alternative/)
- [公众号历史文章怎么批量导出（2026）](https://dataxapi.com/zh/answers/export-wechat-history-articles/)
- [DataXAPI 和阿里的 DataX 是一回事吗](https://dataxapi.com/zh/answers/dataxapi-is-not-datax/)
- [怎么让 AI 读公众号（ChatGPT、Claude、Codex，2026）](https://dataxapi.com/zh/answers/let-your-ai-read-wechat/)
- [不开年费，怎么让 AI 每周盯同行的公众号、小红书和抖音](https://dataxapi.com/zh/answers/track-competitors-with-ai-pay-per-lookup/)
- [公众号怎么转 RSS（公众号 RSS，2026）](https://dataxapi.com/zh/answers/wechat-official-account-rss/)
- [wewe-rss 失效了怎么办（2026）](https://dataxapi.com/zh/answers/wewe-rss-not-working/)
- [监控几十个公众号，有更新推到飞书，怎么做（2026）](https://dataxapi.com/zh/answers/monitor-wechat-accounts-feishu/)
- [视频号账号全部作品怎么导出（2026）](https://dataxapi.com/zh/answers/export-wechat-channels-account-videos/)
- [TrendRadar 怎么加公众号、小红书数据（2026）](https://dataxapi.com/zh/answers/trendradar-wechat-xiaohongshu/)
- [公众号 fakeid 是什么（2026）](https://dataxapi.com/zh/answers/wechat-fakeid/)
- [n8n 怎么自动采集公众号文章（2026）](https://dataxapi.com/zh/answers/wechat-official-account-n8n/)
- [飞书多维表格怎么同步公众号文章数据（2026）](https://dataxapi.com/zh/answers/wechat-official-account-feishu-base/)
- [扣子怎么接公众号数据（2026）](https://dataxapi.com/zh/answers/wechat-official-account-coze/)
- [如何查看某个行业的公众号爆款文章（2026）](https://dataxapi.com/zh/answers/wechat-official-account-hit-articles-by-industry/)
- [公众号文章怎么自动存进 Obsidian（2026）](https://dataxapi.com/zh/answers/wechat-articles-to-obsidian/)
- [视频号数据怎么导出（2026）](https://dataxapi.com/zh/answers/export-wechat-channels-data/)
- [微信视频号评论可以导出吗（2026）](https://dataxapi.com/zh/answers/export-wechat-channels-comments/)
- [微信指数怎么查趋势，能批量取吗（2026）](https://dataxapi.com/zh/answers/wechat-index-keyword-trends/)
- [Dify 怎么接公众号数据（MCP，2026）](https://dataxapi.com/zh/answers/wechat-official-account-dify/)
- [怎么用 Skill 和飞书 CLI 让 AI 把公众号文章写进多维表格（2026）](https://dataxapi.com/zh/answers/skill-feishu-cli-write-base/)
- [如何获取公众号文章阅读数和点赞数](https://dataxapi.com/zh/guides/wechat-article-reads-and-likes/)
- [如何获取视频号视频评论](https://dataxapi.com/zh/guides/wechat-channels-video-comments/)
- [如何获取视频号账号的全部作品](https://dataxapi.com/zh/guides/wechat-channels-user-videos/)
- [如何用接口查微信搜一搜的结果](https://dataxapi.com/zh/guides/wechat-search-posts/)

---

目录修订号 bf04cdef3b75e745。 [网页版](https://dataxapi.com/zh/answers/wechat-articles-to-ima-knowledge-base/)
