Utilities API

QR Code Generator API Docs

Generate QR codes for any URL, text, or contact in one API call.

Base URL

https://api.it-stacks.com/qr-code

All endpoints are relative to this base URL. HTTPS only.

Authentication

All requests require an API key passed as a Bearer token in the Authorization header.

Authorization: Bearer YOUR_API_KEY

Get your API key from the dashboard. Keys are scoped per service — a QR Code key will not work against the Fuel API.

Endpoints

GEThttps://api.it-stacks.com/qr-code/generate

Generate a QR code image from a URL or text string.

Parameters

NameTypeRequiredDescription
datastringYesThe URL or text to encode
formatstringNoOutput format: png (default) or svg
sizeintegerNoImage size in pixels (default: 256, max: 1024)
colorstringNoForeground colour as hex, no # (default: 000000)
bgstringNoBackground colour as hex, no # (default: ffffff)

Example request

GET https://api.it-stacks.com/qr-code/generate?data=https://it-stacks.com&format=png&size=256

Example response

{
  "url": "https://cdn.it-stacks.com/qr/abc123.png",
  "format": "png",
  "size": 256,
  "data": "https://it-stacks.com"
}
GEThttps://api.it-stacks.com/qr-code/formats

List available output formats and supported options.

Example request

GET https://api.it-stacks.com/qr-code/formats

Example response

{
  "formats": ["png", "svg"],
  "max_size": 1024,
  "default_size": 256
}

Rate limits

Requests exceeding your plan limit return HTTP 429. Limits reset monthly.

PlanLimit
Free1,000 requests / month
Pro50,000 requests / month
EnterpriseUnlimited

Error codes

CodeMeaning
400Missing or invalid parameters
401Missing or invalid API key
429Rate limit exceeded
500Internal server error

Links