Integrate QR Code Generator API into your project in 5 minutes literally.
<?php
$client = new Client();
$headers = [
'Content-Type' => 'application/json',
'Authorization' => 'Bearer EIZyhtgdUP8jgiH0IXuZk1N9oLSycg75VltLP3z1xIShXBDLZ6Guso3OtK87',
'Cookie' => 'PHPSESSID=6qhu9lkhom8v1vigk12dtnimql'
];
$body = '{
"data": "https://www.dearqr.com",
"size": "16",
"format": "BASE64",
"logo": "https://www.dearqr.com/assets/qr-images/yt_icon_rgb.png"
}';
$request = new Request('POST', 'https://api.dearqr.com/v1/create', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer EIZyhtgdUP8jgiH0IXuZk1N9oLSycg75VltLP3z1xIShXBDLZ6Guso3OtK87");
myHeaders.append("Cookie", "PHPSESSID=6qhu9lkhom8v1vigk12dtnimql");
var raw = JSON.stringify({
"data": "https://www.dearqr.com",
"size": "16",
"format": "BASE64",
"logo": "https://www.dearqr.com/assets/qr-images/yt_icon_rgb.png"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.dearqr.com/v1/create", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import http.client
import json
conn = http.client.HTTPSConnection("api.dearqr.com")
payload = json.dumps({
"data": "https://www.dearqr.com",
"size": "16",
"format": "BASE64",
"logo": "https://www.dearqr.com/assets/qr-images/yt_icon_rgb.png"
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer EIZyhtgdUP8jgiH0IXuZk1N9oLSycg75VltLP3z1xIShXBDLZ6Guso3OtK87',
'Cookie': 'PHPSESSID=6qhu9lkhom8v1vigk12dtnimql'
}
conn.request("POST", "/v1/create", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
curl --location 'https://api.dearqr.com/v1/create' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer EIZyhtgdUP8jgiH0IXuZk1N9oLSycg75VltLP3z1xIShXBDLZ6Guso3OtK87' \
--header 'Cookie: PHPSESSID=6qhu9lkhom8v1vigk12dtnimql' \
--data '{
"data": "https://www.dearqr.com",
"size": "16",
"format": "BASE64",
"logo": "https://www.dearqr.com/assets/qr-images/yt_icon_rgb.png"
}'
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"data\": \"https://www.dearqr.com\",\n \"size\": \"16\",\n \"format\": \"BASE64\",\n \"logo\": \"https://www.dearqr.com/assets/qr-images/yt_icon_rgb.png\"\n}");
Request request = new Request.Builder()
.url("https://api.dearqr.com/v1/create")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer EIZyhtgdUP8jgiH0IXuZk1N9oLSycg75VltLP3z1xIShXBDLZ6Guso3OtK87")
.addHeader("Cookie", "PHPSESSID=6qhu9lkhom8v1vigk12dtnimql")
.build();
Response response = client.newCall(request).execute();
Customize the colour and design of the QR codes in two easy ways.
You can pass the customization parameters via GET/POST request.
You can design, save the template and pass the template id to generate QR codes.
API logs will be stored by us and you can find them in the Logs screen. Free users can view recent 1000 entries, while premium users can view upto 10,000 latest log entries. To store more logs, please contact us.
The output QR code will be in SVG/PNG in base64 format.
Both free and premium users can create QR codes with logo.
DearQR API serves you QR codes in both SVG & PNG format
Can be integrated in any code base. No language barrier.
Our system stores complete logs for you to review.
Add logo of your choice for customisation
* Unlimited usage capped at 2 million requests
* Billed monthly
Create colourful QR codes for your applications by integrating DearQR API.