API & MCP

Everything a person can do on QR Code Generator (print-ready), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

QR Code Generator (print-ready)

Encode a link, text, Wi-Fi login, contact card, e-mail, phone, SMS or map location as a QR code following ISO/IEC 18004 (versions 1–40, error correction L/M/Q/H, optimal mode switching, all eight masks scored). Get a print page with a test square, the code alone as SVG and PNG, a sheet of copies or Wi-Fi guest cards.

Inputs of QR Code Generator (print-ready)
FieldTypeDefaultDescription
contentselect (url, text, wifi, email, phone, sms, geo)"url"Content type
texttextarea"https://usefulweb.site/"Content. The address, text, e-mail address, phone number or "latitude, longitude". Not used for Wi-Fi.
ssidtext—Wi-Fi network name (SSID)
passwordtext—Wi-Fi password. Only used for the code; it is not shown in the result or stored in the share link.
securityselect (WPA, WEP, nopass)"WPA"Wi-Fi security
hiddenbooleanfalseHidden network
layoutselect (one, sheet, wifi-card)"one"Print layout
eccselect (L, M, Q, H)"M"Error correction
sizenumber60Code width (mm, with quiet zone)
quietinteger4Quiet zone (modules)
darktext"#000000"Dark colour
lighttext"#ffffff"Light colour
logonumber0Logo-safe area (% of the code width). Leaves an empty square in the centre for a logo and checks it against the error correction.
captiontext—Caption under the code
paperselect (a3, a4, a5, a6, b5, letter, legal, tabloid, halfletter)"a4"Paper size
orientationselect (portrait, landscape)"portrait"Orientation

Example request

Link to a website

curl -X POST https://printshopqrcode.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"content":"url","text":"https://usefulweb.site/","ecc":"M","size":60}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "printshop-qr-code": { "type": "http", "url": "https://printshopqrcode.usefulweb.app/mcp" }
  }
}