# What do mid, idx and sn mean in a WeChat article link?

Beside the account's __biz, a WeChat Official Account article's long link carries mid, the send the article went out in, idx, its place in that send, and sn, a check string. A link is only whole with all four. DataXAPI reads WeChat Official Accounts with 8 endpoints, from $0.0200 a call; a failed call is not charged.

## Each parameter

`idx`: one send can carry several articles, and `idx` is the article's place. WeChat's own documents count it from 1 in the message push (`Idx`, which article of a multi-article message) and from 0 in the comment interface (`index`), so check which one a tool means.

`mid`: as public open-source tools describe it, the number of the send. WeChat's own interfaces call a send `msg_data_id`; that the link's `mid` is the same number is not in WeChat's documents. One open-source exporter calls it `appmsgid`, and the place in the send `itemidx`.

`sn`: a check parameter. As public open-source tools describe it, a link needs `__biz`, `mid`, `idx` and `sn` together before they will read an article's counts. In the links DataXAPI has recorded, `sn` is 32 hexadecimal characters, and WeChat does not open an article without it.

## What DataXAPI takes

`wechat_mp.articles.metrics` takes only the long link with all four, `https://mp.weixin.qq.com/s?__biz=<Base64>&mid=<digits>&idx=2&sn=<32 hex characters>` (placeholders: here the second article of a send). `wechat_mp.articles.get` and `wechat_mp.articles.comments.list` also take the short `/s/` link.

A long link cut before `sn`, or with an `sn` that is not 32 hexadecimal characters, is refused before anything is sent or charged. `wechat_mp.accounts.articles.list` returns long links, so its links go into the counts endpoint as they are.

## Endpoints

- [WeChat Official Account article stats](https://dataxapi.com/apis/wechat_mp/articles/metrics/) ($0.0200 / a call): Get the current counts of a WeChat Official Account article by its long link: reads, likes, recommends, shares, saves, comments.
- [WeChat Official Account article detail](https://dataxapi.com/apis/wechat_mp/articles/get/) ($0.0200 / a call): Get one WeChat Official Account article by its link: title, text, time published, the account's name and IDs.
- [WeChat Official Account article comments](https://dataxapi.com/apis/wechat_mp/articles/comments/list/) ($0.0200 / a call): Get a page of the featured comments on a WeChat Official Account article by its link: text, commenter, likes, reply count, time posted, IP location.
- [WeChat Official Account articles](https://dataxapi.com/apis/wechat_mp/accounts/articles/list/) ($0.0200 / a call): Get a page of the articles a WeChat Official Account published, newest first: title, digest, link, time published.

## How-to guides

- [How to get WeChat Official Account article reads and likes](https://dataxapi.com/guides/wechat-article-reads-and-likes/)

## Sources

What this page says of other services is from their own pages and documents, read on 2026-10-29. Prices and features change: check the source before you decide.

- [WeChat developer documents: receiving messages (Idx)](https://developers.weixin.qq.com/doc/subscription/guide/product/message/Receiving_standard_messages.html)
- [WeChat developer documents: listing comments (index)](https://developers.weixin.qq.com/doc/subscription/api/leaving/api_listcomment.md)
- [wechat-article-exporter (open-source project): article fields](https://github.com/wechat-article/wechat-article-exporter/blob/master/types/types.d.ts#L112-L117)
- [wechat_articles_spider (open-source project): link check](https://github.com/wnma3mz/wechat_articles_spider/blob/master/wechatarticles/ArticlesInfo.py#L46-L49)

## More about WeChat Official Accounts

- [WeChat Official Accounts API](https://dataxapi.com/apis/wechat_mp/)
- [Is there an API for WeChat Official Account articles?](https://dataxapi.com/answers/is-there-an-api-for-wechat-official-account-articles/)
- [How do I get WeChat Channels data?](https://dataxapi.com/answers/how-to-get-wechat-channels-data/)
- [What is __biz in a WeChat article link?](https://dataxapi.com/answers/wechat-official-account-biz/)
- [What is a WeChat Official Account's original ID (gh_)?](https://dataxapi.com/answers/wechat-official-account-original-id/)
- [What is a WeChat Channels account ID (…@finder), and what is an export ID?](https://dataxapi.com/answers/wechat-channels-finder-id/)
- [How to list a WeChat Official Account's past articles](https://dataxapi.com/guides/wechat-official-account-articles/)
- [How to get WeChat Channels video comments](https://dataxapi.com/guides/wechat-channels-video-comments/)
- [How to list a WeChat Channels account's videos](https://dataxapi.com/guides/wechat-channels-user-videos/)
- [How to get WeChat Search results by keyword](https://dataxapi.com/guides/wechat-search-posts/)

---

Catalog revision 5c3194deef3264cc. [HTML version](https://dataxapi.com/answers/wechat-article-link-mid-idx-sn/)
