Overview

The QRtag QR Code API generates clean, scan-ready QR code images from any URL or text with a single GET request — no authentication or signup required. You can control the output size by appending a size suffix to the API endpoint and receive either a PNG or SVG image directly. It also doubles as a simple URL shortener, making it useful for print materials, event tickets, and product packaging workflows.

Beginner Tip

No account or API key is needed — just construct a URL like https://api.qrtag.net/api/qr_10.svg?url=https://example.com and paste it into a browser or img tag to instantly see a QR code. The number after "qr_" sets the image size in centimetres (1-40). For a first test, try the SVG format as it scales perfectly at any resolution.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

shortened URL
original URL
click count
creation date
generated QR code image
encoded data string

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "id": "abc123",
  "short_url": "https://short.ly/abc123",
  "long_url": "https://example.com/very/long/url/path",
  "clicks": 1542,
  "created_at": "2025-01-10T14:30:00Z"
}

Field Reference

(binary image) Raw PNG or SVG image data returned directly in the response body; save to a file or embed via an img tag src attribute

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.qrtag.net/api/qr_5.png?url=https%3A%2F%2Fexample.com";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Blank or broken image returned The url parameter was not URL-encoded, so special characters corrupted the query string
URL-encode your target URL before passing it — in JavaScript use encodeURIComponent(), in curl encode special characters manually
QR code generated but does not scan Requested size is too small for the amount of data encoded
Increase the size suffix (e.g., qr_5 or qr_10) to give scanners enough pixels to decode the pattern reliably
CORS error when fetching from JavaScript Browser security prevents direct fetch of cross-origin image responses with JavaScript
Use an img tag with the API URL as the src attribute instead of fetching programmatically, or proxy through your backend

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Development
Difficulty Beginner
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →