How to add recipe structured data (JSON-LD) to a Shopify blog post

TL;DR

  • Recipe structured data makes a post eligible for recipe rich results in Google Search and Google Images, which can show a photo, rating and cook time.
  • Google requires only name and image, but recommends times in ISO 8601 format, yield, ingredients, steps, nutrition, ratings and video. If you add calories, you must also add a yield.
  • On Shopify, paste the JSON-LD into the post's HTML, add it to the article template with Liquid, or use a recipe block that builds the markup from the visible recipe card.
Contents
  1. What is recipe structured data?
  2. Which fields to include
  3. A complete example
  4. How to add it to a Shopify blog post
  5. Go further: ratings, video and carousels
  6. How to test it
  7. Recipe markup and AI search
  8. Common mistakes
  9. FAQ
  10. Conclusion
  11. Sources

Recipe structured data is code that describes your recipe to search engines: what it makes, how long it takes, what goes in and the steps. It makes your Shopify blog post eligible for recipe rich results, which can show a photo, a rating and the cook time right in Google.

Markup creates eligibility, not a guarantee. But without it, your recipe can’t appear as a recipe rich result at all. This guide shows which fields Google wants, a complete example, three ways to add it in Shopify, and how to test it.

What is recipe structured data?

Recipe structured data is a block of JSON-LD code that labels the parts of a recipe, such as its name, photo, times, ingredients and steps, using the schema.org Recipe type. Google reads it to show recipe rich results in Search and Images. On a Shopify blog post, you add it to the post’s HTML, the theme template or through an app.

Recipe is one of the rich result types Google still supports after its 2025 and 2026 cleanups, which removed several others, including FAQ rich results on May 7, 2026. That makes it one of the most useful types of structured data a food or kitchen store can add.

Which fields to include

Google’s Recipe documentation requires two properties and recommends many more:

Property Required? What to put in it
name Required The recipe title
image Required Photos of the finished dish. Google recommends several high-resolution images in 16x9, 4x3 and 1x1 ratios
description Recommended One or two sentences about the dish
prepTime, cookTime Recommended Use both together, in ISO 8601 format
totalTime Recommended Use instead of, or along with, prep and cook time
recipeYield Recommended For example, “18 cookies” or “4 servings”
recipeIngredient Recommended One item per ingredient, with the amount
recipeInstructions Recommended A list of HowToStep items, one per step
recipeCategory, recipeCuisine Recommended For example, “Dessert” and “American”
keywords Recommended Extra terms, like “gluten-free” or “holiday”
nutrition.calories Recommended Calories per serving. Requires recipeYield
aggregateRating Recommended Average rating and count, only from real reviews
video Recommended A VideoObject for a recipe video
author, datePublished Recommended Who wrote it and when

Times use ISO 8601 durations. Here are the ones you’ll use most:

Time ISO 8601
15 minutes PT15M
45 minutes PT45M
1 hour PT1H
1 hour 20 minutes PT1H20M
2 days (for example, curing) P2D

A complete example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Recipe",
  "name": "Salted Tahini Chocolate Chip Cookies",
  "image": [
    "https://yourstore.com/cdn/shop/articles/tahini-cookies-1x1.jpg",
    "https://yourstore.com/cdn/shop/articles/tahini-cookies-4x3.jpg",
    "https://yourstore.com/cdn/shop/articles/tahini-cookies-16x9.jpg"
  ],
  "author": { "@type": "Person", "name": "Amina" },
  "datePublished": "2026-08-01",
  "description": "Chewy chocolate chip cookies with tahini and flaky sea salt.",
  "prepTime": "PT15M",
  "cookTime": "PT12M",
  "totalTime": "PT27M",
  "keywords": "tahini cookies, chocolate chip, bake sale",
  "recipeYield": "18 cookies",
  "recipeCategory": "Dessert",
  "recipeCuisine": "American",
  "nutrition": { "@type": "NutritionInformation", "calories": "210 calories" },
  "recipeIngredient": [
    "200 g all-purpose flour",
    "120 g tahini",
    "100 g butter, softened",
    "150 g brown sugar",
    "1 egg",
    "170 g dark chocolate, chopped",
    "Flaky sea salt for topping"
  ],
  "recipeInstructions": [
    { "@type": "HowToStep", "text": "Cream butter, tahini and sugar. Beat in the egg, then fold in flour and chocolate." },
    { "@type": "HowToStep", "text": "Chill the dough for 30 minutes." },
    { "@type": "HowToStep", "text": "Scoop onto a lined tray, top with sea salt and bake at 180°C for 12 minutes." }
  ]
}
</script>

The most important rule: the markup must describe content that’s visible on the page. Listing steps or ingredients the reader can’t see goes against Google’s structured data guidelines, and can lead Google to ignore the markup or take manual action.

How to add it to a Shopify blog post

