What is AggregateRating in Schema.org?
AggregateRating is the Schema.org type that expresses the average rating of something based on many ratings or reviews: the average score, how many ratings make it up and what scale it is on. On a product page it is nested inside the product node, and it is the data Google can draw the stars it shows next to a result from.
Key takeaways
- AggregateRating sums up many ratings in one: the average (ratingValue), how many there are (ratingCount or reviewCount) and, if needed, the scale.
- If you do not state the scale, Google assumes it runs from 1 to 5.
- The ratings you mark up have to be visible on the page, and Google asks you not to gather ones from other sites.
- A business that controls the reviews about itself does not qualify for stars with its organization markup.
- Marking up the rating makes the page eligible for stars; whether they are shown is Google's call.
The stars that sometimes appear under a Google result, with "4.6" and the number of reviews next to them, come from something specific in the page's code: an AggregateRating node. It is a type from Schema.org. It is not a review: it is the average of all of them, with their count. Each individual review, with its author and its text, is another type, Review. It matters to you because it is the property in your structured data that is most visible when it works, and the one with the most rules about where the numbers can come from.
How it works
Schema.org defines AggregateRating as the average rating based on multiple ratings or reviews. It is a kind of rating (Rating) and, with the aggregateRating property, it can hang off a brand, a creative work, an event, an offer, an organization, a place, a service or a Product.[1]Schema.org. AggregateRating Its properties are few:[1]Schema.org. AggregateRating
| Property | What it says |
|---|---|
ratingValue |
The average score |
ratingCount |
How many ratings make up that average |
reviewCount |
How many reviews there are |
bestRating |
The highest value the scale allows |
worstRating |
The lowest value the scale allows |
itemReviewed |
What is being rated |
Google uses it for the review snippet, which it describes as a short excerpt of a review or a rating, usually the average of many people's scores, and which can appear in rich results or in the knowledge panel with stars and other summary data.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data For that it asks for:[2]Google Search Central. Review snippet (Review, AggregateRating) structured data
ratingValue, the average, as a number, fraction or percentage.ratingCountorreviewCount, at least one of the two. Google spells out the difference: the first counts the ratings of the item on your site; the second, the people who left a review, with a score or without one.itemReviewed, what is being rated, unless the rating is nested inside another type with theaggregateRatingproperty, which is the normal case on a product page: then it is omitted.- The scale, if it is not the usual one. If
bestRatingis missing, Google assumes it is 5; ifworstRatingis missing, 1.
On a product, the rating is one of three doors to the product snippet: Google requires the name and at least one of these three properties, review, aggregateRating or offers.[3]Google Search Central. Product snippet (Product, Review, Offer) structured data
The rules matter as much as the properties. The ratings you mark up have to be visible to people visiting the page, and Google asks you not to gather reviews or ratings from other sites.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data And there is an exception that surprises many businesses: if the rated entity controls the reviews about itself, its pages with local business or organization markup do not qualify for stars.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data The rule is about that markup, the business's markup about itself; the ratings of the products it sells are marked up on the product.
In a store
A product page with its reviews and its node, side by side. Fictional example: the store, the product, the score and the number of reviews are made up.
| What the product page shows | AggregateRating property | Value |
|---|---|---|
| "4.6 out of 5" | ratingValue |
"4.6" |
| "38 reviews" | reviewCount |
"38" |
| Stars from 1 to 5 | bestRating, worstRating |
They can be omitted: it is the default scale |
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Coastal linen shirt, blue",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.6",
"reviewCount": "38"
}
}
No itemReviewed, because it sits inside the product.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data No bestRating, because the store's scale runs from 1 to 5, the one Google assumes.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data And with the same numbers the customer sees: if the product page says 38 reviews, the node says 38, because structured data cannot mark up what the reader does not see.[4]Google Search Central. General structured data guidelines If the product page shows no reviews, the node carries no rating. Stores that publish with Clione follow that same rule: the rating on the product node comes from the store's own reviews (on BigCommerce, the platform's; on Shopify, the standard review metafields that the main apps write), and a product with no reviews carries none.
What gets mixed up
Marking up a score out of 10 without stating the scale. If your store rates from 1 to 10 and the node says "ratingValue": "9.2" with no bestRating, Google understands the scale goes up to 5, because that is what it assumes when it is missing.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data The average you see on the product page and the one the machine reads stop being the same.
How to check
- Search for
aggregateRatingin the source code of a product page and noteratingValue,ratingCountorreviewCount, andbestRatingif there is one. - Compare them with what the customer sees at that moment: the same average and the same number of reviews, visible on the product page.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data
- Check the scale. If your ratings do not run from 1 to 5, the node has to say so with
bestRatingandworstRating.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data - Confirm where the reviews come from: they have to be from your site, not gathered from others.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data
- Run the URL through the Rich Results Test to see what it detects and with which errors or warnings.[5]Search Console Help. Rich Results Test
Related concept: Review
AggregateRating and Review are often marked up together and answer different questions. Review is one specific opinion, with whoever wrote it and their score; AggregateRating is the average of many, with their count.[1]Schema.org. AggregateRating A product can carry both, and both types serve Google's review snippet, each with its own required properties.[2]Google Search Central. Review snippet (Review, AggregateRating) structured data If you want the stars to show with the number of reviews, the node that says it is AggregateRating; if you want to highlight what one customer wrote, it is Review. What your customers write, before it becomes markup, is product reviews, and they have an entry of their own.
To go further, the structured data reading path lays out the rest of the terms, and the Organization entry explains which markup describes the business and why it is not the place for its stars.
Synonyms
- English
- aggregate rating, aggregate rating schema
- Español
- valoración media, valoración agregada
Sources
- [1] Schema.org. AggregateRating. Accessed . ↑ ↑ ↑
- [2] Google Search Central. Review snippet (Review, AggregateRating) structured data. Accessed . ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
- [3] Google Search Central. Product snippet (Product, Review, Offer) structured data. Accessed . ↑
- [4] Google Search Central. General structured data guidelines. Accessed . ↑
- [5] Search Console Help. Rich Results Test. Accessed . ↑
Change history
- First English version.
This definition is published under CC BY 4.0. Reuse this definition freely, crediting Clione with a link to this page.
Related terms
Review
What the Schema.org Review type is, which properties Google asks for in a review, what rules apply and how to mark up customer reviews on a product page.
Product reviews
What product reviews are, what Google's reviews system evaluates, and the rules for customer reviews.
Product
What the Schema.org Product type is, which properties it carries, what Google requires for product snippets and merchant listings, and how to check it.
Rich results
What Google rich results are, which ones matter in a store, why valid markup doesn't guarantee you'll see them, and how to check.
Organization
What Schema.org's Organization type is, which properties Google recommends, where it goes in an online store, and why it has to match your site.
AggregateOffer
What AggregateOffer is in Schema.org, which properties Google asks for, why it doesn't fit your product page's variants and which pages it really suits.
Make your catalog easy for bots to read
Clione fills every product page with what bots read best: the JSON-LD graph with its structured data, the meta description and the FAQs. You review and press Push; then we check your live store so it all stays published.