📝 On-page SEO · Advanced · 18 min

Structured data with Schema.org: how to earn rich results with JSON-LD

Structured data is a standardized way to label the content on your page so machines understand the meaning behind the words, not only the words themselves: this is a product, that is its price, this is the author, that is the publish date. Search engines read billions of pages of ambiguous HTML every day. Structured data removes the guesswork by attaching an explicit, machine-readable layer of meaning on top of your visible content. The shared vocabulary is Schema.org, and the format Google recommends is JSON-LD, a small script block you drop into the page.

Key takeaways
  • Use JSON-LD: it is Google's recommended format, lives in a single script block, and is the easiest to maintain and scale.
  • Focus on the high-value types: Article, Product (with Offer and AggregateRating), Organization, LocalBusiness, and BreadcrumbList cover most needs.
  • Only mark up content that is true and visible. False, hidden, or mismatched markup risks a manual action and suppressed rich results.
  • FAQ rich results were retired by Google through the first half of 2026 (HowTo back in 2023), but the markup still helps Google and AI engines understand and cite your content.
  • Build a strong Organization entity with sameAs, @id, and knowsAbout: entity disambiguation is the highest-leverage structured-data work for both Knowledge Graph and AI citations.
  • Validate with the Schema Markup Validator and Rich Results Test, monitor Search Console, and re-check after every template, price, or platform change.

What structured data does and why JSON-LD wins

Structured data does not directly change your rankings, and it is important to be honest about that. What it does is make you eligible for rich results: enhanced listings with star ratings, prices, images, or breadcrumbs that stand out in the SERP. Because these listings take up more visual space and signal relevance, they typically earn a higher click-through rate than plain blue links, so the payoff is more traffic from the same position rather than a higher position itself.

Google supports three formats, but they are not equal in practice:

  • JSON-LD: a single script block, decoupled from your visible HTML. Officially recommended by Google.
  • Microdata: attributes woven into your HTML tags. Harder to maintain and error-prone.
  • RDFa: similar to Microdata, mostly legacy.

Google recommends JSON-LD because it lives in one place, can be generated by a template or CMS, and never breaks your markup when you redesign the page. JSON-LD delivered in the document head is the recommended delivery method, and putting multiple JSON-LD blocks on the same page is perfectly acceptable.

The anatomy of every JSON-LD block is identical, which is what makes it easy to learn once and reuse forever. You always have a script tag of type `application/ld+json` containing a JSON object with `@context` set to `https://schema.org` and a `@type` declaring what the thing is. Everything else is just properties of that type. Learn the pattern below and you can write any schema by swapping the type and consulting Google's documentation for which properties it expects.

The schema types that matter most in 2026

You do not need the hundreds of types in the Schema.org vocabulary. As of 2026 roughly three dozen types retain active rich-result support in Google Search, and a much smaller handful covers the vast majority of real-world sites. Focus your energy here:

  • Article / NewsArticle / BlogPosting: editorial and blog content.
  • Product with Offer and AggregateRating: e-commerce.
  • Organization and LocalBusiness: brand identity and local SEO.
  • BreadcrumbList: navigation context in the SERP.
  • Recipe, Event, VideoObject: those specific content types.
  • FAQPage and HowTo: question-and-answer content (with important caveats below).

Be aware of what has changed, because the FAQ and HowTo story is the biggest news of the past two years. HowTo rich results were deprecated back in 2023. FAQPage rich results were retired next: through the first half of 2026 Google removed the FAQ search appearance, dropped the FAQ rich-result report from Search Console, and removed FAQ support from the Rich Results Test, with the Search Console API support scheduled to end in August 2026. In short, neither produces a visual SERP feature for most sites anymore.

Here is the crucial nuance: the markup is still valid and still useful. Google has confirmed it continues to parse FAQ content to understand pages, and unused structured data does not harm Search, so there is no need to rip it out. More importantly, AI answer engines read this markup avidly. Industry research in 2026 suggests pages with FAQ schema are markedly more likely to surface in Google AI Overviews, and that clean structure paired with schema earns higher AI citation rates. Keep FAQ and HowTo markup for semantic clarity and for AI visibility, just stop expecting a blue-link rich result from it.

Step-by-step: writing your first JSON-LD block

