# Getting Mini Program Code
The Mini Program code of any Mini Program page can be obtained via the backend API. Scan the Mini Program code to directly enter the corresponding page 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 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 a less number of codes
- Generates limited number of Mini Program codes, and accepts the path parameter with longer length. For details, see Notes.
- API B: Suitable for business scenarios that require a huge number of codes
- Generates unlimited number of Mini Program codes, and accepts the path parameter with shorter length.
# Getting Mini Program QR Code (Not Recommended)
The Mini Program QR code of any Mini Program page can be obtained via the backend API. The generated Mini Program QR code is as follows:
- API C: Suitable for business scenarios that require a less number of codes
- Generates limited number of QR codes, and accepts the path parameter with longer length. For details, see Notes.
# Notes
- APIs can only be used to generate the QR codes of published Mini Programs.
- The total number of codes generated via API A and API C is 100,000.
- The number of calls to the API B per minute is limited to 5000. If a large number of Mini Program codes are required, pre-generation is suggested.