QR Code Generation
The /qrcode endpoint generates a QR Code from a URL provided as a parameter. This endpoint is useful for quickly generating an image in PNG format.
gethttps://api.moxon.dev /v3/qrcode
urlstringrequiredThe URL to encode in the QR Code. Must contain the full address
GET /v3/qrcode?url=https://moxon.dev{
"qr": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAYAAABRRIOnAAAAAklEQVR4AewaftIAAAOaSURBVO3BQY5jBxYDwcwH3f/KnF7MgqsPCFKV7..."
}| Field | Description |
|---|---|
qr | Base64-encoded PNG image of the QR Code |
curl -X GET "https://api.moxon.dev/v3/qrcode?url=https://moxon.dev"The response contains a base64-encoded PNG image. You can use it directly in HTML:
<img src="data:image/png;base64,iVBORw0KGgo..." alt="QR Code" />Or decode it and save as a file in your application.
If parameters are missing or invalid, the API will return an error:
- 400
Please provide a valid url (?url={URL})Theurlparameter is missing or invalid
Last updated on April 8, 2026