March 25, 20263 min read

QR Code API Integration Guide — Developer Tutorial

Integrate QR code generation into your app with the QRMax API. REST endpoints, authentication, customization, and code examples.

api developer integration automation tutorial
Ad 336x280

Building an app that needs to generate QR codes on the fly? The QRMax API lets you create, customize, and manage QR codes programmatically. This guide covers authentication, endpoints, and practical code examples.

Getting Started

  1. Create an account at QRMax
  2. Generate an API key from your dashboard settings
  3. Choose your plan — API access is available on paid plans
  4. Start making requests to https://api.qrmax.io/v1/

Authentication

All requests require a Bearer token in the Authorization header:

curl -X POST https://api.qrmax.io/v1/create \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": "https://example.com", "format": "png"}'

Core Endpoints

EndpointMethodDescription
/v1/createPOSTGenerate a new QR code
/v1/dynamicPOSTCreate a dynamic QR code with tracking
/v1/update/{id}PUTUpdate a dynamic QR code's destination
/v1/analytics/{id}GETRetrieve scan analytics
/v1/delete/{id}DELETERemove a dynamic QR code
/v1/listGETList all your QR codes

Request Parameters

ParameterTypeRequiredDescription
datastringYesContent to encode (URL, text, etc.)
formatstringNoOutput format: png, svg, pdf (default: png)
sizeintegerNoImage size in pixels (default: 300)
colorstringNoModule color as hex (default: #000000)
backgroundstringNoBackground color as hex (default: #FFFFFF)
errorCorrectionstringNoLevel: L, M, Q, H (default: M)
logostringNoURL to a logo image for center overlay

Code Examples

JavaScript/Node.js

const response = await fetch('https://api.qrmax.io/v1/create', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    data: 'https://example.com',
    format: 'svg',
    color: '#6366f1',
    errorCorrection: 'H'
  })
});
const result = await response.json();
console.log(result.imageUrl);

Python

import requests

response = requests.post('https://api.qrmax.io/v1/create',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={'data': 'https://example.com', 'format': 'png', 'size': 500}
)
with open('qr.png', 'wb') as f:
f.write(response.content)

Rate Limits

PlanRequests/MinuteRequests/Month
Starter305,000
Pro12050,000
Enterprise500Unlimited

Error Handling

The API returns standard HTTP status codes. Common errors:

CodeMeaningAction
400Invalid request bodyCheck required parameters
401Invalid API keyVerify your Bearer token
429Rate limit exceededWait and retry with backoff
500Server errorRetry; contact support if persistent

Can I generate QR codes without storing them on QRMax?

Yes. Static QR code creation returns the image directly without storing anything server-side. Only dynamic QR codes are stored for redirect management.

Is the API suitable for high-volume generation?

The Enterprise plan handles thousands of requests per minute. For batch generation, see our bulk QR codes guide.

Ad 728x90