Hello 👋

We have released free and developer friendly Qrcode generator Api

QR Code API Information

Our api is super simple to intergrate and developer friendly.

Here is a step by step guide on how to use the api

Base Url:

const BaseUrl = "https://real-qr-code-generator-and-api.vercel.app/"

API Endpoint:

{"{baseUrl}"}/api/v1/generateQrCode?input={inputText} &background=$ {"{backgroundColor}"}&foreground={foregroundColor}

Parameters:

Example Usage:

const response = await fetch('"baseUrl"/api/v1/generateQrCode?input={inputText}&background={backgroundColor}&foreground={foregroundColor}');
const data = await response.json();

Response Handling:

The API will return a JSON object containing the generated QR code image URL.

{ "qrCode": "data:image/png;base64,iVBORw0KG..." }

Error Handling:

Handle errors gracefully by checking the response status and displaying appropriate messages.

if (!response.ok) { console.error('Error:', response.status); // Handle error display or retry logic }

Note: Make sure to replace {inputText}, {backgroundColor}, and {foregroundColor} with your desired values.