Custom QR Code

FREEMIUM
By unitag
Updated 5 months ago
Tools
9/10
Popularity Score
1314ms
Latency
99%
Success Rate

Custom QR Code API Documentation

Our WebService API lets you create QR Code inside your own system of information (application, industrial platform, website..). It is a solution for computer developpers that grants them the possibility to create QR Codes inside their own mechanism

View API Details
GETGenerate a QR Code image
GETGenerate a QR Code image

The "data" parameter describes the content of the QR Code, while the "setting" parameter describes its design. Both are documented here: https://github.com/unitag/QRCODES-API/blob/master/documentation.md

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
dataSTRING
REQUIREDContent of the generated QR Code, documented here: https://github.com/unitag/QRCODES-API/blob/master/documentation.md#data-object
settingSTRING
REQUIREDDesign of the generated QR Code, documented here: Content of the QR Code, documented here: https://github.com/unitag/QRCODES-API/blob/master/documentation.md#setting-object
Optional Parameters
tSTRING
OPTIONALFormat of the output image: PNG (default), JPEG, SVG or PDF. Warning: the parameter must be named T (uppercase), although Mashape appears to force lowercase.
sizeNUMBER
OPTIONALSize of the output image in pixels (up to 3000, 400 by default). Warning: the parameter must be named SIZE (uppercase), although Mashape appears to force lowercase.
Code Snippet
unirest.get("https://unitag-qr-code-generation.p.rapidapi.com/api?data=%7B%22TYPE%22%3A%22text%22%2C%22DATA%22%3A%7B%22TEXT%22%3A%22Hello+World!%22%7D%7D&setting=%7B%22LAYOUT%22%3A%7B%22COLORBG%22%3A%22ffffff%22%2C%22GRADIENT_TYPE%22%3A%22NO_GR%22%2C%22COLOR1%22%3A%22000000%22%7D%2C%22EYES%22%3A%7B%22EYE_TYPE%22%3A%22Simple%22%7D%2C%22E%22%3A%22M%22%2C%22BODY_TYPE%22%3A0%7D")
.header("X-RapidAPI-Host", "unitag-qr-code-generation.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://unitag-qr-code-generation.p.rapidapi.com/api
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://unitag-qr-code-generation.p.rapidapi.com/api?data=%7B%22TYPE%22%3A%22text%22%2C%22DATA%22%3A%7B%22TEXT%22%3A%22Hello+World!%22%7D%7D&setting=%7B%22LAYOUT%22%3A%7B%22COLORBG%22%3A%22ffffff%22%2C%22GRADIENT_TYPE%22%3A%22NO_GR%22%2C%22COLOR1%22%3A%22000000%22%7D%2C%22EYES%22%3A%7B%22EYE_TYPE%22%3A%22Simple%22%7D%2C%22E%22%3A%22M%22%2C%22BODY_TYPE%22%3A0%7D")
.header("X-RapidAPI-Host", "unitag-qr-code-generation.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication