QR Code Generator

/api/qrcode 1 credit(s) per call

Generate customisable QR codes from URLs, text, or any data.

Overview

The QR Code Generator API creates PNG QR codes from any text or URL. Customise the size for your use case.

Endpoint

POST /api/qrcode
GET /api/qrcode/generate?text=...&size=300

Request Parameters

Parameter Type Required Description
text string Yes The text or URL to encode
size int No QR code size in pixels (default: 256, max: 2000)

Example

Generate a QR code from a URL:

curl -X POST https://simplewebapis.com/api/qrcode \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: swa_your_key" \
  -d '{"text": "https://example.com", "size": 500}'

The response is a PNG image (Content-Type: image/png).

Try it out

Use the Playground to test this API live.