c
ChowAPI
GET/v1/barcode/{code}

Barcode Lookup

Look up any food by UPC-A or EAN-13 barcode. 569K+ barcodes in the database.

Parameters

ParameterTypeDescription
codestring (path)8-14 digit barcode (UPC-A, EAN-8, EAN-13)

Request

curl "https://api.chowapi.dev/v1/barcode/0030000575512" \
  -H "Authorization: Bearer chow_live_YOUR_KEY"

Response

200 OK
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "Chocolate Instant Oatmeal",
  "brand": null,
  "barcode": "0030000575512",
  "barcodes": ["0030000575512"],
  "source": "branded",
  "data_quality": 0.44,
  "nutrients": {
    "calories": 360,
    "protein": 20,
    "carbs": 58,
    "fat": 6,
    "fiber": 4
  },
  "serving": {
    "amount": 50,
    "unit": "g",
    "description": "1 packet (50g)",
    "gram_weight": 50
  }
}

Errors

CodeStatusDescription
barcode/missing400No barcode in URL
barcode/invalid400Not 8-14 digits
barcode/not_found404Barcode not in database