Add a QR Code to Any Short Link
Before you start
- Have a short link already created with ogli.sh
- Note the link slug (e.g.,
AbC123
fromhttps://ogli.sh/AbC123
)
1) QR codes are automatically generated
Every ogli.sh short link automatically gets a QR code. Just add /qr/
before your slug:
# If your short link is:
https://ogli.sh/AbC123
# Your QR code URL is:
https://ogli.sh/qr/AbC123
2) Get the QR URL from API response
When you create a link, the response includes the QR code URL:
// Response from POST /link
{
"url": "https://ogli.sh/AbC123",
"qrCodeUrl": "https://ogli.sh/qr/AbC123",
"id": "link-id-123",
"slug": "AbC123"
}
3) Use the QR code
- In HTML:
<img src="https://ogli.sh/qr/AbC123" alt="QR Code" />
- Print materials: Right-click the QR URL → Save image
- Mobile apps: Embed the QR URL directly
QR code features
- ✅ High resolution PNG format
- ✅ Optimized for printing and screens
- ✅ Same analytics as your short link
- ✅ Works with custom domains