API Request:
POST https://api.webmasterapi.com/v1/qr-code-generator
Request Parameters:
apiKey
[Required]
Your apiKey.
type
[Required]
QR code type.
size
[Required]
QR code size. The default is 200px
title
[Optional]
QR code title.
logo
[Optional]
QR code LOGO. Please submit your logo in Base64 format.
data
[Required]
QR code content.
{
"apiKey": "test-apiKey",
"type": "text",
"size": 400,
"title":"My QR Code",
"logo":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
"data": "Hello world!"
}
{
"apiKey": "test-apiKey",
"type": "url",
"size": 400,
"title":"My QR Code",
"logo":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
"data": "https://google.com"
}
{
"apiKey": "test-apiKey",
"type": "vcard",
"size": 400,
"title":"My QR Code",
"logo":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
"data": {
"firstName": "Theresa",
"lastName": "Chavez",
"company": "Google Inc",
"title": "Manager",
"address": "4961 Woodbridge Lane",
"city": "Southfield",
"state": "Michigan",
"zip": "48235",
"phone": "313-544-6952",
"mobile": "313-544-6952",
"fax": "313-544-6952",
"email": "[email protected] ",
"website": "https://google.com",
"facebook": "https://facebook.com/yourprofile",
"linkedin": "https://linkedin.com/yourprofile",
"twitter": "https://twitter.com/yourprofile",
"skype": "123XXXXXXXXX",
"avatar": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
}
}
{
"apiKey": "test-apiKey",
"type": "email",
"size": 400,
"title":"My QR Code",
"logo":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
"data": {
"email": "[email protected] ",
"subject": "Mail Subject",
"content": "Mail Content"
}
}
{
"apiKey": "test-apiKey",
"type": "sms",
"size": 400,
"title":"My QR Code",
"logo":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
"data": {
"phone": "313-544-6952",
"message": "Hello there!"
}
}
{
"apiKey": "test-apiKey",
"type": "audio",
"size": 400,
"title":"My QR Code",
"logo":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
"data": "https://static.webmasterapi.com/test/juicy.mp3" //There are 3 supported audio formats: MP3, WAV, and OGG.
}
{
"apiKey": "test-apiKey",
"type": "video",
"size": 400,
"title":"My QR Code",
"logo":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
"data": "https://static.webmasterapi.com/test/madagascar3.mp4" //Supported video formats: MP4, WebM Url, Http streaming media. or YouTube Url, such as: https://www.youtube.com/watch?v=UcWc_0Dt01c
}
{
"apiKey": "test-apiKey",
"type": "image",
"size": 400,
"title":"My QR Code",
"logo":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
"data": "https://static.webmasterapi.com/test/photo.jpeg"
}
{
"apiKey": "test-apiKey",
"type": "bitcoin",
"size": 400,
"title":"My QR Code",
"logo":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAY......",
"data": {
"btcAddress": "Bitcoin Address",
"amount": "10",
"message": "Thank you"
}
}
API Response:
{
"code": 1,
"result": {
"title": "My QR Code",
"type": "text",
"qrCodeId": "7771e9d1-9eab-419a-9a4e-327d6b01a71a",
"qrCodeUrl": "https://s1.webmasterapi.com/qrcode-1588856233124-294259074.png",
"qrCodeBase64": "data:image/png;base64,iVBORw0K......",
"data": "Hello world!"
}
}
API Request:
PUT https://api.webmasterapi.com/v1/qr-code-update
Request Parameters:
apiKey
[Required]
Your apiKey.
qrcode_id
[Required]
QR code ID.
title
[Required]
QR code title.
data
[Required]
QR code content.
{
"apiKey": "test-apiKey",
"qrcode_id": "bcd967a6-7ba9-4f25-9820-d345d8b392dd",
"title": "test title",
"data": "test data"
}
API Response:
{
"code": 1,
"results": {
"title": "test title",
"type": "audio",
"qrCodeId": "bcd967a6-7ba9-4f25-9820-d345d8b392dd",
"qrCodeUrl": "https://svip.webmasterapi.com/qrcode-1586714555266-59419405.png",
"qrCodeBase64": "data:image/png;base64,iVBORw0KGgoAAAAN...",
"data": "test data"
}
}
API Request:
GET https://api.webmasterapi.com/v1/qr-code-data/[apiKey]/[qrcode_id]
Request Parameters:
apiKey
[Required]
Your apiKey.
qrcode_id
[Required]
QR code ID.
https://api.webmasterapi.com/v1/qr-code-data/test-apiKey/bcd967a6-7ba9-4f25-9820-d345d8b392dd
API Response:
{
"code": 1,
"result": {
"type": "audio",
"title": "test title",
"qrCodeId": "bcd967a6-7ba9-4f25-9820-d345d8b392dd",
"qrCodeUrl": "https://svip.webmasterapi.com/qrcode-1586714555266-59419405.png",
"data": "test data",
"time": "1586714555268",
"hits": 1
}
}