The FreeQR API allows you to generate customizable QR codes with a variety of options including size, foreground color, and background color. This documentation will guide you through using the API, detailing the available parameters, and providing examples for generating QR codes with specific customizations.
https://freeqr.com/api/v1/
size=300x300color=ff0000bgcolor=ffffffdata=Hello+WorldThis will generate a 300x300 QR code with red foreground color and a transparent background encoding the data "Hello".
https://freeqr.com/api/v1/?size=300x300&color=ff0000&data=Hello
This will generate a 300x300 QR code with red foreground color and a white background encoding the data "Hello".
https://freeqr.com/api/v1/?size=300x300&color=ff0000&bgcolor=ffffff&data=Hello
https://freeqr.com/api/v1/size, color, data) and optional parameter (bgcolor) as query parameters.&.data parameter are URL encoded. For example, spaces should be encoded as + or %20.curl or Postman to test the API by entering the constructed URL.This will generate a QR code with a red foreground and a transparent background.
https://freeqr.com/api/v1/?size=300x300&color=ff0000&data=Simple+QR+Code
This will generate a QR code with a blue foreground and a light gray background.
https://freeqr.com/api/v1/?size=400x400&color=0000ff&bgcolor=cccccc&data=Custom+Background
This will generate a QR code with a green foreground and a transparent background encoding the URL https://example.com.
https://freeqr.com/api/v1/?size=500x500&color=00ff00&data=https://example.com
color parameter to any valid hex color code.color=ff00ff for magenta.bgcolor parameter to any valid hex color code.bgcolor=000000 for black.size parameter to the desired dimensions.size=600x600 for a larger QR code.If any of the required parameters (size, color, data) are missing, the API will return a plain text error message indicating the missing parameters.
Missing required parameters. Please provide size, color, and data.
If the size parameter does not follow the widthxheight format, the API will return a plain text error message.
Invalid size format. Expected format: widthxheight (e.g., 150x150)
The FreeQR API is a simple and flexible tool for generating QR codes with customizable options. By adjusting the URL parameters, you can create QR codes with different sizes, foreground colors, and optional background colors to suit your needs.
Feel free to experiment with different combinations of parameters to generate QR codes that best fit your requirements. If you encounter any issues or have any questions, please refer to the error messages for guidance on correcting the input parameters.