Show price, stock and ratings under your product in Google. Fill the fields from your product page, add shipping and returns if you like, and copy JSON-LD that was checked against Google's product rules while you typed.
Optional. We read the page once to fill the fields and store nothing. You can also fill everything by hand.
Schema type
Product: Price, stock and star rating under the product result.
Google needs a price, a rating or a review to show a product result. Shipping and returns are optional, and Google can read them from Merchant Center instead.
Google requires the product name.
Required for merchant listings, and the result looks empty without it.
What the product is, in the words of your product page.
Helps Google match the product to its brand.
Your own product code, so each item is told apart.
The price Google shows. Use a dot for decimals, no currency sign.
Three-letter code, for example USD or EUR.
For example WebSite next to Organization on the homepage. The blocks are linked, so your company appears once.
Your JSON-LD
Fill the fields or read your page, and the code builds as you type.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"offers": {
"@type": "Offer",
"availability": "https://schema.org/InStock"
}
}
</script>The test buttons copy the code first. In the tab that opens, choose “Code” and paste it.
Google has two kinds of product results. Product snippets show a price, stock or star rating under an ordinary result and work for any page about a product, reviews included. Merchant listings appear in Google's shopping results and need a page where people can buy, with an image and a price in its currency. Source: Google's product structured data guide.
The minimum for a product snippet is the name plus one of three things: an offer with a price, an aggregate rating, or a review. This generator flags a block that has none of them, and a price without its currency.
The same fields the generator above marks as you type. The optional ones open under “Show optional fields” in the form.
| Field | Why it matters | |
|---|---|---|
| Product name | Required | Google requires the product name. |
| Image URL | Recommended | Required for merchant listings, and the result looks empty without it. |
| Description | Recommended | What the product is, in the words of your product page. |
| Brand | Recommended | Helps Google match the product to its brand. |
| SKU | Recommended | Your own product code, so each item is told apart. |
| Price | Recommended | The price Google shows. Use a dot for decimals, no currency sign. |
| Currency | Recommended | Three-letter code, for example USD or EUR. |
| Availability | Recommended | Shown under the result: in stock, sold out or pre-order. |
Written by the generator above from sample values for a made-up business. Paste it inside a script tag of type application/ld+json, with your own details in place of the sample ones.
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Trail running shoe",
"image": "https://example.com/shoe.jpg",
"description": "Light trail shoe with a grippy sole, made for wet and rocky paths.",
"brand": {
"@type": "Brand",
"name": "Acme"
},
"sku": "TRS-42-BLK",
"offers": {
"@type": "Offer",
"price": 89.99,
"priceCurrency": "USD",
"availability": "https://schema.org/InStock",
"url": "https://example.com/shoes/trail-runner",
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingRate": {
"@type": "MonetaryAmount",
"value": 0,
"currency": "USD"
},
"shippingDestination": {
"@type": "DefinedRegion",
"addressCountry": "US"
},
"deliveryTime": {
"@type": "ShippingDeliveryTime",
"handlingTime": {
"@type": "QuantitativeValue",
"maxValue": 1,
"minValue": 0,
"unitCode": "DAY"
},
"transitTime": {
"@type": "QuantitativeValue",
"maxValue": 5,
"minValue": 0,
"unitCode": "DAY"
}
}
},
"hasMerchantReturnPolicy": {
"@type": "MerchantReturnPolicy",
"returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
"merchantReturnDays": 30,
"applicableCountry": "US"
}
}
}Shipping cost, delivery time and the return policy can sit inside the offer, and Google shows them in merchant listings. You can also set them once in Google Merchant Center and leave them out of every product. Pick one place and keep it current.
An aggregate rating needs the average score and the number of reviews, and both must come from reviews shoppers can read on the page. Ratings from a review app are fine when the app shows those reviews on the page. Invented ratings are spammy structured data under Google's rules and can earn a manual action.
Most Shopify themes, and WooCommerce with an SEO plugin, already print Product markup on every product page. Press “Fill from my page” on a product address first. If it lists Product, fix the existing markup instead of adding a second block.
For sizes and colors, Google reads a ProductGroup with its variants, which shop platforms usually generate themselves. This generator writes one product per block.
Product schema is structured data that describes a product in schema.org terms: its name, image, brand, price, currency, stock and ratings. Google uses it to show prices, availability and stars under the result and in its shopping results.
For a product snippet, Google requires the product name and one of an offer with a price, an aggregate rating or a review. Merchant listings also need an image and the price with its currency.
Most Shopify themes print Product markup on product pages already. Check one of your product pages with “Fill from my page” or the Rich Results Test before adding more.
Yes, when the ratings come from real customer reviews that are visible on the same page. Give the average rating and the number of reviews.
It is not required. Google recommends a GTIN, MPN or other product identifier when the product has one, because it helps match your product to the same item elsewhere.
The free SeoVision audit checks the structured data on your homepage, products and articles, and SeoVision can add the missing markup for you.
Get your free audit