# What is a WeChat Official Account's original ID (gh_)?

The original ID is the fixed ID of a WeChat Official Account (公众号), starting with gh_, like gh_0123456789ab (made up). It is not the account's name; DataXAPI's account endpoints take it as id, and an article's author.id gives it. DataXAPI reads WeChat Official Accounts with 8 endpoints, from $0.0200 a call; a failed call is not charged.

## Where you see it

In WeChat's own developer documents, the messages an account's server receives name the account in `ToUserName`, described as the developer's WeChat ID, and the examples give it as a `gh_` value. Its owner sees it in the account's admin, under the registration details of the account settings, as a third-party setup guide describes it.

It is not the account's name, which can be the same for several accounts, nor the alias an account can set; an article's `author.username` carries the alias.

## Which endpoints take or return it

`wechat_mp.accounts.get` takes it as `id` and returns the account's name, IP location, number of original articles and its linked WeChat Channels account (`ext.channels_id`). `wechat_mp.accounts.articles.list` takes it as `id` and returns the account's articles, newest first.

Knowing only the name: search with `wechat.posts.search`, which gives no account ID but gives an article's link, then get the article with `wechat_mp.articles.get`; its `author.id` is the original ID.

## Endpoints

- [WeChat Official Account profile](https://dataxapi.com/apis/wechat_mp/accounts/get/) ($0.0200 / a call): Get a WeChat Official Account by its original ID: name, IP location, number of original articles, the linked Channels account.
- [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.
- [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 Search articles and videos](https://dataxapi.com/apis/wechat/posts/search/) ($0.0200 / a call): Get a page of WeChat Search results for search terms: Official Account articles and Channels videos mixed, each saying in type whether it is an article or a video; by relevance, newest or hottest, filtered by time posted: title or description, the source account's name, time published, an article's link, a video's likes and saves. WeChat Search gives no account ID.

## How-to guides

- [How to list a WeChat Official Account's past articles](https://dataxapi.com/guides/wechat-official-account-articles/)

## 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 (ToUserName)](https://developers.weixin.qq.com/doc/subscription/guide/product/message/Receiving_standard_messages.html)
- [WeChat developer documents: mass send results](https://developers.weixin.qq.com/doc/subscription/guide/product/message/Batch_Sends.html)
- [Chatalog docs (third-party guide): WeChat setup](https://docs.chatalog.ai/zh-cn/platform-setup/wechat)

## More about WeChat Official Accounts

- [WeChat Official Accounts API](https://dataxapi.com/apis/wechat_mp/)
- [WeChat Search API](https://dataxapi.com/apis/wechat/)
- [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 do mid, idx and sn mean in a WeChat article link?](https://dataxapi.com/answers/wechat-article-link-mid-idx-sn/)
- [What is a WeChat Channels account ID (…@finder), and what is an export ID?](https://dataxapi.com/answers/wechat-channels-finder-id/)
- [How to get WeChat Official Account article reads and likes](https://dataxapi.com/guides/wechat-article-reads-and-likes/)
- [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-official-account-original-id/)
