Inventory Label

SVG Inventory Label API

Generate inventory label images in SVG format with a single HTTP request. Infinitely scalable vector format for web, print, and high-resolution output. ChartQuery renders publication-ready SVG output that works everywhere, dashboards, emails, documents, and print.

Live Preview

This image is generated in real time by the ChartQuery API, no static assets.

SVG Inventory Label API, live preview generated by ChartQuery

Quick Start

A single HTTP request is all you need. No SDK, no dependencies.

Terminal
curl -X POST https://api.chartquery.com/v1/label \
  -H "Content-Type: application/json" \
  -d '{
  "width": 100,
  "height": 60,
  "unit": "mm",
  "language": "tsc",
  "format": "svg",
  "elements": [
    {
      "type": "text",
      "content": "SHIP TO:",
      "x": 30,
      "y": 30,
      "size": 1
    },
    {
      "type": "text",
      "content": "Jane Smith",
      "x": 30,
      "y": 70,
      "size": 3
    }
  ]
}' \
  --output label.svg

How It Works

1

Send a Request

POST a JSON body or use GET with query parameters. No SDK or library needed.

2

Get Your Image

ChartQuery renders your chart, diagram, barcode, QR code, or label and returns it as PNG or SVG.

3

Use It Anywhere

Embed in emails, PDFs, dashboards, documents, or print directly. Works everywhere images work.

Features

SVG Output

Infinitely scalable vector format for web, print, and high-resolution output. Every response returns a valid SVG file ready to use, no post-processing needed.

Sub-500ms Response

Charts, diagrams, barcodes, and labels render in under 500ms. Get your SVG file back before the next line of code runs.

No Dependencies

No rendering library, no headless browser, no canvas. A single HTTP request returns a SVG image. Works from any language or platform.

Pixel-Perfect at Any Size

SVG output is infinitely scalable. Zoom to any size without pixelation, perfect for print and retina displays.

Use Cases

  • Embed scalable charts in responsive web pages
  • Generate print-quality diagrams for technical documentation
  • Create resolution-independent barcode images for packaging
  • Use vector QR codes on marketing materials and business cards

Frequently Asked Questions

How do I generate inventory label as SVG with an API?

Send a request to the ChartQuery label endpoint with format: "svg" in your JSON body (POST) or as a query parameter (GET). The API returns a SVG file directly in the response body. No API key is required for basic usage.

Why choose SVG over other output formats?

Infinitely scalable vector format for web, print, and high-resolution output. SVG files are also smaller than raster formats and can be styled with CSS when embedded in HTML.

What is the maximum resolution for SVG output?

SVG is a vector format, so resolution is infinite. The output scales to any size without quality loss.

Is the SVG inventory label API free?

Yes. Anonymous access gives you 60 requests per hour without an API key. A small watermark is added to free-tier output. Paid plans remove the watermark and increase rate limits.

Can I embed SVG inventory label in emails and documents?

SVG can be embedded directly in HTML pages and some email clients, but many email clients (Gmail, Outlook) strip SVG. Use PNG for email embedding.

What content type does the API return for SVG?

The API returns image/svg+xml in the Content-Type header. The response body is the raw SVG file data, ready to save to disk or stream to the client.

Start generating charts today

No API key required to get started. Generate charts, diagrams, and more with a single HTTP request.

Get StartedView Pricing