# 公众号文章链接里的 __biz 是什么？

__biz 是公众号文章长链接里代表公众号的那一段，是一串 Base64 文本。DataXAPI 的文章接口收整条长链接；__biz 不是公众号接口要的 gh_ 原始编号。 DataXAPI 有 8 个微信公众号接口，一次 $0.0200 起，失败不收费。

## 它是什么，出现在哪里

文章长链接长这样：`https://mp.weixin.qq.com/s?__biz=<Base64>&mid=<数字>&idx=1&sn=<32 位十六进制>`（占位写法，不是真实文章）。`__biz` 代表公众号，`mid`、`idx`、`sn` 指出是这个号的哪篇文章。

我们没有找到官方说明。据公开的开源项目说明，它是一个代表公众号的数字的 Base64 编码；有个项目专门写了函数，在它和公众号后台用的编号之间互相转换。

## DataXAPI 怎么用它

`wechat_mp.articles.get`、`wechat_mp.articles.comments.list`、`wechat_mp.articles.metrics` 的 `url` 参数收这种长链接，前两个也收 `/s/` 开头的短链接。返回里文章的 `id` 是 `__biz`、`mid`、`idx` 用 `_` 连起来的：它标明是哪篇文章，但取文章要用 `url`，不能用这个 `id`。

`wechat_mp.accounts.get` 和 `wechat_mp.accounts.articles.list` 要的是 `gh_` 开头的原始编号。把 `__biz` 填进去会被直接拒绝，不扣费；用 `wechat_mp.articles.get` 返回的 `author.id`，那才是原始编号。

## 用到的接口

- [微信公众号文章详情](https://dataxapi.com/zh/apis/wechat_mp/articles/get/) ($0.0200 / 一次): 按文章链接取一篇公众号文章：标题、正文、发布时间、公众号的名称和编号。
- [微信公众号文章互动数据](https://dataxapi.com/zh/apis/wechat_mp/articles/metrics/) ($0.0200 / 一次): 按文章长链接取这篇公众号文章此刻的数字：阅读、点赞、推荐、分享、收藏、评论。
- [微信公众号文章评论](https://dataxapi.com/zh/apis/wechat_mp/articles/comments/list/) ($0.0200 / 一次): 按文章链接取一页公众号文章的精选评论：正文、评论者、点赞数、回复数、发布时间、IP 属地。
- [微信公众号文章列表](https://dataxapi.com/zh/apis/wechat_mp/accounts/articles/list/) ($0.0200 / 一次): 按公众号原始编号取一页它发布的文章，从新到旧：标题、摘要、链接、发布时间。

## 怎么做

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

## 出处

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

- [wechat_articles_spider（开源项目）：__biz 的转换](https://github.com/wnma3mz/wechat_articles_spider/blob/master/wechatarticles/utils.py#L206-L211)
- [wechat_articles_spider（开源项目）：__biz 的注释](https://github.com/wnma3mz/wechat_articles_spider/blob/master/wechatarticles/utils.py#L157-L158)

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

- [微信公众号 API](https://dataxapi.com/zh/apis/wechat_mp/)
- [公众号文章能用 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/)
- [公众号文章链接里的 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/)
- [如何获取公众号文章阅读数和点赞数](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/)

---

目录修订号 5c3194deef3264cc。 [网页版](https://dataxapi.com/zh/answers/wechat-official-account-biz/)