Follow this repeatable workflow for any page:

  1. Identify the page's primary entity. A blog post is an `Article`; a product page is a `Product`; a contact page contributes to `Organization`. One page can carry several blocks (e.g. Article + BreadcrumbList + Organization).
  2. Open Google's documentation for that type and note the required and recommended properties. Required properties are the minimum to be eligible; recommended properties make the rich result richer and more competitive.
  3. Draft the JSON object with `@context`, `@type`, and each property mapped to the real, visible value on the page.
  4. Place the script block in the head (recommended) or before the closing body tag.
  5. Validate, then deploy (covered in its own section below).

For a blog post, a complete Article block looks like this:

```

<script type="application/ld+json">

{

"@context": "https://schema.org",

"@type": "Article",

"headline": "How to earn rich results with JSON-LD",

"image": ["https://example.com/cover.jpg"],

"author": {"@type": "Person", "name": "Jane Rossi", "url": "https://example.com/authors/jane"},

"publisher": {"@type": "Organization", "name": "Example", "logo": {"@type": "ImageObject", "url": "https://example.com/logo.png"}},

"datePublished": "2026-06-20",

"dateModified": "2026-06-24"

}

</script>

```

Notice every value is something a reader can verify on the page. The author has a real name and profile URL; the dates match the visible byline. That faithfulness is not optional, as the next section explains.

For an e-commerce page, the Product type should reference a nested Offer with `price`, `priceCurrency`, and `availability`, and an AggregateRating with `ratingValue` and `reviewCount` only if you have genuine, on-page reviews. The values in your JSON-LD must mirror the page exactly: the price in the markup must match the price the shopper sees, or Google treats the markup as misleading and may suppress the rich result.

Worked example: an e-commerce product and its variants

E-commerce is where structured data pays off hardest, because it can unlock merchant listing experiences that show price, availability, shipping, and return details right in search. A solid single-product block looks like this:

```

{

"@context": "https://schema.org",

"@type": "Product",

"name": "Trail Runner GTX",

"image": ["https://example.com/shoe.jpg"],

"brand": {"@type": "Brand", "name": "Acme"},

"offers": {

"@type": "Offer",

"price": "129.00",

"priceCurrency": "EUR",

"availability": "https://schema.org/InStock"

},

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

}

```

When a product comes in multiple sizes or colours, use ProductGroup. It carries the properties common to all variants (brand, reviews) plus three variant-specific properties: `hasVariant`, `variesBy`, and `productGroupID`. There are two layouts:

  • All variants on one URL: use a single `ProductGroup` with nested `hasVariant` Product entities.
  • Each variant on its own URL: use `isVariantOf` on each variant page, linking back to a shared `ProductGroup` via a common `@id`.

This avoids duplicating shared data across dozens of near-identical pages and tells Google these listings are siblings, not unrelated products.

To unlock the shipping and returns annotations ("Free delivery over EUR 49 - 30-day returns"), add ShippingDetails (with `shippingRate` and `deliveryTime`) and a MerchantReturnPolicy (with `returnPolicyCategory` and `merchantReturnDays`). In 2026 Google extended the product feed specification with handling cutoff times, minimum order values, and loyalty shipping labels, and complete shipping and return data can receive preferential treatment in merchant listings. Where you also run Google Merchant Center, keep your on-page schema and your feed consistent, because Google cross-references the two.

Establishing your entity: Organization, sameAs and @id

If you do only one thing beyond page-level markup, build a strong Organization entity. This is the schema that tells search engines and AI models who you are, and in 2026 entity disambiguation has become arguably the highest-leverage structured-data work you can do. A minimal Organization block needs `name`, `url`, and `logo`, but the properties that move the needle are `sameAs`, `@id`, and `knowsAbout`.

Use these three properties deliberately:

  • sameAs: links your entity to authoritative external profiles such as Wikidata, Wikipedia, LinkedIn, Crunchbase, and your verified social accounts. This is how a search engine or LLM confidently resolves "this brand is that brand," reducing confusion and AI hallucinations.
  • @id: a stable, unique identifier (often a URL fragment like `https://example.com/#organization`) that lets you reference the same entity across multiple blocks and pages without repeating it.
  • knowsAbout: declares the topics your organization has expertise in, reinforcing the topical authority that AI engines use when deciding whom to cite.

