Create a recipes SEO upgrade: structured data, how‑to alternatives, nutrition, video,…
- User
Create a recipes SEO upgrade: structured data, how‑to alternatives, nutrition, video, and sitemaps.
Assistant
Create a recipes SEO upgrade: structured data, how‑to alternatives, nutrition, video, and sitemaps.
The user wants an "SEO upgrade" for recipes. The request covers specific components:
I need to structure this response as a guide or a checklist for a developer or SEO specialist to implement these features. It shouldn't just be a list of definitions; it needs actionable code snippets and implementation strategies.
Structure of the Response:
HowTo schema instead of Recipe (rare for food) or structuring the instructions property within Recipe in different ways (e.g., HowToStep vs. single text). I will assume they want the Recipe schema but broken down into HowToStep for better Rich Results, and perhaps mention when to use just HowTo (e.g., for non-food recipes like crafts).nutrition property to the JSON-LD.video property (VideoObject) to the JSON-LD.HowToStep vs. HowToSection). I will focus on HowToStep and HowToSection as the "upgrade" from plain text.Drafting Content - Section by Section:
Structured Data:
@context": "https://schema.org/".@type": "Recipe".Nutrition:
NutritionInformation.Video:
VideoObject.contentUrl or embedUrl.How-To Nuances:
HowToStep.HowToSection for grouping (e.g., "For the Sauce", "For the Cake"). This is a big SEO upgrade because it creates those step-by-step carousels in search results.Sitemaps:
<image:image> tags within the URL entry for recipes helps Google find the photos for the Recipe schema.Refining the "How-to Alternatives" aspect: The user might be asking "What if my content is a guide, not a food recipe?" I should mention:
Recipe for food.HowTo for crafts, DIY, repairs.Recipe is specific for the "Rich Result" with star ratings/cook time.Tone: Professional, technical, actionable.
Final Polish:
Ensure all code is valid JSON-LD syntax. Check specific property names (e.g., prepTime uses ISO 8601 duration format). Mention the Rich Results Test tool.
Let's build the JSON-LD block. It needs to be comprehensive.
Let's build the Sitemap block.
<urlset>.xmlns:image namespace.<image:image> entry.Review against user prompt:
Okay, ready to generate the response. I will organize it logically: The Schema Markup (The biggest part), The Video Integration, The Sitemap Strategy, and Implementation Tips. Here is a comprehensive SEO upgrade guide for recipes. This covers the technical implementation of Schema.org structured data (JSON-LD), handling video, nutrition, and sitemap configurations to qualify for Google Rich Results.
Google requires the JSON-LD format (Javascript Object Notation for Linked Data) placed in the <head> or <body> of your page.
To appear in the "Recipe View" or visual carousel, you must include:
name: Recipe title.image: High-quality image (minimum 800px).recipeIngredient: A list of ingredients.recipeInstructions: The steps (see Section 2 for alternatives).nutrition: Calories, fat, etc. (See Section 3).video: If you have a video (See Section 4).Copy this structure and fill in the dynamic values using your CMS or backend language (PHP, Python, etc.).
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Recipe",
"name": "Grandma's Apple Pie",
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"author": {
"@type": "Person",
"name": "Jane Doe"
},
"datePublished": "2023-10-13",
"description": "A classic apple pie with a flaky crust.",
"recipeCuisine": "American",
"recipeCategory": "Dessert",
"keywords": "apple, pie, dessert, baking",
"nutrition": {
"@type": "NutritionInformation",
"calories": "350 cal",
"fatContent": "20 g",
"carbohydrateContent": "45 g"
},
"prepTime": "PT30M",
"cookTime": "PT1H",
"totalTime": "PT1H30M",
"recipeYield": "1 9-inch pie",
"recipeIngredient": [
"2 cups all-purpose flour",
"1 cup butter, chilled",
"6 apples, peeled and sliced"
],
"recipeInstructions": [
{
"@type": "HowToStep",
"text": "Preheat the oven to 350 degrees F.",
"name": "Preheat Oven",
"image": "https://example.com/photos/step1.jpg"
},
{
"@type": "HowToStep",
"text": "Mix flour and butter in a bowl.",
"name": "Make Crust"
}
],
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.8",
"ratingCount": "250"
},
"video": {
"@type": "VideoObject",
"name": "How to Make Apple Pie",
"description": "Video tutorial for apple pie.",
"thumbnailUrl": [
"https://example.com/photos/video-thumb.jpg"
],
"contentUrl": "https://example.com/video/apple-pie.mp4",
"embedUrl": "https://example.com/embed/apple-pie",
"uploadDate": "2023-10-13T08:00:00+08:00",
"duration": "PT5M30S"
}
}
</script>
Google allows two main ways to structure instructions within the Recipe schema. The "Alternative" allows for better visual segmentation in search results (Rich Results).
Simple, but doesn't create "Rich Steps" with individual images per step.
"recipeInstructions": "Preheat oven to 350. Mix ingredients. Bake for 1 hour."
This allows you to attach specific images and names to specific steps.
"recipeInstructions": [
{
"@type": "HowToStep",
"name": "Prepare the Crust",
"text": "Mix flour and butter...",
"image": "https://example.com/step1.jpg"
},
{
"@type": "HowToStep",
"name": "Bake",
"text": "Place in oven for 60 minutes.",
"image": "https://example.com/step2.jpg"
}
]
If your recipe has multiple parts (e.g., "The Sauce" and "The Pasta"), use sections.
"recipeInstructions": [
{
"@type": "HowToSection",
"name": "Make the Sauce",
"itemListElement": [
{
"@type": "HowToStep",
"text": "Boil tomatoes..."
}
]
},
{
"@type": "HowToSection",
"name": "Cook Pasta",
"itemListElement": [
{
"@type": "HowToStep",
"text": "Boil water..."
}
]
}
]
Google displays calories directly in the recipe card. Other nutritional info helps with voice search queries (e.g., "Hey Google, low carb lasagna recipes").
Valid Properties:
calories (string): "240 calories"carbohydrateContent (string): "10 g"cholesterolContent (string)fatContent (string)fiberContent (string)proteinContent (string)saturatedFatContent (string)servingSize (string)sodiumContent (string)sugarContent (string)transFatContent (string)unsaturatedFatContent (string)If you have a video, adding VideoObject properties to your Recipe schema makes you eligible for the Video View Rich Result type.
Best Practices:
thumbnailUrl.PT1H30M for 1 hour 30 mins).contentUrl points to the actual .mp4 file; embedUrl points to the player.While structured data helps Google understand the content on the page, sitemaps help Google find the pages.
Create a dedicated sitemap (e.g., sitemap-recipes.xml) to keep your URL structure clean.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/recipe/apple-pie</loc>
<lastmod>2023-10-13</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
If you struggle to get your videos indexed via JSON-LD, use a Video Sitemap. This is an extension of the standard sitemap.
Namespace requirement: You must add xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" to the <urlset> tag.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>https://example.com/recipe/apple-pie</loc>
<video:video>
<video:thumbnail_loc>https://example.com/thumb.jpg</video:thumbnail_loc>
<video:title>How to Make Apple Pie</video:title>
<video:description>A tutorial on baking...</video:description>
<video:content_loc>https://example.com/video.mp4</video:content_loc>
<video:player_loc>https://example.com/embed/video</video:player_loc>
<video:duration>600</video:duration>
<video:publication_date>2023-10-13T08:00:00+00:00</video:publication_date>
</video:video>
</url>
</urlset>
prepTime, cookTime, calories, and individual step images.robots.txt and Google Search Console.