# 公众号文章怎么自动存进 Obsidian（2026）

1 篇 $0.0200：用 wechat_mp.articles.get 取标题和正文，写成 .md 文件放进 vault 文件夹，Obsidian 自己就会刷新出来。10 个号每天查一次，一个月 60 篇新文章，共 $7.20。正文不带图片和小标题。 DataXAPI 有 8 个微信公众号接口，一次 $0.0200 起，失败不收费。

更新于 2026-11-04

## 为什么不用插件

Obsidian 的帮助文档写着：笔记是 vault 里的 Markdown 纯文本文件，vault 就是本地文件系统上的一个文件夹，外部的改动它会自动刷新。所以任何能往这个文件夹写文件的脚本或 AI 客户端，都能加笔记。之后用 Obsidian Sync、iCloud、Dropbox、Git 这些同步时，它和别的笔记一样。

## 字段怎么放

`text` 是去掉排版的正文，所以文件里是 Markdown 文件中的纯文字，不是原样的文章：没有图片、小标题和加粗。开头留上原文链接，好回去看原文。

| 笔记里 | 接口返回 |
| --- | --- |
| 文件名和一级标题 | `title`，去掉文件名不能用的字符 |
| 开头的原文链接 | `url` |
| 日期和公众号 | `published_at`、`author.name` |
| 正文 | `text` |

## 每天自动跑

用 `wechat.accounts.search` 查一次每个号的原始编号。之后定时对每个号调 `wechat_mp.accounts.articles.list`，每页约 10 篇，用每条的 `id` 和存下的比对。每篇新文章把 `url` 传给 `wechat_mp.articles.get`，写成文件。可以用 cron 或 launchd 跑，机器要能访问 vault 文件夹。

或者跟接好 DataXAPI、能写文件的 AI 客户端说：“每天早上取这些号的新文章，每篇存成 Markdown 放进 ~/Notes/公众号，文件名用日期加标题，开头写原文链接。”别写进 `.obsidian` 文件夹，那里放的是 vault 的设置。

| 10 个号每天查一次，一个月 | 调用 | 合计 |
| --- | --- | --- |
| 查新文章 | 300 × $0.0200 | $6 |
| 60 篇新文章的正文 | 60 × $0.0200 | $1.20 |

## 用到的接口

- [微信公众号文章详情](https://dataxapi.com/zh/apis/wechat_mp/articles/get/) ($0.0200 / 一次): 按文章链接取一篇公众号文章：标题、正文、发布时间、公众号的名称和编号。
- [微信公众号文章列表](https://dataxapi.com/zh/apis/wechat_mp/accounts/articles/list/) ($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。价格和功能会变，做决定前请以出处为准。

- [Obsidian 帮助文档：How Obsidian stores data](https://help.obsidian.md/data-storage)

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

- [微信公众号 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/)
- [公众号文章怎么自动导入 ima 知识库（2026）](https://dataxapi.com/zh/answers/wechat-articles-to-ima-knowledge-base/)
- [视频号数据怎么导出（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-obsidian/)
