← Blog · By Mars LLC editorial team · October 4, 2026 · Editorial standards

E-commerce structured data: Product, Offer and reviews done right

The exact Product structured data Google wants for rich results, including price, availability and ratings.

Product pages live and die by the snippet. Correct Product structured data is what unlocks price, availability and star ratings in search.

The minimum

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Widget",
  "offers": {
    "@type": "Offer",
    "price": "29.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  }
}

What each field does

  • name — the product name
  • sku — your internal identifier
  • image — absolute URL(s)
  • offers.price and priceCurrency — must match the visible price
  • offers.availability — InStock, OutOfStock, PreOrder, BackOrder
  • brand — the brand name
  • aggregateRating — average rating and review count

Reviews and ratings

Add AggregateRating only if reviews are genuinely visible on the page. Fake or self-serving ratings violate Google's guidelines and can trigger a manual action.

"aggregateRating": {
  "@type": "AggregateRating",
  "ratingValue": "4.6",
  "reviewCount": "128"
}

Variations

For product variants, describe each variant with its own Offer, or use a single Product with multiple offers. Keep price and availability accurate — mismatches between markup and the page are a common reason rich results are dropped.

Common failures

  • Price in the markup differs from the visible price
  • availability left as "in stock" when the item is out of stock
  • Missing image or relative image URLs
  • Ratings without visible reviews
  • Duplicate Product blocks for the same SKU

How to validate

1. Use the Product schema generator to build the block.

2. Paste it into the JSON-LD validator to confirm it parses.

3. Run the Rich Results Test and check Search Console → Enhancements → Product.

4. Re-check after every price/stock change — stale markup is the #1 cause of lost features.

Worked example

A store sells a "Trail Runner 2" for $129, in stock, with 4.6/5 from 128 reviews:

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Trail Runner 2",
  "sku": "TR-2-BLK",
  "brand": { "@type": "Brand", "name": "Example" },
  "image": "https://example.com/img/trail-runner-2.webp",
  "offers": {
    "@type": "Offer",
    "price": "129.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "url": "https://example.com/products/trail-runner-2"
  },
  "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.6", "reviewCount": "128" }
}

If the item goes out of stock, update availability to OutOfStock at the same time as the page.

Generate and validate

Use the free Product schema generator to build the JSON-LD, then validate with the Rich Results Test. There are platform versions for Shopify and WooCommerce too.

Try the free tool

Generate Product schema with name, price, currency, availability and reviews to enable rich product results.

Open Product Schema Generator