# Legacy QR Code Beautification API

**Not recommended: no longer maintained**
This API still works but is no longer updated. For new projects use [Label Generation](https://cli.im/open-api/en/label-api/intro.md), which offers QR code label styles for many scenarios and more flexible settings.


## Features

The legacy QR Code Beautification API generates customized QR codes through HTTP requests.

- **Parameter control**: Customize QR code colors, shapes, backgrounds, logos, and other elements.
- **Wide application**: Suitable for marketing campaigns, product packaging, business card designs, and more.
- **Quick generation**: Simply adjust the QR code content (`text`) and beautification template ID (`mhid`) in the URL to obtain QR codes with different styles.

![file](https://blogcdnimg.clewm.net/2025/03/image-1742524224345_17425242251562.png)

[Legacy QR Code Beautification API Entry](https://cli.im/api "**Legacy QR Code Beautification API**"){.wordpressBtn .text-white}

## Usage Instructions

1. **Customize beautification templates**: Adjust QR code styles on the CaoLiao platform, upload logos, modify colors, or add text.
2. **Obtain beautification template ID**: After customization, retrieve the corresponding beautification template ID and URL.
3. **HTTP request**: Replace the `text`, `mhid`, and other parameters in the generated link with your requirements, then send an HTTP request to obtain the QR code image.

### URL

```html
https://api.cl2wm.cn/api/qrcode/code?text=QR_code_content&mhid=beautification_template_id
```

### HTTP Request Method

GET

### Request Parameters

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `text` | Yes | string | QR code content: Can include URLs, text, contact information, or any other data you wish to encode. |
| `mhid` | Yes | string | Beautification template ID: Each template has a unique ID. Different templates change the QR code's visual design. The template library offers various styles to meet different branding needs. |

### Adjust Beautification Templates

Customize beautification templates as needed, including uploading logos, adjusting code points and eyes, changing colors, or adding text.

![file](https://blogcdnimg.clewm.net/2025/02/image-1738725017261_17387250176737.png)

Predefined templates are available for quick application, or you can fully customize the design.

![file](https://blogcdnimg.clewm.net/2025/02/image-1738725074076_17387250749118.png)

### Obtain Beautification Template ID

After adjusting the template, click **"Complete"** to return to the API interface. **The adjusted beautification template ID will be automatically generated. Simply "Copy Link" for immediate use.**

![file](https://blogcdnimg.clewm.net/2025/02/image-1738725439762_17387254401343.png)
