Edamam · JSON Structure

Edamam Food Structure

Food entity from the Edamam Food Database API v2.

Type: object Properties: 11 Required: 1
Food And DrinkRecipesNutritionDietAllergensMeal PlanningSustainabilityCarbon FootprintPublic APIs

EdamamFood is a JSON Structure definition published by Edamam, describing 11 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

foodId label knownAs brand category categoryLabel foodContentsLabel image nutrients servingSizes servingsPerContainer

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://api-evangelist.com/edamam-recipes/json-structure/edamam-food-structure.json",
  "name": "EdamamFood",
  "description": "Food entity from the Edamam Food Database API v2.",
  "type": "object",
  "required": ["foodId"],
  "properties": {
    "foodId": {"type": "string"},
    "label": {"type": "string"},
    "knownAs": {"type": "string"},
    "brand": {"type": "string"},
    "category": {"type": "string"},
    "categoryLabel": {"type": "string", "enum": ["food", "meal"]},
    "foodContentsLabel": {"type": "string"},
    "image": {"type": "uri"},
    "nutrients": {
      "type": "object",
      "additionalProperties": {"type": "double"}
    },
    "servingSizes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "uri": {"type": "uri"},
          "label": {"type": "string"},
          "quantity": {"type": "double"}
        }
      }
    },
    "servingsPerContainer": {"type": "double"}
  }
}