Practitioners report that comprehensive entity schema, combined with accurate content-type schema, produces measurable improvement in AI citation rates over a 30 to 60 day window after implementation, with the biggest gains on queries inside the site's declared topical authority. Treat the Organization block as the spine of your structured-data strategy: define it once with a clean `@id`, reference it as the `publisher` of your Articles and the seller of your Products, and keep its `sameAs` links current.

The golden rule: only mark up what is visible and true

Google's quality guidelines are explicit and they are enforced: structured data must reflect content that is actually present and visible on the page. Marking up information the user cannot see, or inflating ratings and reviews you do not have, is a spam violation that can trigger a manual action and remove your rich-result eligibility entirely. Google's March 2026 core update specifically pulled back rich-result display on schema types that were widely abused, rewarding sites whose markup matched genuine content.

This means structured data and content should be built together, not bolted on afterward. If you want FAQPage markup, the questions and answers must appear on the page for the reader. If you claim an AggregateRating, the reviews must be real and on-page. If you declare a price, the price must be visible. Treat the markup as a faithful, machine-readable copy of what the human sees, never as a place to make extra claims or sneak in keywords.

There is a practical upside to this discipline beyond avoiding penalties. Because AI engines increasingly use structured data to decide which facts to trust and repeat, accurate markup makes your content safer to cite. A model that can verify your price, author, and publish date against clean schema is more likely to surface you, and less likely to misquote you. Honesty in your markup is now a citation strategy, not just a compliance requirement.

Doing it with tools instead of hand-coding

You do not have to write JSON-LD by hand. The right approach depends on your stack:

  • WordPress: plugins like Yoast SEO, Rank Math, or All in One SEO generate Article, Product, Organization, and BreadcrumbList schema automatically from the content you already enter, and let you fill entity details like `sameAs` in a settings panel.
  • Shopify, Wix, Squarespace: ship a baseline of Product and Organization schema out of the box, extendable with apps.
  • Custom / headless sites (Next.js, Astro, etc.): generate JSON-LD from your data layer in a template so every page is consistent and stays in sync with your content automatically.

For auditing at scale, a crawler is indispensable. Screaming Frog and Sitebulb can crawl your whole site, extract every JSON-LD block, validate it against Schema.org and Google's requirements, and list exactly which URLs have errors or missing recommended properties. This is the only sane way to manage structured data across hundreds or thousands of pages, and it turns a vague worry into a prioritized fix list.

A word of caution about automated generation: convenience can produce schema that does not match your visible content, which is exactly the violation the golden rule warns against. Whatever tool you use, spot-check the output. Make sure auto-generated AggregateRating values come from real reviews, that Product prices reflect the live price, and that the plugin is not emitting markup for a rich result that no longer exists. Tools accelerate the work, but they do not absolve you of reviewing it.

Validate, deploy, and monitor

Use a two-step validation loop, because the two tools answer different questions:

  1. Schema Markup Validator (validator.schema.org) checks any Schema.org markup for syntax and property correctness, with no Google-specific filtering. Use it to confirm the JSON itself is well-formed.
  2. Rich Results Test (search.google.com/test/rich-results) checks whether the page is eligible for a specific Google rich feature, and previews how it could appear.

Run the validator first to catch typos and missing required properties, then the Rich Results Test to confirm eligibility before you ship.

After deployment, monitor the structured-data and Enhancements / Rich Results reports in Google Search Console. They flag errors, warnings, and how many pages are valid for each feature, and they update as Google re-crawls. Note that the FAQ-specific report was removed in 2026, so do not be alarmed when that particular card disappears. The report retirement is not a penalty on your pages.

Treat structured data as ongoing maintenance, not a one-time task. Re-validate whenever you change a page template, migrate platforms, or update prices and inventory, because a template change can silently break markup across thousands of pages at once. Build a quarterly crawl into your routine so drift gets caught early rather than after you have lost rich-result eligibility for a key category.

Common mistakes and pitfalls to avoid

Most structured-data failures come from a short list of recurring mistakes:

  • Marking up invisible content: the single biggest violation, and a fast track to a manual action.
  • Mismatched values: a JSON-LD price or rating that differs from the page suppresses the rich result.
  • Missing required properties: the schema validates as JSON but is ineligible because a required field (e.g. `offers` on a Product) is absent.
  • Orphaned or duplicate @id values: references that point nowhere, or the same `@id` reused for different entities, confuse parsers.

