Edamam · JSON Structure

Food And Grocery Database Api Nutrients Request Structure

NutrientsRequest schema from Edamam Food and Grocery Database API

Type: object Properties: 1 Required: 1
RestaurantFoodNutritionUPC

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

Properties

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/food-and-grocery-database-api-nutrients-request-structure.json",
  "name": "NutrientsRequest",
  "description": "NutrientsRequest schema from Edamam Food and Grocery Database API",
  "type": "object",
  "properties": {
    "ingredients": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "quantity",
          "measureURI",
          "foodId"
        ],
        "properties": {
          "quantity": {
            "type": "double",
            "example": 1
          },
          "measureURI": {
            "type": "string",
            "example": "http://www.edamam.com/ontologies/edamam.owl#Measure_unit"
          },
          "foodId": {
            "type": "string",
            "example": "food_bpdj2labtmnvf2a8tk4nqa1y9pty"
          }
        }
      }
    }
  },
  "required": [
    "ingredients"
  ]
}