Factory

Barcode for Factory API

Generate barcodes for factory and plant operations 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.

Barcode for Factory API, live preview generated by ChartQuery

Quick Start

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

Terminal
curl "https://api.chartquery.com/v1/barcode?data=INV-2026-00456&type=code128&show_text=true" \
  --output barcode.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

25+ Barcode Formats

EAN-13, UPC-A, Code 128, GS1-128, ITF-14, and 20+ more standards, all from one endpoint.

Print-Ready Output

SVG and PNG output with configurable DPI, units (px, mm, in, cm), and precise bar width control.

Full Styling Control

Customize colors, margins, text position, rotation, font, and bearer bars for any requirement.

Industry Compliance

Generate GS1-compliant barcodes with Application Identifiers for retail, logistics, and healthcare.

Factory Use Cases

  • Track production line throughput
  • Generate work-in-progress barcodes
  • Print station and machine labels
  • Visualize shift performance comparisons

Frequently Asked Questions

What is a Barcode API for Factory?

A Barcode API for factory and plant operations lets you generate barcode 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 barcode for factory with an API?

Send a POST request to the ChartQuery barcode 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 Barcode API support?

SVG (default) and PNG. SVG is lossless and scalable, while PNG is a lossless raster format ideal for email and PDF.

Is the Barcode API free to use?

Yes. The ChartQuery Barcode 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 barcode use cases in factory?

Track production line throughput. Generate work-in-progress barcodes. Print station and machine labels. Visualize shift performance comparisons. ChartQuery handles the rendering so you can focus on your data and business logic.

Can I share and embed barcodes 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.

Start generating charts today

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

Get StartedView Pricing