RapidAPI logo

QR Code

FREE
By neutrinoapi
Updated 4 months ago
Tools
7.3/10
Popularity Score
507ms
Latency
89%
Success Rate

QR Code API Documentation

Generate a QR code image in PNG format. You can choose your size and colors.

View API Details
POSTQR Code
POSTQR Code
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
contentSTRING
REQUIREDThe content to encode into the QR code (e.g. a URL or a phone number)
Optional Parameters
bg-colorSTRING
OPTIONALThe QR code background color (you should always use a light color for this)
widthNUMBER
OPTIONALThe width of the QR code (in px)
fg-colorSTRING
OPTIONALThe QR code foreground color (you should always use a dark color for this)
heightNUMBER
OPTIONALThe height of the QR code (in px)
Code Snippet
unirest.post("https://neutrinoapi-qr-code.p.rapidapi.com/qr-code")
.header("X-RapidAPI-Host", "neutrinoapi-qr-code.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("bg-color=#ffffff")
.send("width=128")
.send("fg-color=#000000")
.send("height=128")
.send("content=http://www.neutrinoapi.com")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://neutrinoapi-qr-code.p.rapidapi.com/qr-code
Request Method: POST
Response Headers
Response Body
Log inSign up

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.post("https://neutrinoapi-qr-code.p.rapidapi.com/qr-code")
.header("X-RapidAPI-Host", "neutrinoapi-qr-code.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("bg-color=#ffffff")
.send("width=128")
.send("fg-color=#000000")
.send("height=128")
.send("content=http://www.neutrinoapi.com")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication