Get QR Code for Short URL
Core Endpoints
Get QR Code for Short URL
Fetch a PNG QR code for any short link with automatic scan tracking
GET
Get QR Code for Short URL
Returns a PNG QR code image pointing to an existing short URL. The generator automatically appends
?isshortqrscan=1 to the encoded link so your analytics dashboard can distinguish between regular link clicks and physical QR code scans.
You can look up the QR code using either the full short URL or the shortCode slug.
Query parameters
The slug or alias of the short URL (e.g.
summer-sale or pIh55o).The complete short link (e.g.
https://cnfy.link/summer-sale). Used if shortCode is not provided.The domain style:
standard (cnfy.link), subdomain, or branded.The subdomain name if
url_type is set to subdomain (e.g. promo).The custom domain if
url_type is set to branded (e.g. link.mybrand.com).Optional response format override:
png(default for REST API & browser): Binaryimage/pngimage bytesjson: JSON payload withdata.qr_code_data(data:image/png;base64,...) anddata.contentimage(default for MCP): Native Image Block ({ content: [{ type: "image", ... }, { type: "text", ... }] })
Response
Returns binary image data with header:Examples
- cURL (by slug)
- cURL (by full URL)
- HTML tag
Scan telemetry: The encoded link inside the QR code includes
isshortqrscan=1. When scanned with a smartphone camera, the redirect router flags the hit as a QR scan rather than a web browser click.Related endpoints
Create Short URL
Create a new short link with an auto-generated QR code →
Generate Custom QR
Create fully styled QR codes with colors, logos, and custom frames →