Skip to content

Product schema in JSON-LD: a complete example for product pages

By the SEOXtreme editorial teamUpdated 6 min read

You copied a Product schema example from a forum, pasted it into your product page, and the Rich Results Test returned a list of warnings you don't understand. Or worse: everything came out "valid", but your products still show up on Google as plain results while your competitors' show price and availability.

In this guide you'll find a complete product schema example in JSON-LD, explained property by property, with what Google requires and recommends depending on the result you're aiming for, how to declare returns and variants, and the mistakes stores repeat most often.

In short:

  • Product schema describes a product page (name, images, brand, price, availability) so Google can show it with product data.
  • Google distinguishes product snippets from merchant listings; if people buy on your page, aim for the merchant listing requirements.
  • For merchant listings, name, image, and an Offer with a price greater than zero and priceCurrency are required.
  • AggregateRating and Review only with real reviews that are visible on the page.
  • Validate each template, not each product, with the Rich Results Test.

What Product schema is and what Google can show

It's schema.org's Product type applied to your product page. If this is your first time working with markup, start with the guide to structured data for stores; here we go straight to the product page.

For product schema, Google handles two families of results:

  • Product snippets: a text result enriched with ratings, price, and availability. They support more review options, such as pros and cons in editorial reviews.
  • Merchant listings: for pages where customers can buy from you. They support more detailed information, such as shipping, returns, and sizes, and they feed experiences like popular products, the shopping knowledge panel, and product annotations in Google Images.

If you meet the merchant listing requirements, you're usually also eligible for product snippets. That's why, for a store, that's the goal.

This table summarizes Google's documentation on merchant listings and product snippets:

Result type Required Recommended (selection)
Merchant listing: Product name, image, offers (one Offer) brand.name, description, gtin, sku, mpn, color, size, material, aggregateRating, review
Merchant listing: Offer price (greater than zero), priceCurrency availability, itemCondition, priceValidUntil, url, shippingDetails, hasMerchantReturnPolicy
Product snippet: Product name and at least one of review, aggregateRating, or offers aggregateRating, offers, review
Product snippet: Offer price availability, priceCurrency, priceValidUntil

Two details that often go unnoticed: merchant listings require an Offer, not an AggregateOffer, and Google recommends that the Product markup be in the page's initial HTML for best results.

A complete product schema example in JSON-LD

This is a sample JSON-LD for a backpack product page. Replace the values with your product's and keep the structure:

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Rutamar 25 L Waterproof Urban Backpack",
  "image": [
    "https://www.example.com/img/rutamar-backpack-25l-front.jpg",
    "https://www.example.com/img/rutamar-backpack-25l-side.jpg"
  ],
  "description": "A 25-liter urban backpack with waterproof fabric, a padded compartment for laptops up to 15 inches, and a breathable back panel.",
  "sku": "RUT-BKPK-25-BLK",
  "mpn": "RM25N",
  "gtin13": "0012345678905",
  "brand": {
    "@type": "Brand",
    "name": "Rutamar"
  },
  "color": "Black",
  "material": "Polyester with waterproof coating",
  "offers": {
    "@type": "Offer",
    "url": "https://www.example.com/product/rutamar-25l-waterproof-urban-backpack/",
    "priceCurrency": "USD",
    "price": "64.99",
    "priceValidUntil": "2026-12-31",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.6",
    "reviewCount": "38"
  },
  "review": [
    {
      "@type": "Review",
      "author": {
        "@type": "Person",
        "name": "Mariana L."
      },
      "datePublished": "2026-10-02",
      "reviewRating": {
        "@type": "Rating",
        "ratingValue": "5"
      },
      "reviewBody": "It made it through a full downpour on the way to the office and my laptop stayed dry."
    }
  ]
}

On the page, this block goes inside a script tag of type application/ld+json. If you use WooCommerce, your plugin or theme usually generates it; don't paste it by hand into every product page. That's also why a product schema generator is only useful for testing a template: in a real store, the markup should come from your catalog data.

The example, property by property

  1. @context and @type. They indicate you're using the schema.org vocabulary and describing a Product.
  2. name. It should match the visible name on the product page, not a different "optimized" version.
  3. image. Several crawlable image URLs. Google prefers photos that clearly show the product, for example on a white background. Also take care of your image alt text.
  4. description. A faithful summary of the page; don't add keywords that don't appear on it.
  5. sku, mpn, and gtin13. Google asks you to include all the global identifiers that apply. The GTIN must be the product's real one.
  6. brand. A Brand object with the brand name.
  7. color and material. They help distinguish variants and help Google understand attributes people search for.
  8. offers. The heart of the markup: the page URL, the currency as an ISO code (USD), the price with a decimal point and no dollar sign, the price's valid-until date, availability, and item condition with schema.org values.
  9. aggregateRating. Only if the reviews exist and are visible on the page. It needs ratingValue and reviewCount or ratingCount; the full rules are in how to show a star rating in Google search results.
  10. review. Real individual reviews. The author's name must be a valid name of a person or team, not "Happy customer".

Returns and shipping: better at the store level

You can declare the return policy inside each Offer, but Google recommends defining a general policy at the organization level, because the per-offer version supports fewer properties. According to its documentation on return policies, the basic option requires the countries where it applies and the policy category, plus the return days when the window is limited:

