Skip to main content

Using the QR Code API

Generate QR codes programmatically using a simple HTTP request. This is ideal for creating QR codes dynamically for any data.

Vikash Jha avatar
Written by Vikash Jha
Updated over 2 months ago

API Endpoint

https://api.sqrc.toolstr.com/qrcode?key=<your-api-key>&data=<qr-code-content>&width=<optional-width>&type=<optional-type>

Parameters

Parameter

Required

Description

key

Your API key. Available under SettingsAPI Key in your Super QR Codes dashboard.

data

The content you want encoded in the QR code (e.g., a URL, text, or discount link).

width

Optional width of the QR code image. Default is 200.

type

Output format — either png or svg. Default is png.


Example API Request

Example 1 – Generate PNG QR Code

https://api.sqrc.toolstr.com/qrcode?key=abc123xyz&data=https://example.com&width=300&type=png

✅ Returns a PNG image of the QR code with 300px width.

Example 2 – Generate SVG QR Code

https://api.sqrc.toolstr.com/qrcode?key=abc123xyz&data=Welcome%20to%20Super%20QR%20Codes&type=svg

✅ Returns a SVG image suitable for print or high-resolution applications.


API Response

The API returns the QR code image directly with the appropriate MIME type:

Type

MIME Type

PNG

image/png

SVG

image/svg+xml

You can use this endpoint in your app, website, or workflow to display or store the QR code.


Example Usage in HTML

<img src="https://api.sqrc.toolstr.com/qrcode?key=abc123xyz&data=https://example.com&width=200&type=png" alt="QR Code" />

Notes

  • Ensure your API key remains private — do not share it publicly.

  • Each request is rate-limited to prevent abuse.

  • The generated QR codes do not expire.

  • The content in the data parameter must be URL encoded.


Common Use Cases

  • Generate QR codes dynamically for orders, customers, or campaigns.

  • Embed live QR codes in emails, receipts, or dashboards.


Summary

The Super QR Codes API is a fast and simple way to generate QR codes programmatically. Just provide your API key, data, and optional parameters — and receive a ready-to-use QR code in PNG or SVG format instantly.

Did this answer your question?