Course contentsShow
← Web Development
Lesson 1863 of 2,98234. Metadata and SEOFree lesson

Review and Rating Schema

Implement Review and AggregateRating schema to display star ratings in search results for products or services.

Review and Rating Schema

What you'll learn: How to add structured data that makes star ratings and review counts appear directly in search results, boosting click-through rates and trust.

What Are Review and Rating Schemas?

When you search for products or services online, you've probably seen those eye-catching star ratings displayed right in the search results—before you even click. These aren't magic; they're powered by Review and AggregateRating schema markup that tells search engines exactly what people think about your product or service.

Think of it like this: instead of search engines guessing what your reviews mean, you're handing them a clearly labeled report card that says "This product has 4.5 stars from 89 reviews."

The Two Schema Types

Review represents a single review from one person, while AggregateRating summarizes all reviews with an average score and total count. For search result rich snippets, you'll typically use AggregateRating nested within a Product or Service schema.

Example Implementation

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Wireless Headphones Pro",
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.5",
    "bestRating": "5",
    "worstRating": "1",
    "ratingCount": "89"
  }
}
</script>

This tells search engines: "This product averages 4.5 stars out of 5, based on 89 customer ratings." Google can then display those stars in search results, making your listing stand out.

Requirements and Best Practices

  • Include actual rating values from real users (not aspirational or fake reviews)
  • Use ratingCount (total ratings) or reviewCount (written reviews)
  • Specify bestRating and worstRating for clarity (usually 5 and 1)
  • Only mark up visible reviews on your page

Key Takeaway: Review and AggregateRating schema transforms hidden review data into visible trust signals in search results, dramatically increasing your listing's appeal and click-through rate.