Method Effort Best for Main risk
Paste JSON-LD in the post HTML Low per post, high over time A few recipes Markup and visible recipe drift apart
Liquid in the article template One-time developer work Many recipes in a consistent format Breaks when the theme changes
A recipe block that generates markup Low Stores publishing recipes regularly Depends on an app

The manual way

In your Shopify admin, go to Content > Blog posts and open the post. In the editor, click Show HTML and paste the script at the end of the post content, then save.

This works, but it has drawbacks. You write the JSON by hand for every recipe, one missing comma breaks the whole block, and every time you edit the recipe you have to update the markup too.

Verify: view the published page source and search for "@type": "Recipe".

The template way

A developer can add the markup to your article template with Liquid, reading values from article metafields such as prep time, yield and ingredients. You fill those fields for each recipe, and the template outputs consistent JSON-LD.

This removes typing errors, but the metafields and the visible recipe still need to match, and the code has to move with you if you change themes.

The no-code way

In vevy Blog Builder, you add a Recipe block and fill in normal fields: title, image, times, servings, ingredients, steps and nutrition. Readers see a designed recipe card in the post.

vevy Recipe block settings with the Structured data card showing generated Recipe JSON-LD, next to the recipe card in the article preview

On the Pro plan, vevy creates the Recipe JSON-LD from that card and adds it to the page when you publish. Because the markup comes from the visible card, the two always match. You still need to add good photos yourself, because Google judges the image, not the markup.

Go further: ratings, video and carousels

Once the basics work, three additions can make the result richer:

  • Ratings. Add aggregateRating only when the rating comes from real reader reviews on the page. Google’s review snippet guidelines apply, and fake or self-written ratings can cost you the rich result.
  • Video. If you film the recipe, add a video property with a VideoObject. Individual steps can carry their own video clips too.
  • Carousels. If you have a page that lists all recipes in a collection, such as “Christmas cookies,” ItemList markup can make the collection eligible for a host carousel. Each item needs its own position and canonical URL.

How to test it

Run the published post through Google’s Rich Results Test. It shows whether the recipe is detected, previews how it may look, and lists recommended fields that are missing.

After that, check the Recipes report in Search Console from time to time. It lists errors and warnings across all your recipe posts in one place. Warnings for missing recommended fields don’t block the rich result, but filling them in gives Google more to show.

Google says structured data isn’t required to appear in AI Overviews or AI Mode, and that no special markup is needed for them. Recipe markup still helps the classic recipe results, and a well-labeled recipe page is easier for any system to read correctly. Focus on the recipe itself first: tested amounts, clear steps and your own photos. Read more: Google AI Overviews vs AI Mode.

Common mistakes

Writing times in words. “15 minutes” isn’t valid. Use PT15M.

Adding calories without a yield. Google requires recipeYield whenever you define calories, because calories are per serving.

Marking up a recipe that isn’t on the page. Every ingredient and step in the markup must be visible to readers.

Two recipe blocks for one recipe. If your theme or another app already outputs Recipe markup, adding a second copy creates duplicates. Check the page source first.

FAQ

Does Shopify add recipe structured data automatically?

No. Shopify themes usually output Article markup for blog posts and Product markup for product pages, but not Recipe markup. You need to add Recipe JSON-LD yourself, through the post HTML, a developer-built template, or an app that generates it from a recipe block.

Which recipe fields does Google require?

Google requires only name and image. Everything else is recommended, but recommended fields like times, yield, ingredients, steps, calories and ratings decide how rich the result can look. Fill in every field you can support with visible content on the page.

Can I have more than one recipe in a Shopify blog post?

Yes. Add one Recipe object for each recipe that’s fully shown on the page. If a post only links to other recipes, don’t mark those up there. Mark them up on their own pages, and use ItemList on a summary page if you want a carousel.

Why isn’t my recipe showing as a rich result?

Valid markup makes a page eligible, but Google decides when to show a rich result. Check that the page is indexed, the markup passes the Rich Results Test, the content is visible and the images are high quality. Then give Google time to recrawl. A rich result can also appear for some searches and not others.

Conclusion

Recipe structured data turns a recipe post into a candidate for recipe rich results with a photo, rating and cook time. Include the required name and image, fill in every recommended field you can show on the page, and test it before and after publishing. Today, pick your most visited recipe post, add the markup, and run it through the Rich Results Test.

Add recipes without writing code

Drag a recipe card into any Shopify blog post and keep the markup in sync with it.

Get for free

Sources

Article by

Narmina

Narmina is one of the founders at vevy.ai. She has over 8 years of experience in SEO and content marketing in eCommerce and SaaS businesses. She loves optimizing content more than posing for photos, so there’s no professional shoot yet. Excuse her.

Built for Shopify stores

Shopify blog posts that sell your products

Build posts from ready-made templates and 30+ drag-and-drop blocks, add products, and see which posts bring sales.

INSTALL FOR FREE