More subtle traps:

  • Stale markup for retired features: keeping HowTo or FAQ markup is fine, but do not waste hours optimizing it for a SERP feature that no longer exists.
  • Plugin double-output: two plugins (or a plugin plus a theme) both emitting Organization schema can create conflicting entities, so pick one source of truth.
  • Hardcoding dates or prices: values that should be dynamic get baked in and quietly go wrong after the next content update.
  • Blocking crawlers from rendering: if your schema is injected by JavaScript that Google or an AI crawler cannot render, the markup effectively does not exist.

The meta-lesson is that structured data fails silently. Unlike a broken layout, broken markup looks fine to a human visitor while quietly forfeiting rich results and confusing AI engines. That is precisely why the validate-and-monitor loop matters: it is your only window into problems your users will never report.

Structured data for AI search (GEO) in 2026

The most important shift of the last two years is that structured data is no longer just about Google's blue links. Generative engines, Google AI Overviews and AI Mode, ChatGPT, Perplexity, Gemini, and Claude, parse structured data when they crawl and index the web. Schema gives a language model an unambiguous map of your page: what is the headline, who is the author, what is the product, what are the facts. When a model can resolve those questions cleanly, it can quote you with confidence, which is the entire game of Generative Engine Optimization (GEO).

This reframes which schema work is worth doing in 2026. Even features that lost their visual SERP treatment, FAQPage above all, keep delivering value because they package answers in exactly the question-and-answer shape AI engines love to extract. Industry analyses in 2026 point to materially higher AI-citation and AI-Overview inclusion rates for pages that pair clean content structure with valid schema. The retirement of the FAQ rich result did not kill FAQ markup. It shifted the primary audience from Google's SERP to the answer engines.

Practical GEO priorities for structured data:

  • Nail your Organization entity with `sameAs`, `@id`, and `knowsAbout` so models can verify who you are and what you are authoritative on.
  • Keep Article and Product markup accurate so quoted facts (author, date, price) are verifiable.
  • Retain FAQ and HowTo markup for its extractability, not its lost rich result.
  • Maintain factual consistency between schema, on-page content, and any feeds, because contradictions make a model distrust the source.

Done together, these turn structured data from a SERP-decoration tactic into a foundation for being the source AI cites.

FAQ

Will structured data improve my rankings?

Not directly. Structured data does not boost rankings on its own, but it can earn rich results that increase your click-through rate, and it helps search and AI engines understand your content more reliably, which supports visibility indirectly. Think of it as eligibility and clarity, not a ranking factor.

Is it still worth adding FAQ schema in 2026?

Yes, with adjusted expectations. Since Google retired the FAQ rich result through the first half of 2026 it no longer triggers the expandable FAQ feature in Search, but the markup remains valid, Google still parses it, and AI answer engines read it eagerly. Keep it for semantic clarity and AI citations, not for a blue-link rich result.

Which validation tool should I use, the Rich Results Test or the Schema Markup Validator?

Use both, for different jobs. The Schema Markup Validator checks any Schema.org markup for syntax and property correctness without Google-specific filtering. The Rich Results Test checks whether a page is eligible for a specific Google rich feature and previews it. Validate the JSON first, then confirm rich-result eligibility before deploying.

Can I put multiple schema blocks on the same page?

Yes. Multiple JSON-LD blocks on a single page are fully supported, and it is common to combine, for example, Article plus BreadcrumbList plus Organization. Use a shared @id to reference the same Organization entity across blocks so engines treat them as one entity rather than duplicates.

How do I mark up an e-commerce product that comes in several variants?

Use ProductGroup with the hasVariant, variesBy, and productGroupID properties. If all variants live on one URL, nest each variant as a Product inside hasVariant. If each variant has its own URL, use isVariantOf on each page linking back to a shared ProductGroup via a common @id. This avoids duplicating shared data and signals the listings are siblings.

Do AI engines really read structured data?

Yes. ChatGPT, Perplexity, Gemini, Claude, and Google AI Overviews parse structured data when they index pages, and industry research in 2026 links clean schema with higher AI-citation and AI-Overview inclusion rates. A strong Organization entity with sameAs and accurate content-type markup helps a model verify who you are and trust what you assert, which makes it more likely to cite you.

Recommended tools