Barcode Lookup

Look up food products by EAN-13 or UPC barcode.

GET /v1/barcode/{barcode}

Request

curl "https://api.c0r.ai/v1/barcode/4600682500018" \
  -H "X-API-Key: fdb_your_key"

Path Parameters

ParameterDescription
barcodeEAN-13 or UPC barcode (digits only)

Response — found

{
  "found": true,
  "product": {
    "id": "off_4600682500018",
    "barcode": "4600682500018",
    "name": "Milk 3.2%",
    "brands": "Parmalat",
    "nutrition": {
      "calories": 61,
      "proteins": 2.8,
      "fats": 3.2,
      "carbs": 4.7
    },
    "image_url": "https://images.openfoodfacts.org/..."
  }
}

Response — not found

{
  "found": false,
  "product": null
}