Shipping Label for Library API
Generate shipping label for libraries and media centers with a single API call. ChartQuery renders publication-ready images, PNG or SVG, that you can embed in dashboards, emails, reports, or print directly. No chart library to install, no frontend code to write.
Live Preview
This image is generated in real time by the ChartQuery API, no static assets.
Quick Start
A single HTTP request is all you need. No SDK, no dependencies.
curl -X POST https://api.chartquery.com/v1/label \
-H "Content-Type: application/json" \
-d '{
"width": 100,
"height": 60,
"unit": "mm",
"language": "tsc",
"elements": [
{
"type": "box",
"x": 10,
"y": 10,
"width": 780,
"height": 460,
"thickness": 3
},
{
"type": "text",
"content": "SHIP TO:",
"x": 30,
"y": 30,
"size": 1
},
{
"type": "text",
"content": "Jane Smith",
"x": 30,
"y": 70,
"size": 3
},
{
"type": "text",
"content": "742 Evergreen Terrace",
"x": 30,
"y": 130,
"size": 2
},
{
"type": "text",
"content": "Springfield, IL 62704",
"x": 30,
"y": 180,
"size": 2
},
{
"type": "line",
"x1": 10,
"y1": 230,
"x2": 790,
"y2": 230,
"thickness": 2
},
{
"type": "text",
"content": "FROM: ACME Corp",
"x": 30,
"y": 250,
"size": 1
},
{
"type": "text",
"content": "ORDER #INV-2026-04518",
"x": 30,
"y": 400,
"size": 2
}
]
}' \
--output label.svgHow It Works
Send a Request
POST a JSON body or use GET with query parameters. No SDK or library needed.
Get Your Image
ChartQuery renders your chart, diagram, barcode, QR code, or label and returns it as PNG or SVG.
Use It Anywhere
Embed in emails, PDFs, dashboards, documents, or print directly. Works everywhere images work.
Features
9 Printer Languages
TSC, ZPL, EPL, CPCL, DPL, SBPL, ESC/POS, Star PRNT, and IPL, one definition, any printer.
20 Printer Profiles
Built-in profiles for Zebra, Epson, Star, TSC, SATO, Honeywell, and more. Auto-configures DPI and width.
Rich Element Types
Text, boxes, lines, circles, ellipses, reverse regions, and raw commands for any label design.
Preview & Compile
Preview labels as SVG/PNG images, then compile to raw printer commands ready to send over TCP or USB.
Library Use Cases
- Track book circulation and popular titles
- Generate book barcodes and spine labels
- Create QR codes for catalog searches
- Visualize collection growth over time
Frequently Asked Questions
What is a Shipping Label API for Library?
A Shipping Label API for libraries and media centers lets you generate shipping label images programmatically via HTTP requests. ChartQuery renders publication-ready PNG or SVG output that you can embed in dashboards, emails, reports, or print, without installing any chart library or writing frontend code.
How do I generate a shipping label for library with an API?
Send a POST request to the ChartQuery label endpoint with your data as JSON. The API returns a rendered image directly. You can also use GET requests with URL parameters for simple cases. No API key is required for basic usage, anonymous access is available with 60 requests per hour.
What output formats does the Shipping Label API support?
SVG (default) and PNG for preview. The Label Compile endpoint outputs raw printer commands (TSC, ZPL, EPL, etc.) ready to send to a thermal printer.
Is the Shipping Label API free to use?
Yes. The ChartQuery Shipping Label API works without an API key. Anonymous access is rate-limited to 60 requests per hour and adds a small watermark. Authenticated users on paid plans get higher limits, no watermark, and longer chart persistence (6 months vs 3 days for shared URLs).
What are common shipping label use cases in library?
Track book circulation and popular titles. Generate book barcodes and spine labels. Create QR codes for catalog searches. Visualize collection growth over time. ChartQuery handles the rendering so you can focus on your data and business logic.
Can I share and embed labels generated by the API?
Yes. Add "share": true to any request to get permanent URLs. The render_url is a direct image URL you can embed in emails, documents, or <img> tags. The view_url is an interactive HTML page you can embed as an iframe. No authentication needed for viewers.
Related APIs
Start generating charts today
No API key required to get started. Generate charts, diagrams, and more with a single HTTP request.
Get StartedView Pricing