Experience the convenience of rapid data sharing with our QR Code Generator API. This robust API enables developers to easily integrate QR code generation within their applications, offering a quick and dependable method for encoding URLs, text, and other data types into QR codes. The QR codes are delivered as base64 encoded strings, facilitating straightforward embedding and display across multiple platforms and devices. Ideal for enhancing user experiences, simplifying data access, or incorporating personalized information, our QR Code Generator API serves as an essential tool for effective communication and efficient data dissemination.
Hereโs how you can use the API in Python:
import requests
url = "https://qr-code-generator153.p.rapidapi.com/QR_Code"
querystring = {"data":"Hello World!"}
headers = {
"X-RapidAPI-Key": "{YOUR-API-KEY}",
"X-RapidAPI-Host": "qr-code-generator153.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
The API response will include a base64 encoded QR code image as shown in this example:
{
"qrcode": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiAQAAAAB1xeIbAAABgklEQVR4nO2aQW7CMBBF/9SWunQkDtCjJDfjavFROECleIlk9LsYB0yR2i5qEpLxAonhSfkaRj+fCUL8fuLbHyDAKKOMMsqotVNSjodIB8iQ5sqwqK5dUD1JcgI4asGRJHlPPV/XLqhUZlyOJ68VEfHL69oy5R8q4SxEandFo+bz0Pso7jHyr1X9a1Nz7wMBJODW9/obWKv6TVBRROaI4yEDLhpzlta1aUrnvpr22DnwfurXq34LVJnx5CHHCUDsSs6RYVFd26aqe63041kYPzIEkDtqrepfm5o9Jx1yHXHCpydwMb9vSaH8fA0ZJDOAQKJnBketkRzXqv61qar3+nbUl3mn0Fvvm1G3nKN2oy7TT52oDy2law8U6pUZHMnJURdqul+zuW9GobKWW9sRcmU81vu2VLru6kMGOTnCcs6TKTme3ilD8j9S/3lFo64ndgAQzoJ+cvbspCX13e9LtAf0XmsZsyFVvCWqs7vqEyIdMpfStQdK7L9RRhlllFG7oL4ApAnFXPtqE/AAAAAASUVORK5CYII="
}