# Getting Mini Program Code
The Mini Program code for any of the Mini Program's screens can be obtained via backend APIs. Scan the Mini Program code to directly enter the corresponding screen of the Mini Program. All generated Mini Program codes are permanently effective. We recommend generating and using a Mini Program code as it is highly recognizable and comes with advanced capabilities such as displaying "Component for Following Official Account". The generated Mini Program code is as follows:
The generated QR code can be debugged via the QR code compiling feature in the Weixin DevTools 1.02.1803130 and later.
Two APIs are provided for developers to address different needs and scenarios.
- API A: Suitable for business scenarios that require fewer codes
- This API generates a limited number of Mini Program codes and accepts longer path parameters. For details, see Notes.
- API B: Suitable for business scenarios that require a huge number of codes
- This API generates an unlimited number of Mini Program codes and accepts shorter path parameters.
# Getting Mini Program QR Code (Not Recommended)
The Mini Program code for any of the Mini Program's screens can be obtained via a backend API. The generated Mini Program QR code is as follows:
- API C: Suitable for business scenarios that require fewer codes
- This API generates a limited number of QR codes and accepts longer path parameters. For the quantity restriction, see Notes.
# Notes
- APIs can only be used to generate QR codes of released Mini Programs.
- The total number of codes generated via API A and API C cannot exceed 100,000.
- The number of calls to API B per minute is limited to 5000. If a large number of Mini Program codes are required, pre-generation is suggested.