# How do I find a WeChat Official Account's original ID (gh_...)?

Open any article from the account in a desktop browser, view the page source and search for `user_name`: the article HTML carries a line like `var user_name = "gh_xxxxxxxxxxxx";`, which is the account's original ID. The same page has `var biz`, the account's __biz. With the gh_ ID (or the account's WeChat ID, such as rmrbwx) XTikAPI's `wechat_mp.posts.list` returns the account's articles, $0.02 a page.

Updated 2026-11-24

## Three ways to get it

| Way | What you do | Notes |
|---|---|---|
| Article source | Open an article URL (`mp.weixin.qq.com/s/...`), view source, find `var user_name = "gh_..."` | Ignore other gh_ IDs inside `biz_info` blocks: those belong to cards embedded in the article |
| Account profile in WeChat | Profile → ··· → account details | Shows the WeChat ID when the account set one; it also works as `id` |
| Tools that search by name | we-mp-rss and similar self-hosted tools look the account up after you log in to your own Official Account | In we-mp-rss issue 6 (June 2025) users found search only worked after scanning to authorize; one release had a search bug fixed a day later |

We checked the first way on a live article in November 2026: the page source had `var user_name = "gh_..."` next to `var biz` and the account nickname.

## Then pull the articles

1. `wechat_mp.posts.list` with `id` = the gh_ ID or WeChat ID; pass `cursor` for older pages (about 10 pushes a page).
2. `wechat_mp.posts.detail` with `url` for full text.
3. `wechat_mp.posts.metrics` with `url` for reads and likes.

No QR login on your side and no public account of your own needed. Cost: 20 accounts checked daily = 600 calls a month × $0.02 = $12.

## Why XTikAPI

- XTikAPI reads WeChat Official Accounts with 7 endpoints from $0.02 a call, and a failed call is not charged.
- Fewer tokens for AI: across 4 recorded live WeChat Official Accounts calls (2026-11-18), raw platform JSON is ~64k tokens vs ~2k via XTikAPI REST (96.4% fewer) and ~2k via MCP (96.3% fewer).
- See before you pay: 192 of 229 endpoints show a recorded real response on their page (5 of 7 for WeChat Official Accounts).
- Spending you control: a failed call or a timeout is not charged (charged: false), X-Max-Price caps one call, and the same Idempotency-Key within 24 hours is never billed twice.
- Free trial: a verified account gets $0.50, no card.

## Endpoints

- [WeChat Official Accounts article list API](https://xtikapi.com/apis/wechat_mp/posts/list) ($0.02 a call): Articles published by one WeChat Official Account.
- [WeChat Official Accounts article details API](https://xtikapi.com/apis/wechat_mp/posts/detail) ($0.02 a call): One WeChat Official Account article by link.
- [WeChat Official Accounts article read count API](https://xtikapi.com/apis/wechat_mp/posts/metrics) ($0.02 a call): Read count, likes, shares, comments and saves of a WeChat Official Account article.
- [WeChat Official Accounts account details API](https://xtikapi.com/apis/wechat_mp/accounts/detail) ($0.02 a call): A WeChat Official Account profile.

## More about WeChat Official Accounts

- [WeChat Official Accounts API](https://xtikapi.com/apis/wechat_mp)
- [How can an AI agent read WeChat Official Account articles?](https://xtikapi.com/answers/ai-agent-read-wechat-articles)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-24.

- [we-mp-rss issue #6 (how to get the account ID)](https://github.com/rachelos/we-mp-rss/issues/6)
- [we-mp-rss issue #36 (account search not working)](https://github.com/rachelos/we-mp-rss/issues/36)

## Questions

### Is the gh_ ID the same as __biz?

No. __biz is a base64 string (`var biz` in the article source); gh_ is the original ID (`var user_name`). Both identify the account.

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/wechat-mp-gh-id-how-to-find) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