{
  "@context": "https://schema.org",
  "@type": "OnlineStore",
  "name": "Example Store",
  "url": "https://www.example.com/",
  "hasMerchantReturnPolicy": {
    "@type": "MerchantReturnPolicy",
    "applicableCountry": "US",
    "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
    "merchantReturnDays": 30,
    "returnMethod": "https://schema.org/ReturnByMail",
    "returnFees": "https://schema.org/FreeReturn"
  }
}

Shipping works in a similar way: you can use shippingDetails in the offer for specific cases, but Google also supports shipping policies at the organization level. The golden rule is that what you mark up matches what your policy page says.

Variants: ProductGroup without duplication

If a backpack comes in three colors, don't repeat three unrelated standalone Products. Google documents the ProductGroup type: group the variants with hasVariant, state in variesBy what changes (color, size, material), and use productGroupID as the group's identifier. Each variant needs a unique identifier, such as its SKU or GTIN, and the store must be able to open each variant preselected at its own URL so Google can crawl it. Decide carefully which URL is the main one and which aren't; we explain it in the guide to the canonical tag.

How to validate your product schema markup

  1. Open the Rich Results Test and test the URL of a real product page.
  2. Check that it detects both merchant listings and product snippets. Fix errors first; then the warnings about recommended properties.
  3. Repeat with one product page from each template: simple product, with variants, on sale, and out of stock.
  4. In Search Console, check the merchant listings and product snippets reports to spot failures across the whole catalog.
  5. If you use Merchant Center, keep the feed data and the markup identical: Google says providing both maximizes your eligibility. Start with Google Shopping free listings.

Common mistakes with Product schema

  • Price in text format: "$64.99" instead of 64.99. No symbol, and with a decimal point.
  • Zero price in merchant listings: they require a price greater than zero.
  • Product on category pages: product snippets are for pages focused on one product, not for listings. To know which rich results apply to each type of page, see rich snippets and their requirements.
  • Stars without visible reviews or made-up ratings.
  • Outdated price: the sale ended on the page, but not in the JSON-LD.
  • Two different Product blocks on the same page because the theme and the plugin each generate their own.
  • A made-up GTIN to "fill in" the field.
  • Ineligible categories: Google excludes from product snippets content that promotes prohibited or regulated goods, such as firearms, recreational drugs, tobacco and vapes, or gambling.

So that your product pages are well written as well as marked up, follow the anatomy of good product page SEO. SEOXtreme generates the Product and Offer JSON-LD for each product page from your WooCommerce catalog and, if you already use Yoast, Rank Math, or AIOSEO, detects them so it doesn't duplicate the markup; you can see how it works in WooCommerce SEO.

Conclusion: one well-built template is worth a thousand product pages

Product schema isn't fixed product by product: it's fixed in the template. Secure the required properties (name, image, Offer with price and currency), add real identifiers and brand, declare your return policy at the store level, and add reviews only when they exist.

Get to work: pick a simple product page, one with variants, and one on sale, run them through the Rich Results Test, and fix the template until all three come out clean. Then continue with the rest of our Technical SEO guides.

Frequently asked questions

What is Product schema?

It's the Product type from the schema.org vocabulary, usually written in JSON-LD, that describes a product page: name, images, brand, identifiers such as SKU or GTIN, and an offer with price, currency, and availability. Google uses it to understand the page and make it eligible to show price, stock, shipping, or ratings in search results, Google Images, and other shopping surfaces.

Which properties are required in Product schema?

It depends on the result you're aiming for. For product snippets, Google requires name and at least one of review, aggregateRating, or offers. For merchant listings, which is what suits a page where people buy, it requires name, image, and an Offer with a price greater than zero and priceCurrency. Everything else is recommended, but the more complete, the better.

Is the GTIN required in Product schema?

It isn't required, but Google recommends it: it asks you to include all the global identifiers that apply to your product, such as GTIN-13 or ISBN. The GTIN must be the real one, assigned by the manufacturer or by GS1, never a made-up one. If you sell your own products without a barcode, use SKU and MPN and leave out the GTIN rather than filling it with false data.

Can I add AggregateRating if my product has no reviews?

No. The aggregate rating must come from real customer reviews that are visible on the same page. Marking up stars without reviews, inventing them, or copying them from other sites goes against Google's guidelines and can cost you a manual action that leaves you without rich results. If you don't have reviews yet, leave out aggregateRating and review: your markup is still valid.

What's the difference between Offer and AggregateOffer?

Offer describes a specific offer with one price; AggregateOffer summarizes several offers with a low and a high price, for example when there are several sellers. For a store selling its own product, use Offer: merchant listings require it, and Google says the price drop annotation must use Offer, not AggregateOffer.

Sources

  1. Merchant listing (Product, Offer) structured data (Google Search Central)
  2. Product snippet (Product, Review, Offer) structured data (Google Search Central)
  3. Merchant return policy (MerchantReturnPolicy) structured data (Google Search Central)
  4. Rich Results Test (Google)

Written and reviewed by the SEOXtreme editorial team using official sources (Google Search Central, platform documentation, and published studies). If you spot outdated information, email us at hola@vidaxtreme.com.

Keep learning

Stop optimizing by hand

SEOXtreme does this work for you across your whole catalog, with your approval. Try it for 14 days, no credit card.

14-day free trialAudit