GnistAI GnistAI
Log in

Barcode Generation

Generate barcode image URLs for Code 128, Code 39, EAN-13, EAN-8, UPC-A, and QR formats with data validation.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 type: api wrapper type type api wrapper api wrapper lifecycle: maintained lifecycle lifecycle maintained maintained Utilities

Data source: barcodeapi.org

REST Bridge Endpoint https://context.gnist.ai/rest/barcode/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (3)

generate_barcode

Generate a barcode image URL for the given data and type.

Returns a URL that renders a barcode image. The URL can be used directly in an <img> tag
or opened in a browser. No image data is returned — only the URL.
Supported types: code128, code39, ean13, ean8, upc-a, qr.

ParameterTypeRequiredDescription
barcode_typestringrequiredBarcode type: code128, code39, ean13, ean8, upc-a, qr.
datastringrequiredThe data to encode in the barcode.
Request Body
{
  "barcode_type": "example",
  "data": "example"
}
list_barcode_types

List supported barcode types with descriptions.

Returns the available barcode types including name, description, and expected data format.

Request Body
{
  "query": "example"
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
Request Body
{
  "feedback": "example"
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/rest/barcode/generate_barcode" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"barcode_type": "example", "data": "example"}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/rest/barcode/generate_barcode",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={
  "barcode_type": "example",
  "data": "example"
},
)
print(resp.json())

Related Toolkits (Utilities)

Resources