What do mid, idx and sn mean in a WeChat article link, and must I convert a short link?
In a long WeChat article URL, __biz identifies the account component, mid the publication batch, idx the article’s position within the batch and sn the link’s check value. To read an article’s text or engagement counts, pass the complete URL you received, without editing the parameters. Short article links work too. When you clean up a list of links, keep idx: __biz + mid + idx together identify one article.
When do __biz, mid, idx and sn matter?
The common mistake is dropping idx. Two links with the same __biz and mid but idx=1 and idx=2 identify two different articles in the same batch. Keep both links; do not deduplicate by account or by mid alone.
Do not rename mid into another API’s field. Use the complete url to read an article, and take user_name from the article detail when you need account history.
Organize a list supplied by a colleague
Keep the original list, then handle each link form as follows:
Keep a short URL and a long URL as separate records until checkable article information links the two. Matching titles are useful clues, not sufficient grounds to delete one record.
If you also receive a URL with extra source parameters, group the URL provisionally by __biz, mid and idx and keep every original link. After reading the article, verify the group with the returned title and source.
Organize larger lists locally first
The audit_links.py helper below checks 1–200 links without visiting the articles and writes two files:
input-urls.json: the original input for reference.link-audit.json: URL forms, long-link identity components and candidate groups.
In same_long_identity_groups, input_indices are zero-based positions in the input JSON array. Every original URL is kept. Short links stay unresolved until you read the article. link-audit.json describes URL structure only; whether an article is accessible is shown by an actual read.
Once the list is ready, choose articles for body reading or engagement statistics. For account history, follow the article-to-account handoff. Call prices are on the pricing page.
Optional offline helper
Save your actual URLs as a JSON array in article-links.json, in the format below:
Save the script further below as audit_links.py, then run:
audit_links.py checks the public-share URL structure and keeps the original URLs and input bytes. If copied text or identity parameters need attention, audit_links.py stops and reports the problem for correction. Use a new output-directory name for each run so earlier results are kept.

