Data Matrix Generator

/api/datamatrix 1 credit(s) per call

Generate Data Matrix 2D barcodes from any text or data.

Overview

The Data Matrix Generator API creates PNG Data Matrix 2D barcodes from any text or data. Ideal for small item marking and industrial applications.

Endpoint

POST /api/datamatrix
GET /api/datamatrix/generate?text=...&size=300

Request Parameters

Parameter Type Required Description
text string Yes The data to encode
size int No Image size in pixels (default: 256, max: 2000)

Example

Generate a Data Matrix code:

curl -X POST https://simplewebapis.com/api/datamatrix \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: swa_your_key" \
  -d '{"text": "Hello World", "size": 300}'

The response is a PNG image (Content-Type: image/png).

Try it out

Use the Playground to test this API live.