API documentation

Public HTTP endpoints for the EANDB barcode database.

GET /api/ean/<ean_code>

Returns the stored EAN, manufacturer name, and product name. No authentication required.

Path parameter
ean_code — barcode string. Leading/trailing spaces are trimmed. Empty after trim yields 422.

JSON object:

{
  "ean": "string",
  "manufacturer": "string | null",
  "product_name": "string"
}
  • 404 — EAN not in the database, or linked product row is missing. Body includes a message string.
  • 422 — Path present but empty after trimming.
curl -sS "https://<host>/api/ean/5701234567890"

Other endpoints may exist on this server; they are not covered by this page.