The Barcode Generator API can generate high-quality barcode images. It supports almost all 1D linear and 2D multidimensional barcodes such as QR Code, Datamatrix, MaxiCode, MicroQR Code, Code 39, Code 128, PDF417, and many more.
It also supports logo or image insertion at the center of the QR Code. The generated barcode can be a downloadable barcode image or a Datauri URL to easily embed in web pages or documents.
Web API engines work in any programming language: PHP, Javascript, C#, .NET and ASP.NET, Java, Visual Basic, and many others.
PDF.co is fully secure. To learn more, please read https://pdf.co/security
Barcode Generator API Benefits
Supports All Popular Barcodes
The Barcode Generator API can generate all types of popular barcodes such as QR Code, Code 39, Code 128, EAN, Codabar, and a lot more.
Personalize QR Codes
The QR Code can be personalized by adding a decorative image. You can add a logo or an image right at the center of the barcode.
Datauri URL Support
The generated barcodes can be in a form of downloadable images or a Datauri URL. The Datauri is very useful when you need to add the barcode to a document or web page without the need to upload the barcode to cloud storage.
Web API and Business Automation Platforms Integrations
PDF.co platform can be used by software developers from programming languages such as Javascript, PHP, Java, .NET and ASP.NET, C#, Visual Basic, and many others.
If you are not a developer then you can also easily automate your PDF operations through business automation platforms such as Zapier, Integromat, and hundreds of others.
SIGN UP FOR FREE
Barcode Generator API Samples & Demo
In this demonstration, we will generate a QR code with the ByteScout logo in the center using the /v1/barcode/generate endpoint. Below is the image of what the output will look like.
Screenshot of Generated QR Code
Let’s go over the /v1/barcode/generate endpoint’s parameters and their corresponding functions real quick.
Endpoint
URL: | https://api.pdf.co/v1/barcode/generate |
Method: | POST |
Parameter | Description |
types | optional. Sets barcode type to generate. QRCode is default. |
inline | optional. Set to true to generate datauri url instead of file. |
decorativeImage | optional. works for QR Code only. |
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/generate' \ --header 'Content-Type: application/json' \ --header 'x-api-key: {{x-api-key}}' \ --data-raw '{ "name": "barcode.png", "value": "abcdef123456", "type": "QRCode", "inline": false, "decorationImage": "https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/barcode-generator/logo.png" }'
The Barcode Generator API cURL source code samples are available here.
Let’s see the Barcode Generator API in action using our cURL code snippet.
Barcode Generator API in Action
The Barcode Generator API JavaScript source code samples are available here.
The Barcode Generator API PHP source code samples are available here.
The Barcode Generator API Python source code samples are available here.
The Barcode Generator API Java source code samples are available here.
The Barcode Generator API C# source code samples are available here.
Frequently Asked Questions
Are My Files Stored Securely?
Yes. The files used for data extraction are encrypted and stored on the protected server. SSL and TLS security, as well as file encryption, are used to keep your data protected. You can read more about our Security.
How to Use Our Barcode Generator API
You can sign up or access our Barcode Generator using credits. You will get your own API key after registration. You can use credits to generate the barcodes you need.
Can I integrate BarCode Generator API with other apps?
Yes! We enabled easy integration with other apps via Zapier. You may find other existing integrations such as Integromat plugin, UiPath Extension, and more.