The MrQR API lets you generate customizable QR Codes with just a URL so you can make your dynamic QR Codes. This guide walks you through using the API, covering the available parameters, examples, and how to display generated QR codes directly on your website.
https://mrqr.net/api/v1/
size=300x300color=ff0000bgcolor=ffffffdata=Hello+Worldhttps://mrqr.net/api/v1/&.data are URL encoded. For example, spaces become + or %20.curl or Postman to test the API.Creates a 300x300 red QR code encoding "Hello".
https://mrqr.net/api/v1/?size=300x300&color=ff0000&data=Hello
Creates a 300x300 red QR code with a white background encoding "Hello".
https://mrqr.net/api/v1/?size=300x300&color=ff0000&bgcolor=ffffff&data=Hello
Generates a QR code with red foreground and transparent background encoding "Simple QR Code".
https://mrqr.net/api/v1/?size=300x300&color=ff0000&data=Simple+QR+Code
Generates a blue QR code with a light gray background encoding "Custom Background".
https://mrqr.net/api/v1/?size=400x400&color=0000ff&bgcolor=cccccc&data=Custom+Background
Generates a green QR code with a transparent background encoding a URL.
https://mrqr.net/api/v1/?size=500x500&color=00ff00&data=https://example.com
color parameter.color=ff00ff for magenta.bgcolor parameter.bgcolor=000000 for black.size parameter.size=600x600 for a larger QR code.You can directly display the generated QR code on your website using the <img> tag by constructing the API URL and setting it as the image source.
<img src="https://mrqr.net/api/v1/?size=300x300&color=ff0000&data=Hello" alt="MrQR API">
If required parameters (size, color, data) are missing, you’ll see an error.
Missing required parameters. Please provide size, color, and data.
If the size format is incorrect, you’ll see:
Invalid size format. Expected format: widthxheight (e.g., 150x150)
The MrQR API is a free-to-use API for generating customizable QR codes from URLs. Modify parameters to create the QR Code that fits your needs. Experiment with different combinations, and refer to error messages if you encounter any issues.