{
"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://pr213-testing.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://pr213-testing.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://pr213-testing.zylalabs.com/api/3978/qr-code+and+barcode+scanner+api/4735/base64?imageBase64=base64 image' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the QR-code and Barcode Scanner API simply include your bearer token in the Authorization header.
| 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.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
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.
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, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund