Data Matrix barcode API
Very compact square 2D code for small items: electronic parts, medical devices and pharmaceutical packs.

What Data Matrix is for
Data Matrix fits a lot of data into a very small square, and stays readable when etched or printed directly onto a part. It marks electronic components, surgical instruments and medicine packs, where GS1 DataMatrix carries the product code, batch and expiry.
Make one from a URL
Send the text and get the image back. Your API key goes in a header.
curl "https://barcode.fmdeploy.com/v2/barcode/datamatrix?text=SN-0001234" \ -H "Authorization: Bearer bc_live_your_key" -o datamatrix.png
Add &output=svg for a vector image that stays sharp at any print size.
From FileMaker
Insert from URL [ Select ; With dialog: Off ; Target: Items::Barcode ; "https://barcode.fmdeploy.com/v2/barcode/datamatrix?text=" & GetAsURLEncoded ( Items::Code ) ; cURL options: "--header \"Authorization: Bearer " & $$BARCODE_KEY & "\"" ]
What it accepts
Any text. Short codes produce the smallest symbols. Example: SN-0001234
If the text can’t be encoded, the API answers with a clear message instead of a broken image.
Options
Set the module size with scale. The quiet zone, a text label, rotation and SVG output are available too. The documentation lists every parameter and its default.
Related formats
Try Data Matrix with a free key
200 barcodes free every month. No card needed.