Data metrix code

I want to create a barcode using data metrix code. Please tell me how.

Hi @SJk,

We’ve published the first experimental version of the datamatrix API. Here’s an example:

![](upload://4argRe3tEd2ZrPvz2HDzdjz4zug.png)


Supported parameters include:

  • type - always set this to “datamatrix”
  • text - the data to encode
  • width - desired width in pixels
  • height - desired height in pixels
  • scale - a scaling factor

Note that width and height are approximate due to the way the datamatrix is drawn and the requirements of the specification. The service will try to get as close as possible to the size you specified, but sometimes it can be slightly larger or smaller.

Note that this is a beta API, but hope it addresses some of your datamatrix needs.