The QR Code Reader Web API can decode QR Codes from images and PDF documents. It can read QR Codes individually or in batches. The QR Code Reader Web API can narrow down its search to only return the QR Code values when other barcode types are present in a document.
Web API engines work in any programming language: PHP, Javascript, C#, .NET and ASP.NET, Java, Visual Basic, and many others.
Our QR Code Reader Web API is secure. To learn more, please check out our Security page here.
Benefits of Using Our Barcode Reader API
Read Multiple QR Codes
The QR Code Web API can decode single or multiple QR Codes in a document. It can read QR Codes file by file or use automation to batch read the QR Codes from several documents.
Read Protected Files
The Web API can decode QR Codes from protected files. It supports documents that require HTTP username and password authentication.
Read Specific Page(s)
The Web API supports page(s) and page range(s) selection. This will not only read QR Codes from those specific pages but also help with faster document processing.
Read Skewed QR Codes
The QR Code Web API can read skewed QR Codes. The engine can detect the QR Code rotation without specifying the angle. Check out our demo below.
Web API Supports Multiple Languages
PDF.co platform can be used by software developers from programming languages such as PHP, Javascript, .NET and ASP.NET, C#, Java, Visual Basic, and many others. Find source code samples in our API documentation.
Easy Integration
Our QR code online scanner includes a built-in OCR, and it includes Zapier, Integromat, UiPath, and BluePrism plugins. You can easily connect with the most popular applications through our 300+ API integrations.
QR Code Scanning Large Files
To use our QR code reader to scan large files without getting a timeout error, you must run the scans in async mode. However, if you want to scan a barcode or barcodes from 100 pages or fewer, then you can run the QR reader API in sync mode.
The Sync mode runs for 25 seconds or less, while the async mode runs for more than 25 seconds, and is in the background. It then outputs the QR scan output after it successfully scans all the barcodes.
How to Run to Use Online QR Scanner
In this demonstration, we will read 50 QR Codes in a PNG. Some of these QR Codes are skewed to test the engine’s ability to read QR Codes. We will use the /v1/barcode/read/from/url endpoint to decode all the QR Codes. Below is the image of the input PNG and the decoded values.

Let’s go over the /v1/barcode/read/from/url endpoint’s parameters and their functions.
Endpoint
URL: | https://api.pdf.co/v1/barcode/read/from/url |
Method: | POST |
Parameter | Description |
url | required. Comma-separated links to source files. |
cache | to enable built-in url caching. |
types | required. Comma-separated list of barcode types to decode. |
async | optional. Runs processing asynchronously. Returns jobId to use with job/check : true or false |
httpusername | http auth user name if required to access source url |
httppassword | http auth password if required to access source url |
pages | page number(s) or page range to decode barcode |
profiles | optional. Must be a String. Set custom configuration. See profiles examples here |
cURL Code Snippet
curl --location --request POST 'https://api.pdf.co/v1/barcode/read/from/url' --header 'x-api-key: YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{ "url": "filetoken://7e45e137fb4365dff46167014a069e0da596775f42cdfc94", "types": "QRCode", "pages": "0" }'
The QR Code Reader Web API cURL sample code is available here.
Let’s see the QR Code Reader Web API in action using our cURL sample code.

The QR Code Reader Web API JavaScript sample code is available here.
The QR Code Reader Web API PHP sample code is available here.
The QR Code Reader Web API Python sample code is available here.
The QR Code Reader Web API Java sample code is available here.
The QR Code Reader Web API C# sample code is available here.
How to Use QR Code Reader API – Frequently Asked Question
Can you scan a QR code without an app?
Yes, you can scan a QR code without an app, just by using our Barcode Reader Web API.
You will need a Web API like ours to scan your QR codes and barcodes in bulk. Our barcode scanner API is very powerful to scan QR codes faster.
How do I scan QR codes?
You can scan a QR code by using QR Code Reader API or its integration. The scanner’s app then extracts data from a QR code and presents it to you.
What Does QR Code Stand For?
QR stands for “Quick Response Code”, and they provide businesses with an easy way to store product data while making it easily accessible. They are indispensable at Points of Sale, because of their ease of use, and reliability.
Is QR Code Safe?
Yes, a QR code is safe to use, if you receive it from a reliable source. However, you must be careful when using it to access a website that asks for sensitive information, such as a bank account, or your home address.
If the website’s URL is different from what you expected to see, then you must close your browser tab immediately.
Who Owns QR Code?
Denso’s Engineer Hara Masahiro, from Aichi, Japan, invented the QR code. The motivation was to replace the barcodes, which could only store a limited amount of data.
One QR code can store as much information as 200 barcodes. That makes it efficient to use when you need to store and scan large amounts of information at once.
You can integrate our online scanner to scan documents with your mobile device or upload them for QR scanning on the cloud. For more API code samples, and how to use our code scanner, please check these code samples.