Rating Schema: Best Practices for SEO and Structured Data
Author:
Rostyslav Wirt
Table of content:
Rating schema is one of the most valuable types of structured data for websites that collect reviews, ratings, and user feedback. By implementing Schema.org rating markup, website owners can help search engines better understand their content and provide additional context about products, books, software, courses, and other rated entities. While rating schema does not directly improve rankings, it can contribute to enhanced search visibility through rich results, improve click-through rates, and increase user trust by displaying ratings directly in search results when Google’s eligibility requirements are met.
What Is Rating Schema?
Rating schema is structured data that communicates rating information in a machine-readable format. It is typically implemented using the Schema.org AggregateRating or Review types and attached to a specific entity such as a product, book, software application, recipe, or course.
Search engines use this information to understand the overall quality, popularity, and user perception of an item. Instead of relying solely on visible content, crawlers can interpret the exact rating value, review count, and rating scale provided through structured data.
The recommended implementation method is JSON-LD, which Google considers the preferred format for structured data because it is easier to maintain and separate from page markup.
Why Rating Schema Matters for SEO
Structured data helps search engines understand content more accurately. When rating schema is implemented correctly and follows Google’s guidelines, eligible pages may display rich snippets containing review stars, average ratings, and review counts directly in search results.
Potential benefits include:
- Improved search result visibility
- Higher click-through rates (CTR)
- Better user trust and credibility
- Enhanced semantic understanding by search engines
- More informative search listings
It is important to understand that rating schema itself is not a ranking factor. However, improved visibility and user engagement can indirectly contribute to stronger organic performance over time.
Types of Content That Can Use Rating Schema
Rating markup can be implemented across many different content types as long as genuine reviews and ratings exist.
| Schema Type | Typical Use Case |
|---|---|
| Product | Physical and digital products |
| Book | Books and eBooks |
| SoftwareApplication | WordPress plugins, SaaS products, mobile apps |
| Course | Educational courses and training programs |
| Recipe | Food and cooking websites |
| Movie | Films and entertainment content |
| Game | Video games and board games |
| LocalBusiness | Customer-reviewed local businesses |
| Event | Conferences, webinars, and live events |
Not every Schema.org type that supports ratings automatically qualifies for Google’s rich results. Eligibility depends on Google’s structured data guidelines and the quality of the visible content on the page.
Product Rating Schema Example
One of the most common uses of rating schema is for products. Online stores use AggregateRating to provide search engines with information about customer ratings and review counts.
The following example demonstrates a valid Product schema with aggregate ratings:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Executive Anvil",
"image": [
"https://example.com/images/anvil.jpg"
],
"description": "Professional steel anvil for industrial use.",
"sku": "0446310786",
"brand": {
"@type": "Brand",
"name": "ACME"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.8,
"reviewCount": 127,
"bestRating": 5,
"worstRating": 1
},
"offers": {
"@type": "Offer",
"url": "https://example.com/executive-anvil",
"priceCurrency": "USD",
"price": "119.99",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
}
}This markup provides search engines with structured information about the product, pricing, availability, and customer ratings.
Product Schema Best Practices
When implementing product ratings:
- Display the rating visibly on the page.
- Ensure review counts match actual customer reviews.
- Keep ratings updated when new reviews are submitted.
- Include product-specific information such as price and availability.
- Validate markup before publishing.
Book Rating Schema Example
Books are another supported content type for rating schema. Publishers, authors, bookstores, and review websites commonly use structured ratings to highlight reader feedback.
The following example demonstrates a valid Book schema with aggregate ratings:
{
"@context": "https://schema.org",
"@type": "Book",
"name": "The Pragmatic Programmer",
"author": {
"@type": "Person",
"name": "Andrew Hunt"
},
"isbn": "9780135957059",
"image": "https://example.com/images/pragmatic-programmer.jpg",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.9,
"reviewCount": 356,
"bestRating": 5,
"worstRating": 1
}
}Unlike products, books typically do not require pricing or offer information to communicate rating data effectively.
Book Schema Best Practices
For book reviews and ratings:
- Use real reader reviews.
- Include author and ISBN information whenever possible.
- Ensure ratings are visible to users.
- Keep review counts synchronized with displayed content.
- Use JSON-LD instead of microdata whenever possible.
AggregateRating vs Review
Although both schema types describe ratings, they serve different purposes.
AggregateRating
AggregateRating represents the overall rating calculated from multiple users or reviews.
Example:
- Rating: 4.8/5
- Reviews: 127
- Source: Combined user feedback
This is the most common implementation used by eCommerce websites, software directories, and review platforms.
Review
Review represents a single review written by a specific author.
Example:
{
"@context": "https://schema.org",
"@type": "Review",
"author": {
"@type": "Person",
"name": "John Smith"
},
"reviewRating": {
"@type": "Rating",
"ratingValue": 5
},
"reviewBody": "Excellent product with great performance."
}A page may contain multiple reviews while also displaying an aggregate rating based on those reviews.
Rating Schema Best Practices
Proper implementation is essential for maintaining eligibility for rich results and avoiding structured data issues.
Follow Google’s Structured Data Guidelines
Always ensure that:
- Ratings represent genuine user feedback.
- Structured data matches visible page content.
- Review counts are accurate.
- Ratings are not misleading or artificially generated.
- Schema is attached to the correct entity type.
Use JSON-LD
Google recommends JSON-LD because it is easier to implement, maintain, and validate than traditional microdata.
Validate Your Markup
Before publishing, test your structured data using:
- Google Rich Results Test
- Schema Markup Validator
Validation helps identify missing properties, syntax errors, and guideline violations.
Keep Ratings Updated
Search engines expect rating values and review counts to reflect current information. Outdated ratings can reduce trust and create inconsistencies between structured data and visible content.
Simplify Rating Schema with Wirt Star Rating
If you manage a WordPress website, implementing structured rating markup manually can be time-consuming and error-prone. Wirt Star Rating automatically generates valid rating schema for the post types you choose, making it easy to add SEO-friendly structured data without writing code. Whether you want rating markup for blog posts, WooCommerce products, custom post types, or other WordPress content, the plugin helps ensure your ratings are properly structured, consistent, and ready for search engines.
