apyhub
SMART GENERATION

Generate Simple QR Code API

What it does

QR Code Generator turns text or a URL into a PNG QR code. Send the data you want encoded, and you get back a binary image response that you can download, store, or embed in your app.

Use size to control the output dimensions, from 1 to 40, with a default of 10. That makes it easy to generate compact codes for receipts and labels, or larger ones for posters, packaging, and print materials where scan reliability matters.

This is a straightforward fit for systems that need to render QR codes on demand: checkout pages, invitation flows, asset labels, event badges, or internal tools that attach machine-readable links to documents and products.

If you already have the destination text or link, QR Code Generator handles the image generation step and returns the PNG directly, without extra formatting or metadata.

GET
Render any text or URL as a QR code PNG image
http://localhost:8080/dosvak/qr-code
QUICKSTARTGUIDE

Quickstart

Fetch a QR code image for the provided data value and requested size.

curl -X GET "http://localhost:8080/dosvak/qr-code?data=hello%20world&size=10" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a binary file (string with format: binary) containing the generated QR code image.

(binary image data)
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.

About this endpoint

What it does

Renders the provided text or URL as a QR code PNG image and returns the generated file as binary data.

Query Parameter(s)

AttributeTypeMandatoryDescription
dataStringYesText or URL to encode in the QR code.
sizeIntegerNoQR code size. Default: 10. Minimum: 1. Maximum: 40.

Response

Returns a binary response containing the generated QR code PNG image.

ParameterTypeMandatoryDescription
binaryStringYesPNG image data returned as a binary payload.

Query parameters

Name
Type
Description
dataREQUIRED
string
sizeOPTIONAL
integer
DEFAULT 10
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.