PresentID QR-Code & Barcode scanner API can scan both QR code and barcode.
**Input:**
- Image file
- Image URL link
- Base64 image
**Output:**
- Code
- Code type
- Field name
- Field type
- Field value
- Code area
**Features:**
- Accuracy 100%.
- Less than 1.5 milliseconds.
- Types of QR codes such as contacts, plain text, links, events, etc.
- Common barcode standards such as:
- Code 93
- Code 128
- PDF 417
- Data Matrix
- EAN-8
- UPC-E
- Codabar, etc.
- Support IOS, Android, Windows, and Mac devices.
- Easy integration with your app.
**Use Cases:**
- Tracking products
- Art and pop culture
- Tracking food intake
- Games
- Advertising
**Rules & Restrictions:**
- Send data via Base64 or an image URL or an image file.
- Image size should not exceed 8 MB.
- Also, the images should not be larger than 5000 pixels and smaller than 50 pixels.
{
"statusCode": 200,
"statusMessage": "ok",
"hasError": false,
"data": [
{
"code": "qrcode",
"codeType": "text",
"allFields": [
{
"fieldName": "text",
"fieldType": "string",
"fieldValue": "@ELTOROIT"
}
],
"codeArea": {
"x0": 1,
"y0": 1,
"x1": 1,
"y1": 711,
"x2": 711,
"y2": 711,
"x3": 711,
"y3": 1
}
}
]
}
curl --location 'https://zylalabs.com/api/3978/qr-code+and+barcode+scanner+api/4733/fileupload' \
--header 'Content-Type: application/json' \
--form 'image=@"FILE_PATH"'
{
"statusCode": 200,
"statusMessage": "ok",
"hasError": false,
"data": [
{
"code": "qrcode",
"codeType": "text",
"allFields": [
{
"fieldName": "text",
"fieldType": "string",
"fieldValue": "@ELTOROIT"
}
],
"codeArea": {
"x0": 1,
"y0": 1,
"x1": 1,
"y1": 711,
"x2": 711,
"y2": 711,
"x3": 711,
"y3": 1
}
}
]
}
curl --location --request POST 'https://zylalabs.com/api/3978/qr-code+and+barcode+scanner+api/4734/linkfile?linkFile=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"statusCode": 200,
"statusMessage": "ok",
"hasError": false,
"data": [
{
"code": "qrcode",
"codeType": "text",
"allFields": [
{
"fieldName": "text",
"fieldType": "string",
"fieldValue": "@ELTOROIT"
}
],
"codeArea": {
"x0": 1,
"y0": 1,
"x1": 1,
"y1": 711,
"x2": 711,
"y2": 711,
"x3": 711,
"y3": 1
}
}
]
}
curl --location --request POST 'https://zylalabs.com/api/3978/qr-code+and+barcode+scanner+api/4735/base64?imageBase64=base64 image' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The QR-code and Barcode Scanner API from PresentID is a sophisticated tool designed to quickly and accurately decode information from QR codes and barcodes. This API simplifies the process of reading and interpreting the data encoded in various barcode formats and QR codes, making it an invaluable tool for retail, inventory management, and mobile applications.
Our QR-code and Barcode Scanner API features include: Rapid and precise decoding: Efficiently scans and decodes data from QR codes and various types of barcodes. Support for numerous formats: Compatible with a wide range of barcode types, including UPC, EAN, Code 128, and more, in addition to all standard QR code formats. Easy integration: Designed to seamlessly integrate with mobile apps and enterprise systems to enhance data capture and analytics.
The API predominantly utilizes the POST method, allowing users to upload images containing QR codes or barcodes. It processes these images to extract and return the encoded information in a structured format.
Yes, the API comes with usage limits that vary according to the subscription plan you select. Detailed information regarding these limits can be found on our pricing page or within your user dashboard.
Here are some common errors you may run into: 400 Bad Request: Typically indicates an issue with the input data, such as an unreadable or unsupported image format. 401 Unauthorized: Occurs if there is an issue with your API key, such as it being invalid or absent.
Each endpoint returns structured data that includes the decoded code, its type, and detailed field information. The response contains fields such as "code," "codeType," "allFields," and "codeArea," providing comprehensive details about the scanned QR code or barcode.
The key fields in the response data include "code" (the scanned value), "codeType" (the format of the code), "allFields" (an array of field details), and "codeArea" (coordinates of the code in the image), which help users understand the scanned content and its context.
The response data is organized in a JSON format, with a top-level structure containing "statusCode," "statusMessage," "hasError," and a "data" array. Each item in the "data" array represents a scanned code with its associated details, making it easy to parse and utilize.
Each endpoint provides information about the scanned QR code or barcode, including the decoded value, type of code, and additional fields such as field names and values. This allows users to extract relevant data for various applications, like inventory tracking or marketing.
The endpoints accept image data in three formats: Base64, image URL, or image file. Additionally, images must not exceed 8 MB in size and should be between 50 and 5000 pixels in dimensions to ensure successful processing.
Users can utilize the returned data by accessing the "code" for the scanned information, using "codeType" to determine the format, and leveraging "allFields" for detailed attributes. This structured data can be integrated into applications for tracking, analytics, or user engagement.
The API guarantees 100% accuracy in decoding QR codes and barcodes. It employs advanced image processing techniques to ensure reliable results, and users can verify the integrity of the data through the structured response format.
Typical use cases include product tracking in retail, managing inventory, analyzing consumer behavior in advertising, and enhancing user experiences in mobile applications. The API's versatility supports various industries and applications.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
228ms
Service Level:
100%
Response Time:
213ms
Service Level:
100%
Response Time:
182ms
Service Level:
100%
Response Time:
39ms
Service Level:
100%
Response Time:
561ms
Service Level:
100%
Response Time:
75ms
Service Level:
100%
Response Time:
1,692ms
Service Level:
100%
Response Time:
1,971ms
Service Level:
100%
Response Time:
293ms
Service Level:
100%
Response Time:
2,084ms