Clique aqui para ver suas páginas visualizadas recentemente e as mais visualizadas.
Ocultar

Enabling Rich Snippets for Recipes

You can mark up your recipe content with structured data, providing detail such as reviewer ratings, cooking and preparation time, and nutrition information. Google uses this information to display your content in Search results in useful ways, such as:

  • showing rich snippets for recipe results
  • enabling your page for recipe-specific Search tools

Image of a rich snippet for a recipe in search results

Recipe markup properties

In order for rich snippets to be shown for a recipe, the markup must contain at least two of the following:

  • image
  • at least one of prepTime, cookTime, totalTime, or ingredients
  • nutritionInformation
  • review

When you mark up your recipe content, use the following properties of the schema.org Recipe type.

Property Type Description
name (required) Text The name of the dish.
recipeCategory Text The type of dish. For example: appetizer, entree, or dessert.
image URL or ImageObject Image of the dish being prepared.
datePublished Date The date the recipe was published, in ISO date format.
description Text A short summary describing the dish.
review Review A review of the dish. Can include nested review information.
prepTime Duration The length of time it takes to prepare the recipe for dish, in ISO 8601 duration format. Can use min, max as child elements to specify a range of time.
cookTime Duration The time it takes to actually cook the dish, in ISO 8601 duration format. Can use min, max as child elements to specify a range of time.
totalTime Duration The total time it takes to prepare the cook the dish, in ISO 8601 duration format. Can use min, max as child elements to specify a range of time.
nutrition NutritionInformation Nutrition information about the recipe.
recipeInstructions Text The steps to make the dish. Can contain the child element instruction, which can be used to annotate each step.
recipeYield Text The quantity produced by the recipe. For example: number of people served, or number of servings.
ingredients Text An ingredient used in the recipe.
author Person Creator of the recipe.

Examples

JSON-LD

<script type="application/ld+json">
{
"@context": "http://schema.org/",
  "@type": "Recipe",
  "name": "Grandma's Holiday Apple Pie",
  "image": "http://www.example.com/apple-pie.jpg",
  "author":{
    "@type":"Person",
    "name":"Carol Smith"
  },
  "datePublished": "2009-11-05",
  "description": "This is my grandmother's apple pie recipe. I like to add a dash of nutmeg.",
  "aggregateRating":{
    "@type": "AggregateRating",
    "ratingValue": "4.0",
    "reviewCount": "35"
  },
  "prepTime": "PT30M",
  "cookTime": "PT1H",
  "totalTime": "PT1H30M",
  "recipeYield": "1 9\" pie (8 servings)",
  "nutrition": {
    "@type": "NutritionInformation",
    "servingSize": "1 medium slice",
    "calories": "250 cal",
    "fatContent": "12 g"
  },
  "ingredients": [
    "apples",
    "White sugar"
  ],
  "recipeInstructions":
             "1. Cut and peel apples
              2. Mix sugar and cinnamon. Use additional sugar for tart apples.
              ..."
}
</script>

Microdata

<div itemscope itemtype="http://schema.org/Recipe">
  <h1 itemprop="name">Grandma's Holiday Apple Pie</h1>
  <img itemprop="image" src="apple-pie.jpg" />
  By <span itemprop="author" itemscope itemtype="http://schema.org/Person">
       <span itemprop="name">Carol Smith</span>
     </span>
  Published: <time datetime="2009-11-05" itemprop="datePublished">
    November 5, 2009</time>
  <span itemprop="description">This is my grandmother's apple pie recipe. I like to add a
    dash of nutmeg.</span>
  <span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
    <span itemprop="ratingValue">4.0</span> stars based on
    <span itemprop="reviewCount">35</span> reviews </span>
  Prep time: <time datetime="PT30M" itemprop="prepTime">30 min</time>
  Cook time: <time datetime="PT1H" itemprop="cookTime">1 hour</time>
  Total time: <time datetime="PT1H30M" itemprop="totalTime">1 hour 30 min</time>
  Yield: <span itemprop="recipeYield">1 9" pie (8 servings)</span>
  <span itemprop="nutrition" itemscope itemtype="http://schema.org/NutritionInformation">
    Serving size: <span itemprop="servingSize">1 medium slice</span>
    Calories per serving: <span itemprop="calories">250 cal</span>
    Fat per serving: <span itemprop="fatContent">12 g</span>
  </span>
  Ingredients:
    Thinly-sliced <span itemprop="ingredients">apples</span>:
     6 cups
      <span itemprop="ingredients">White sugar</span>:
      3/4 cup
  ...

  Directions:
    <div itemprop="recipeInstructions">
      1. Cut and peel apples
      2. Mix sugar and cinnamon. Use additional sugar for tart apples.
      ...
    </div>
</div>

RDFa

<div vocab="http://schema.org/" typeof="Recipe">
  <h1 property="name">Grandma's Holiday Apple Pie</h1>
  <img property="image" src="apple-pie.jpg" />
  By <span property="author" typeof="Person">
       <span property="name">Carol Smith</span>
     </span>
  Published: <time datetime="2009-11-05" property="datePublished">
    November 5, 2009</time>
  <span property="description">This is my grandmother's apple pie recipe. I like to add a
    dash of nutmeg.</span>
  <span property="aggregateRating" typeof="http://schema.org/AggregateRating">
    <span property="ratingValue">4.0</span> stars based on
    <span property="reviewCount">35</span> reviews </span>
  Prep time: <time datetime="PT30M" property="prepTime">30 min</time>
  Cook time: <time datetime="PT1H" property="cookTime">1 hour</time>
  Total time: <time datetime="PT1H30M" property="totalTime">1 hour 30 min</time>
  Yield: <span property="recipeYield">1 9" pie (8 servings)</span>
  <span property="nutrition" typeof="http://schema.org/NutritionInformation">
    Serving size: <span property="servingSize">1 medium slice</span>
    Calories per serving: <span property="calories">250 cal</span>
    Fat per serving: <span property="fatContent">12 g</span>
  </span>
  Ingredients:
    Thinly-sliced <span property="ingredients">apples</span>:
     6 cups
      <span property="ingredients">White sugar</span>:
      3/4 cup
  ...

  Directions:
    <div property="recipeInstructions">
      1. Cut and peel apples
      2. Mix sugar and cinnamon. Use additional sugar for tart apples.
      ...
    </div>
</div>

Recipe-specific usage guidelines and policies

In addition to the general policies that apply to all rich snippets, the following extra policies apply for Recipe rich snippets:

  • Recipe markup should be used for content about preparing a particular dish. For example, "facial scrub" or "party ideas" are not valid names for a dish.
  • Recipe markup should be used for a specific recipe, not a category of recipes or a list of recipes. For example, “10 apple pie recipes” is not a specific recipe. See also our structured data policies for multiple entities on the same page.
  • If the recipe markup contains a single review, the reviewer’s name must be a valid person or organization. For example, "50% off ingredients" is not a valid name for a reviewer.