QR BarCode Data Reader or Decoder API: How it works and how to use it? QR codes and barcodes have become very important in today's digital world. Whether it is to make a payment, visit a website, or get information about a product—QR and barcode scanning has become an important technology. To use this technology, QR BarCode Data Reader or Decoder API is used. In this article, we will understand how QR and Barcode Data Reader API works and how to use it. What is QR and BarCode API? The QR BarCode Data Reader API is a software interface that scans a QR code or barcode and decodes the information hidden in it. This API is capable of recognizing and reading a variety of barcode formats, such as: QR Code EAN-13, EAN-8 UPC-A, UPC-E Code 128, Code 39 Data Matrix The API can be integrated into various applications and web services so that users can scan QR or barcodes with their camera or uploaded images. - docs.dhboss.com
What is needed to use this API and how it will work is described below -
Your Api Key : Get API In Profile & eKYC
Name | Type | Description | Mandatory |
---|---|---|---|
qrbarcodeurl | String | {Enter Value} | Yes |
apikeyfill | String | {Enter Value} | Yes |
Name | Type | Description |
---|---|---|
status | string | success |
message | string | Extracted successfully |
barcode_data | string | 409179700132680 |
https://api.dhboss.com/apicall/qr_barcode_api/
qrbarcodeurl=value&apikeyfill=value
<?php $url = "https://api.dhboss.com/apicall/qr_barcode_api/"; $curl = curl_init($url); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $data = 'qrbarcodeurl=https://example.com/pancardimage.png&apikeyfill=yourkey'; curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); echo $response = curl_exec($curl); curl_close($curl); ?>
{ "status": "success", "message": "Extracted successfully", "barcode_data": "409179700132680" }