Compatibility LayersLabelary Compatibility
Labelary Compatibility API (Closed Beta)
HTTP API for rendering ZPL labels to PDF and PNG formats
This service is a drop-in replacement for the Labelary API. Change your base URL and keep every other request parameter.
The migration guide gives side-by-side code samples and a checklist.
Notable Differences
| Aspect | Labelary | ZPL Tools |
|---|---|---|
| Base URL | https://api.labelary.com | https://api.zpl.tools/compatibility/labelary/ |
| Authentication | Optional via X-API-Key header | Required via X-API-Key header |
| Header Settings | Extensive support | X-Rotation, X-Quality, X-Linter fully applied. For the PDF page-layout headers, see Behavioral notes |
| Format Support | PNG, PDF, IPL, EPL, DPL, SBPL, PCL 5, PCL 6, JSON | PNG, PDF (other formats return 406, not a silent fallback) |
| Page Count Limit | 50 | Unlimited |
| Request Body Size | 1 MB | Unlimited |
| Image File Size | 200 KB | Unlimited |
Behavioral notes
X-Rotationapplies to PNG only. The API accepts 0, 90, 180 and 270, and rejects any other value with400. It does not yet rotate PDF output.- The API validates the PDF page-layout headers, and does not compose
them. It checks
X-Page-Size(Letter/Legal/A4/A5/A6),X-Page-Orientation,X-Page-Layout({cols}x{rows}),X-Page-Align,X-Page-Vertical-AlignandX-Label-Borderfor valid values, and checks that the label fits the page (Labelary's "not enough room" behavior). It ignores them for PNG output, as Labelary does. It does not yet arrange labels in a grid, resize the PDF page, or draw the alignment and the border. The PDF takes its size from the label. - Unsupported
Acceptvalues return406. This includes formats that Labelary supports and the API does not:application/jsonlabel-data extraction, andepl,ipl,dpl,sbpl,pcl5andpcl6. dpmmaccepts both8dpmmand bare8. Any other value returns400 Unknown print density, not404.- Label dimensions accept
0.001–15inches. The error message names the bound that the value crossed.
Quick Links
- Migrate from Labelary - Move an existing integration
- Quickstart - First request in 5 minutes
- Authentication - API key setup
- API Reference - Complete endpoint documentation
- Error Reference - Errors and fixes
Support
For issues, contact us at https://zpl.tools/contact