Data source: barcodeapi.org
https://context.gnist.ai/rest/barcode/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (3)
generate_barcodeGenerate 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
barcode_type | string | required | Barcode type: code128, code39, ean13, ean8, upc-a, qr. |
data | string | required | The data to encode in the barcode. |
{
"barcode_type": "example",
"data": "example"
}list_barcode_typesList supported barcode types with descriptions.
Returns the available barcode types including name, description, and expected data format.
{
"query": "example"
}report_feedbackReport 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'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"feedback": "example"
}Quick Start
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"}'
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())