Read Barcodes with PDF.coThe Barcode Reader API can read all popular barcode types from QR Code, Code 128, EAN to Datamatrix, PDF417, GS1, and many more. It can decode barcodes from different formats such as JPG, PNG, TIFF, and PDF.

This 1D and 2D Barcode Reader API is also capable of decoding QR Codes with images at the center.

The platform is secure and all the documents that pass through the Web API are encrypted. To learn more about Security, please refer to our Security page


Barcode Reader API Benefits

Decode Different Barcode Types

The Barcode Reader API can read different types of barcodes in one call request. You can return all of the barcodes or narrow it down to your desired output by specifying the barcode type you want to capture.

Large File Support

The Barcode Reader API supports Asynchronous Mode which allows for processing large files and documents. It is considered a good practice to use the Asynchronous Mode when you are reading barcodes that take more than 25 seconds to process.

On-Premise API Server

We have an on-premise API Server for businesses and enterprises that need to run the REST Web APIs within their own premises. The on-premise API Server is available via request. Please send your request to our support team to take the API Server for a spin.

Barcode Reader API Integrations has over 300+ app integration. Kindly explore our following plugins:

Barcode Reader API Samples & Demo

In this demonstration, we will use the /v1/barcode/read/from/url endpoint to decode barcodes. We have a 1-page PDF that contains a mixture of different types of barcodes. The Web API will read all these barcodes and return the value as well as the type of the barcodes in the output.

Following are the images of the source PDF and the output.

Barcode Reader API Input And Output
Images of PDF with Barcodes and its Output

Let’s go over the /v1/barcode/read/from/url endpoint’s parameters and their corresponding functions real quick.


Method: POST
Parameter Description
url required. Link to the source file.
types optional. Comma-separated list of barcode types to decode
pages optional. Comma-separated list of page indices (or ranges) to process.
profiles optional. Must be a String. Set custom configuration. See profiles examples here


cURL Code Snippet

curl --location --request POST '' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "",
    "types": "Code128,Code39,Interleaved2of5,EAN13",
    "pages": "0",
    "encrypt": false,
    "async": false

The Barcode Reader API cURL sample codes are available here.

Let’s see the Barcode Reader API in action using the cURL code.

Barcode Reader API In Action
Images of Barcode Reader API in action

The Barcode Reader API JavaScript sample codes are available here.

The Barcode Reader API PHP sample codes are available here.

The Barcode Reader API Python sample codes are available here.

The Barcode Reader API Java sample codes are available here.

The Barcode Reader API C# sample codes are available here.

Sign Up

Related Samples: