Menu, Recipe, Nutrition and Restricted Diet Markup
How Schema.org types and properties model restaurant menus, recipes, nutrition facts, and dietary labels for structured data on food pages.
This page summarises Schema.org vocabulary for food on the web: linking a FoodEstablishment to Menu data, describing MenuItem and Recipe content, attaching NutritionInformation, and expressing diet suitability through RestrictedDiet and related types. It is aimed at publishers who need machine-readable menus and nutrition without re-reading dozens of property pages.
Menu and Recipe markup: when to use which type
Section titled “Menu and Recipe markup: when to use which type”Menu and Recipe answer different user questions. A menu describes what a venue sells or serves right now; a recipe describes how to prepare a dish (instructions, time, yield). Recipe is a more specific type under HowTo, so recipe pages typically use @type: Recipe rather than a generic how-to.
| Situation | Primary type | Typical properties |
|---|---|---|
| Restaurant or café listing dishes | Menu → MenuItem |
hasMenuItem, hasMenuSection, offers on items |
| Blog or publisher instruction page | Recipe |
recipeIngredient (replaces legacy ingredients), recipeInstructions, cookTime, cookingMethod |
| Same dish in both contexts | Both, as separate entities | Shared nutrition and suitableForDiet where accurate |
A structured representation of food or drink items available from a FoodEstablishment.
— Schema.org, Menu
For search systems that support recipe rich results, markup should include the attributes those programs expect. Bing Webmaster Help states that recipes will contain one or more of the defined recipe attributes—align your JSON-LD with the properties you actually show on the page.
FoodEstablishment: linking the business to a menu
Section titled “FoodEstablishment: linking the business to a menu”A food-related business is modeled as FoodEstablishment. Among the properties defined for that type are acceptsReservations, hasMenu, the older menu property, and servesCuisine.
hasMenu vs menu: which property to use
Section titled “hasMenu vs menu: which property to use”hasMenu is the current way to attach menu data to a venue. The legacy menu property has the same meaning but is marked superseded in favor of hasMenu.
Either the actual menu as a structured representation, as text, or a URL of the menu.
— Schema.org, hasMenu
In practice you may provide a full inline Menu object, plain text, or a URL to a menu page. Structured Menu markup is preferable when individual dishes have prices, nutrition, or diet labels—otherwise consumers only see an opaque link.
FoodService describes a meal period or service (for example breakfast or dinner) as a Service type; mealService on other types (such as flights) is a text description of meals offered, not the same as a full Menu tree.
Menu structure: sections, items, and add-ons
Section titled “Menu structure: sections, items, and add-ons”hasMenuSection and hasMenuItem
Section titled “hasMenuSection and hasMenuItem”A Menu groups dishes through hasMenuSection and hasMenuItem:
A subgrouping of the menu (by dishes, course, serving time period, etc.).
— Schema.org, hasMenuSection
A food or drink item contained in a menu or menu section.
— Schema.org, hasMenuItem
Sections can nest: both Menu and menu sections may contain further sections or items, which matches real menus (courses, “Vegan”, “Drinks”, and so on). The type MenuSection is defined as a sub-grouping of food or drink items—for example courses, dish types, or the venue’s own groupings.
MenuItem fields that matter on listings
Section titled “MenuItem fields that matter on listings”A MenuItem is a food or drink entry on a menu or inside a section:
A food or drink item listed in a menu or menu section.
— Schema.org, MenuItem
Useful properties on items include:
nameand description fields fromThingnutrition→NutritionInformationsuitableForDiet→RestrictedDietorDietoffersfor price and availabilitymenuAddOnfor sides or optional add-ons
Additional menu item(s) such as a side dish of salad or side order of fries that can be added to this menu item. Additionally it can be a menu section containing allowed add-on menu items for this menu item.
— Schema.org, menuAddOn
An add-on can be another MenuItem or a MenuSection listing allowed extras—mirror how your ordering UI groups sides.
NutritionInformation: calories, macros, and serving size
Section titled “NutritionInformation: calories, macros, and serving size”nutrition on MenuItem or Recipe points to NutritionInformation:
Nutrition information about the recipe or menu item.
— Schema.org, nutrition
Nutritional information about the recipe.
— Schema.org, NutritionInformation
Property units and meaning
Section titled “Property units and meaning”Each numeric field has a fixed meaning in the schema; values should match what you show to users (per serving unless your label states otherwise).
| Property | Documented quantity |
|---|---|
calories |
Number of calories |
carbohydrateContent |
Grams of carbohydrates |
proteinContent |
Grams of protein |
fatContent |
Grams of fat |
saturatedFatContent |
Grams of saturated fat |
unsaturatedFatContent |
Grams of unsaturated fat |
transFatContent |
Grams of trans fat |
fiberContent |
Grams of fiber |
sugarContent |
Grams of sugar |
cholesterolContent |
Milligrams of cholesterol |
sodiumContent |
Milligrams of sodium |
servingSize |
Serving size as text (volume or mass) |
The number of calories.
— Schema.org, calories
The serving size, in terms of the number of volume or mass.
— Schema.org, servingSize
Google’s published usage bands on several nutrition properties (for example calories, fatContent) fall in the “10K–100K domains” range in the schema index—many sites already expose these fields, but accuracy and consistency with on-page labels still matter more than filling every column.
suitableForDiet and RestrictedDiet: labeling dishes and recipes
Section titled “suitableForDiet and RestrictedDiet: labeling dishes and recipes”suitableForDiet marks whether a MenuItem or Recipe fits a dietary restriction or guideline:
Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc.
— Schema.org, suitableForDiet
Expected values are Diet or RestrictedDiet. For common labels, prefer enumeration members of RestrictedDiet:
A diet restricted to certain foods or preparations for cultural, religious, health or lifestyle reasons.
— Schema.org, RestrictedDiet
RestrictedDiet enumeration members
Section titled “RestrictedDiet enumeration members”| Member | Meaning (from schema) |
|---|---|
DiabeticDiet |
Appropriate for people with diabetes |
GlutenFreeDiet |
Exclusive of gluten |
HalalDiet |
Conforming to Islamic dietary practices |
HinduDiet |
Hindu dietary practices; in particular, beef-free |
KosherDiet |
Conforming to Jewish dietary practices |
LowCalorieDiet |
Reduced calorie intake |
LowFatDiet |
Reduced fat and cholesterol intake |
LowLactoseDiet |
Appropriate for lactose intolerance |
LowSaltDiet |
Reduced sodium intake |
VeganDiet |
Exclusive of all animal products |
VegetarianDiet |
Exclusive of animal meat |
Use only labels you can defend on the page or in kitchen practice; structured data is not a substitute for allergen disclosures required by law.
Diet type vs RestrictedDiet on menu items
Section titled “Diet type vs RestrictedDiet on menu items”Diet is a broader CreativeWork / lifestyle concept—“a strategy of regulating the intake of food to achieve or maintain a specific health-related goal.” It supports plan-level text such as dietFeatures, expertConsiderations, physiologicalBenefits, risks, and endorsers.
Nutritional information specific to the dietary plan. May include dietary recommendations on what foods to avoid, what foods to consume, and specific alterations/deviations from the USDA or other regulatory body’s approved dietary guidelines.
— Schema.org, dietFeatures
The same Diet type can appear as the value of diet or exerciseRelatedDiet on ExerciseAction (sub-properties of instrument). That is separate from tagging a single dish with HalalDiet via suitableForDiet.
Recipe-specific properties beyond nutrition
Section titled “Recipe-specific properties beyond nutrition”When the page is a recipe, combine nutrition and suitableForDiet with preparation metadata:
cookTimeis a sub-property of perform time (withperformTimeas parent in the hierarchy)cookingMethoddescribes techniquerecipeIngredientsupersedesingredientsrecipeYieldexpresses output quantity (underyield)recipeInstructionsis the modern instruction field (related tostep)
Legacy property names may still parse in some tools, but new markup should use the superseding terms listed on the canonical property pages.
Common mistakes
Section titled “Common mistakes”- Using
menuonFoodEstablishmentinstead ofhasMenufor new work. - Flattening the whole venue into one
MenuIteminstead ofMenu→ sections → items. - Copying nutrition numbers that do not match
servingSizeor the visible label. - Setting
suitableForDietto free-text instead ofRestrictedDietmembers or a well-describedDietentity. - Marking a page as
Recipewithout instructions or ingredients users can see—Bing’s recipe guidance assumes recipe attributes reflect on-page content.
How to check this on your site
Section titled “How to check this on your site”-
Open your live menu or recipe URL and confirm visible names, prices, ingredients, instructions, nutrition, and diet labels match the JSON-LD (or microdata) you publish.
-
For each
@type, compare your properties to the canonical definitions on Schema.org (for example Menu, MenuItem, NutritionInformation, RestrictedDiet). -
If the page is a recipe, review Bing Webmaster Help — recipes and ensure your markup includes the recipe attributes you display.
-
Re-test after changes to menu PDFs, third-party ordering links, or per-portion nutrition updates so
hasMenuURLs andnutritionblocks stay aligned. -
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.