Today we are releasing v1.2 of the Plung public API, focusing on our new Growth Tools suite. This update introduces a dedicated endpoint for generating high-quality QR codes for your shortened links programmatically.
This capability is now available on the authenticated public API, so requests must include your API key as a Bearer token.
The Power of Programmatic QR Codes
QR codes bridge the gap between physical and digital spaces. Developers often find themselves needing to generate QR codes for marketing materials, event tickets, or product packaging. Previously, this required integrating complex third-party libraries or relying on disparate services.
Now, Plung handles this natively. By using the new endpoint, you can instantly turn any Plung short code into a highly reliable QR code. For example, a restaurant platform can automatically generate a unique QR code for every digital menu link and embed it directly into their printable assets.
Example Integration
Generating a QR code is effortless. The endpoint supports both png and svg formats and allows you to customize the image size.
curl -o qr.png -H "Authorization: Bearer your_api_key_here" "https://api.plung.co/v2/qr/my-menu?format=png&size=500"
In this example, the request instantly downloads a 500x500 pixel PNG image of the QR code for the short link plung.co/my-menu. No additional processing is required.
High Reliability and Performance
To ensure maximum scannability, all generated QR codes use the highest error correction level (Level H). This means your codes will remain scannable even if up to 30% of the image is obscured or damaged.
Furthermore, we've implemented an aggressive caching layer. Generated QR codes are cached globally for 24 hours, ensuring lightning-fast response times for repeated requests on high-traffic sites.
Full details on formatting options, sizing, and error handling can be found in our Developer Documentation.
The Plung API remains free and open for everyone. We can't wait to see how you integrate offline tracking into your workflows with these new capabilities.
Written by
Plung Team