# WeChat Open Platform — Mobile App Login (OAuth 2.0)

**Canonical:** https://apis.io/apis/wechat/wechat-open-platform-mobile-login/  
**Provider:** WeChat — https://apis.io/providers/wechat/  
**Base URL:** https://api.weixin.qq.com  
**Documentation:** https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Development_Guide.html

WeChat Open Platform — Mobile App Login (OAuth 2.0) is one of 16 APIs that [WeChat](https://apis.io/providers/wechat/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include Identity, Authentication, Login, Mobile, and Open Platform. The published artifact set on APIs.io includes API documentation and an API reference.

OAuth 2.0 authorization flow exposed by the WeChat Open Platform for native iOS, Android, and HarmonyOS apps. Apps redirect into WeChat to obtain an authorization code, then exchange it via `https://api.weixin.qq.com/sns/oauth2/access_token` for an access token (snsapi_userinfo scope), refresh tokens via `/sns/oauth2/refresh_token`, and fetch profile via `/sns/userinfo`. Access tokens expire in 7200 seconds; refresh tokens last 180 days. Underpins "Login with WeChat" across third-party mobile apps.

## Machine-readable artifacts (3)

- **Documentation** — https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Development_Guide.html
- **Portal** — https://open.weixin.qq.com/
- **APIReference** — https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_Login/Authorized_Interface_Calling_UnionID.html

## Other WeChat APIs (12)

- [WeChat Mini Programs Server API](https://apis.io/apis/wechat/wechat-mini-programs-server-api/)
- [WeChat Mini Programs Client API](https://apis.io/apis/wechat/wechat-mini-programs-client-api/)
- [WeChat Pay APIv3 (Direct-Connect Merchant)](https://apis.io/apis/wechat/wechat-pay-apiv3-direct-merchant/)
- [WeChat Pay APIv3 (Service Provider / Partner)](https://apis.io/apis/wechat/wechat-pay-apiv3-service-provider/)
- [WeChat Pay Global v3 API](https://apis.io/apis/wechat/wechat-pay-global-v3/)
- [WeChat Open Platform — Website Login (QR OAuth)](https://apis.io/apis/wechat/wechat-open-platform-website-login/)
- [WeChat Open Platform — Third-Party Platform API](https://apis.io/apis/wechat/wechat-open-platform-third-party/)
- [WeChat Official Accounts API](https://apis.io/apis/wechat/wechat-official-accounts-api/)
- [WeChat Work (WeCom) API](https://apis.io/apis/wechat/wechat-work-api/)
- [WeChat Cloud Hosting API](https://apis.io/apis/wechat/wechat-cloud-hosting-api/)
- [WeChat Channels (Video Accounts) Developer Surface](https://apis.io/apis/wechat/wechat-channels-api/)
- [WeChat Shop (微信小店) API](https://apis.io/apis/wechat/wechat-shop-api/)

## Tags

Identity, Authentication, Login, Mobile, Open Platform

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/wechat/wechat-open-platform-mobile-login/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/wechat/.
