Label Parse
Parse printer commands back to structured data. Reverse-engineer existing label code into elements, dimensions and metadata.
Credit cost: 1 credit per call
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/label/parse"{ "dpi": 203, "commands": [ { "cmd": "SIZE", "unit": "mm", "widthMM": 40, "heightMM": 30 }, { "cmd": "CLS" }, { "x": 10, "y": 10, "cmd": "TEXT", "font": "2", "xMul": 1, "yMul": 1, "content": "Hello", "rotation": 0 }, { "cmd": "PRINT", "sets": 1 } ], "elements": [ { "x": 10, "y": 10, "font": "2", "size": 1, "type": "text", "content": "Hello", "rotation": 0 } ], "warnings": [], "widthDots": 320, "heightDots": 240}{ "error": "Bad Request"}{ "error": "Internal Error"}