Short answer: In this WeChat API overview: "WeChat API" isn't one API. Tencent offers five official API families by account type: Official Accounts, Mini Programs, WeChat Pay, Open Platform and WeCom. Personal WeChat accounts have no official API.
The five official APIs and personal accounts
| Platform | Who can apply | Main APIs | Can't do | Official docs |
|---|---|---|---|---|
| Official Account (Service / Subscription) | Companies or individuals; advanced APIs need a verified Service Account | Custom menus, template messages, web OAuth, customer service messages, JS-SDK | Limited proactive messaging; no personal accounts | developers.weixin.qq.com/doc/offiaccount |
| Mini Program | Companies or individuals | wx.login and code2session, phone number, subscription messages, QR codes | Subscription messages need per-message user consent | developers.weixin.qq.com/miniprogram |
| WeChat Pay | Merchant account for companies; cross-border options for overseas merchants | JSAPI, Native, H5 and in-app payments, refunds, statements | Merchant review required | pay.weixin.qq.com |
| Open Platform | Companies with developer verification | Website QR login, in-app WeChat login, UnionID | Login and sharing only, no messaging | open.weixin.qq.com |
| WeCom (WeChat Work) | Companies | Directory, app messages, customer contact, group bot webhook, Conversation Archive | External group bots are push-only; archive is paid and needs consent | developer.work.weixin.qq.com |
| Personal WeChat | Not offered | No official API | Only via third-party protocols or hosting | — |
Which one do you need?
- Serve users and send notifications inside WeChat: an Official Account (Service Account) or a Mini Program.
- Take payments: WeChat Pay, using JSAPI on web and Mini Program payments in Mini Programs.
- Let users sign in with WeChat on your site or app: Open Platform.
- Manage staff, reach customers or push alerts to internal groups: WeCom. The simplest alert channel is the group bot webhook.
- Automate a personal WeChat account or manage WeChat groups: there's no official option; see Is there a personal WeChat API?
The common foundation: access_token
Official Account, Mini Program and WeCom server APIs all start by exchanging AppID and AppSecret (corpid and secret in WeCom) for an access_token valid for 7,200 seconds. Common pitfalls:
- Fetching a new token on every call hits rate limits. Cache it server-side and refresh before expiry.
- Several servers refreshing independently invalidates older tokens and returns
40001. Refresh from one central service. - Server IPs missing from the Official Account IP whitelist return
40164.
Can overseas companies use the WeChat API?
Official Accounts and Mini Programs accept some overseas entities, with a different process and documents; WeChat Pay has cross-border payment programs for overseas merchants; WeCom requires company verification. Requirements change often, so check Tencent's latest guidance. The docs are mostly in Chinese, and field names in the English docs don't always match, so keep the Chinese docs open alongside.
FAQ
Is the WeChat API free?
The Official Account, Mini Program, Open Platform and WeCom APIs are free to call, but verification carries an annual fee; WeChat Pay charges a transaction rate; some WeCom features such as Conversation Archive are paid.
Do personal WeChat accounts have an official API?
No. Tencent offers no official API for personal WeChat accounts.
Do I need a Chinese business license?
It depends on the product. Some products accept overseas entities; others, such as domestic WeChat Pay merchant accounts, require a Chinese entity.
Official APIs can't do what you need? See the personal WeChat and WeCom API.
Related: WeCom webhook bot: how to send group messages · Is there a personal WeChat API? Limits and options