Get Mini Program Code

View Markdown

Last edited on 2026-07-23

You can use the backend API to retrieve the Mini Program Code for any page of a Mini Program. Scanning this Mini Program Code directly opens the corresponding page in the Mini Program. All generated Mini Program Codes are permanently valid and can be used with confidence.

We recommend generating and using Mini Program Codes, as they offer better recognition and support advanced features such as displaying the "Official Account Follow Component".

The generated Mini Program Code is shown below:

You can debug the obtained Mini Program Code using Developer Tools version 1.02.1803130 or later via the Toolbar - Custom Compile Conditions - Compile by QR Code feature.

Compile by QR Code

To meet different needs and scenarios, two APIs are provided. Developers can choose the one that best suits their requirements.

You can obtain the Mini Program QR code for any page of a Mini Program via the backend API. The generated Mini Program QR code is shown below:

Retrieve Mini Program QR Codes (Unique QR Code per Item)

WeChat Unique QR Code supports generating Mini Program QR codes. QR codes issued via the "Unique QR Code" API are more secure and support smaller printing areas compared to standard link QR codes. They can redirect to a specific Mini Program page and have no quantity limits.

Precautions

  1. The interface can only generate QR codes for published Mini Program .
  2. The total number of codes generated by Interface A and Interface C combined is limited to 100,000. Please call with caution.
  3. Interface B is subject to a per-minute frequency limit (5,000 calls/minute). If you need a large number of Mini Program codes, we recommend pre-generating them.