Edamam · JSON Structure

Nutrition Analysis Api Nutrition Response Structure

NutritionResponse schema from Edamam Nutrition Analysis API

Type: object Properties: 10
RestaurantFoodNutritionUPC

NutritionResponse is a JSON Structure definition published by Edamam, describing 10 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

uri yield calories totalWeight dietLabels healthLabels cautions totalNutrients totalDaily ingredients

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

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/edamam/refs/heads/main/json-structure/nutrition-analysis-api-nutrition-response-structure.json",
  "name": "NutritionResponse",
  "description": "NutritionResponse schema from Edamam Nutrition Analysis API",
  "type": "object",
  "properties": {
    "uri": {
      "type": "string",
      "example": "http://www.edamam.com/ontologies/edamam.owl#recipe_abc123"
    },
    "yield": {
      "type": "double",
      "example": 4
    },
    "calories": {
      "type": "int32",
      "example": 640
    },
    "totalWeight": {
      "type": "double",
      "example": 812.3
    },
    "dietLabels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "High-Fiber"
      ]
    },
    "healthLabels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "Vegan",
        "Vegetarian",
        "Dairy-Free"
      ]
    },
    "cautions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": []
    },
    "totalNutrients": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "example": "Protein"
          },
          "quantity": {
            "type": "double",
            "example": 24.5
          },
          "unit": {
            "type": "string",
            "example": "g"
          }
        }
      }
    },
    "totalDaily": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "example": "Protein"
          },
          "quantity": {
            "type": "double",
            "example": 24.5
          },
          "unit": {
            "type": "string",
            "example": "g"
          }
        }
      }
    },
    "ingredients": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  }
}