JSON-LD Structured Data: Which Schema Types Your Site Actually Needs
Article content
Most structured data is copied, pasted, and never thought about again
A plugin or a tutorial drops a <script type="application/ld+json"> block into the page head, the Rich Results Test goes green, and nobody touches it for years. Then Google stops showing FAQ rich results (it did, on 7 May 2026), half the "essential schema" checklists online go out of date, and teams discover they never knew which of their markup was doing anything.
Structured data is still worth shipping. The useful question has changed, though. It used to be "how do I get stars in Google?" Now it is "which entities does this site contain, and how do I describe them so any machine reading the page gets them right?" That second question has a fairly small, stable answer per site type, and the rest of this post maps it out.
What structured data does
Structured data is a machine-readable description of the things on a page, such as the organisation that publishes it, the article's author and dates, the product's price and stock level, or the event's venue and start time. The vocabulary almost everyone uses is schema.org, a shared set of types and properties maintained by the major search engines since 2011.
Its job is to remove guesswork. A crawler doesn't have to infer that "4.6 (212)" is an aggregate rating, or that the name under the headline is the author rather than a commenter. That clarity feeds rich results where they still exist, knowledge panels, and every downstream system that summarises your page.
It also has limits worth knowing before you start:
- It isn't a ranking factor in itself. Google has been consistent on this, and repeated it when it retired seven structured data types in June 2025, saying the change "won't affect how pages are ranked."
- It can't add information. Google's guidelines say not to mark up information that isn't visible to the user, even if it's accurate.
- It guarantees nothing. Valid markup makes a page eligible for a rich result. Google still decides whether to show one.
Three formats, one sensible default
schema.org vocabulary can be written in three syntaxes:
| Format | Where it lives | Coupled to your markup? | Verdict |
|---|---|---|---|
| JSON-LD | A separate <script type="application/ld+json"> block | No | Use this |
| Microdata | itemscope / itemprop attributes on your HTML elements | Yes, tightly | Legacy CMS themes only |
| RDFa | vocab / typeof / property attributes on HTML | Yes | Rare outside government and publishing stacks |
Google supports all three and says they are "equally fine" when implemented correctly, while recommending JSON-LD "if your site's setup allows it." For a component-based frontend, there is no real debate. Microdata and RDFa weave semantics into your DOM, so every refactor of a card component risks breaking the markup without anyone noticing. JSON-LD is data you generate from the same source of truth that renders the page, kept in one place, testable on its own.
What still earns rich results, and what was retired
The list of features Google renders has been shrinking deliberately since 2023. As of late 2026:
Still supported (per Google's Search Gallery): Article, Breadcrumb, Carousel (with Recipe, Course list, Restaurant or Movie), Course list, Discussion forum, Education Q&A, Employer aggregate rating, Event, Image metadata, Job posting, Local business, Math solver, Movie, Organization, Product, Profile page, Q&A, Recipe, Review snippet, Software app, Speakable, Subscription and paywalled content, Vacation rental, and Video.
Retired or narrowed:
- FAQ rich results: limited to well-known government and health sites in August 2023, then removed entirely on 7 May 2026.
FAQPagemarkup is still valid schema.org; it just doesn't produce a rich result. - HowTo rich results: removed in 2023.
- Sitelinks search box: removed in November 2024, so
WebSite+SearchActionno longer drives a search-results feature. - June 2025 simplification: Book Actions, Course Info, Claim Review, Estimated Salary, Learning Video, Special Announcement, and Vehicle Listing were phased out of Google Search results.
- January 2026: Practice Problems documentation was removed, and Google clarified that Dataset markup now serves Dataset Search only, not regular Search.
Google keeps rich results where the structured data carries facts users act on (prices, dates, ratings, availability, locations) and drops the ones that mostly existed to take up more space on the results page. So the safest plan is to describe the entities your pages contain and treat any rich result as a bonus.
What about AI search?
Google's own guidance for AI Overviews and AI Mode says there is "no special schema.org structured data that you need to add." I covered the wider picture in AEO and GEO Aren't New. Accurate structured data that matches the visible page helps every system that parses it. There is no separate AI schema to add.
The map: which types for which kind of site
Start with the baseline every site needs, then add the types that match what the site is.
Every site:
Organization(orPersonfor a personal site): name, logo,url,sameAslinks to official profiles. This is the anchor every other entity points back to.WebSite: name and URL. No longer needs aSearchAction.BreadcrumbListon any page deeper than one level. Cheap, still rendered, and it documents your hierarchy.
Then, by site type:
| Site type | Core types | Rich-result payoff | Watch out for |
|---|---|---|---|
| Blog or publisher | BlogPosting / Article / NewsArticle, Person (author), ProfilePage for author pages | Article enhancements, profile page | author as a typed Person with a URL, not a string; keep dateModified honest |
| E-commerce | Product + Offer (+ AggregateRating, Review) | Product snippets, merchant listings, review stars | GTINs, typed brand, price and availability matching the page (deep dive) |
| Local business | A specific LocalBusiness subtype (Restaurant, Dentist, LegalService...) | Local business details | Use the most specific subtype; reviews you host about yourself don't earn stars |
| SaaS or developer tool | SoftwareApplication / WebApplication with offers | Software app result | The rich result needs real ratings or reviews; without them it is documentation only |
| Events | Event with startDate, location, eventStatus, offers | Event listings | Update eventStatus when something is postponed or cancelled |
| Jobs | JobPosting | Google for Jobs | Remove or expire listings once filled |
| Recipes | Recipe | Recipe cards, carousels | Every marked-up field must appear on the page |
| Video-led | VideoObject (with thumbnailUrl, uploadDate, duration) | Video results, key moments | Point contentUrl / embedUrl at the real player |
| Community or forum | DiscussionForumPosting, QAPage | Discussion forum, Q&A | Only for threads written by users |
| Courses | Course | Course list carousel | Course Info (the detailed variant) was retired in 2025 |
| Docs or knowledge base | TechArticle, BreadcrumbList | Breadcrumbs | FAQPage is fine to keep, but expect no rich result |
| Portfolio or personal site | Person, ProfilePage, WebSite | Profile page | Use sameAs to tie the person to GitHub, LinkedIn, and so on |
If a page doesn't fit any row, it probably only needs the baseline. Not every page needs a bespoke type.
Describe the page as one connected graph
Real pages contain several entities: a blog post has an author, a publisher, a website it belongs to, and a breadcrumb trail. The common mistake is three or four unrelated <script> blocks that each redefine the organisation slightly differently.
The better pattern is a single @graph where each entity has a stable @id (a URL plus a fragment) and other entities reference it instead of repeating it:
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Person",
"@id": "https://example.com/#person",
"name": "Jane Doe",
"url": "https://example.com",
"sameAs": ["https://github.com/janedoe", "https://www.linkedin.com/in/janedoe"]
},
{
"@type": "WebSite",
"@id": "https://example.com/#website",
"name": "Jane Doe",
"url": "https://example.com",
"publisher": { "@id": "https://example.com/#person" }
},
{
"@type": "BlogPosting",
"@id": "https://example.com/blog/schema-types#article",
"headline": "Which Schema Types Your Site Actually Needs",
"datePublished": "2026-11-29",
"dateModified": "2026-11-29",
"author": { "@id": "https://example.com/#person" },
"isPartOf": { "@id": "https://example.com/#website" },
"mainEntityOfPage": "https://example.com/blog/schema-types"
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://example.com" },
{ "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://example.com/blog" },
{ "@type": "ListItem", "position": 3, "name": "Which Schema Types Your Site Actually Needs" }
]
}
]
}Use one graph per page, with @id references, for anything bigger than a landing page. It is easier to validate, and because each entity is defined once, the markup can't contradict itself.
Wiring it into the Next.js App Router
Generate JSON-LD from your data the same way you render the page. Build it in a typed function from the same props, and inject it with a small server component that escapes < so content can never close the script tag early:
// src/components/JsonLd.tsx (server component, no "use client")
export function JsonLd({ data }: { data: Record<string, unknown> }) {
return (
<script
type="application/ld+json"
// Escaping "<" stops a stray "</script>" in content from breaking out of the tag.
dangerouslySetInnerHTML={{ __html: JSON.stringify(data).replace(/</g, '\\u003c') }}
/>
);
}// src/app/blog/[slug]/page.tsx
import { JsonLd } from '@/components/JsonLd';
import { getPost } from '@/lib/posts';
const SITE = 'https://example.com';
export default async function PostPage({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;
const post = await getPost(slug);
const url = `${SITE}/blog/${slug}`;
return (
<>
<JsonLd
data={{
'@context': 'https://schema.org',
'@graph': [
{
'@type': 'BlogPosting',
'@id': `${url}#article`,
headline: post.title,
description: post.excerpt,
datePublished: post.date,
dateModified: post.updated ?? post.date,
author: { '@id': `${SITE}/#person` },
mainEntityOfPage: url,
},
{
'@type': 'BreadcrumbList',
itemListElement: [
{ '@type': 'ListItem', position: 1, name: 'Home', item: SITE },
{ '@type': 'ListItem', position: 2, name: 'Blog', item: `${SITE}/blog` },
{ '@type': 'ListItem', position: 3, name: post.title },
],
},
],
}}
/>
<article>{/* ... */}</article>
</>
);
}For stronger guarantees, add Google's schema-dts package (yarn add -D schema-dts) and type each node, for example WithContext<BlogPosting>. Misspelled properties and wrong value types then fail in your editor instead of showing up in Search Console weeks later.
If you'd rather start from a working example than an empty file, the generator below produces valid JSON-LD for the most common types (Article, Product, FAQ, and Organization) that you can paste and adapt.
Tool
structured data generator
Generate valid JSON-LD for Article, Product, FAQ & Organization
Mistakes that disqualify markup
Markup can be valid JSON and still be ignored. The most common reasons:
- Marking up invisible content. Prices, ratings, or FAQs that exist only in the JSON-LD break Google's guidelines and can earn a manual action.
- Self-serving reviews. Reviews of your own business, published on your own site and marked up on
OrganizationorLocalBusiness, are not eligible for review stars. - Strings where entities belong.
"author": "Jane Doe"and"brand": "Acme"lose information that a typedPersonorBrandkeeps. - Drift. The page says "out of stock", the markup says
InStock. Generate JSON-LD from the same data as the UI and this class of bug disappears. - Chasing retired features. Adding
FAQPageorHowToto win more space in results hasn't worked since 2023. Keep them only if they describe the content accurately. - Validating with only one tool. Google's Rich Results Test tells you whether a page is eligible for Google's features. The Schema Markup Validator tells you whether it is valid schema.org. Use both: the first for Search, the second for every other consumer.
Key Takeaways
- Use JSON-LD, generated from the same data that renders the page.
- Every site needs the same baseline of
OrganizationorPerson,WebSite, andBreadcrumbList. Add other types only for entities the site contains. - Treat rich results as a bonus. FAQ, HowTo, the sitelinks search box, and seven more types are gone, and the list will keep changing.
- Use one
@graphper page with stable@idreferences so entities are defined once and never contradict each other. - Only mark up what users can see, keep it in sync with the page, and validate with both the Rich Results Test and the Schema Markup Validator.
Sources & References
- Google Search Central: Introduction to structured data (opens in new tab): supported formats, the JSON-LD recommendation, and the visible-content rule
- Google Search Central: Structured data search gallery (opens in new tab): the current list of supported rich result features
- Google Search Central: General structured data guidelines (opens in new tab): quality guidelines, including self-serving reviews and hidden content
- Google Search Central Blog: Simplifying the search results page (opens in new tab): the seven structured data types phased out in June 2025 (2025)
- Google Search Central: Latest documentation updates (opens in new tab): changelog entries for the FAQ rich result removal (May 2026) and Practice Problems removal (January 2026)
- Google Search Central: AI features and your website (opens in new tab): confirms no special structured data is needed for AI Overviews or AI Mode
- Schema.org (opens in new tab): the full vocabulary of types and properties
- W3C: JSON-LD 1.1 (opens in new tab): the specification behind
@context,@id, and@graph - Google Rich Results Test (opens in new tab): checks eligibility for Google Search features
- Schema Markup Validator (opens in new tab): validates schema.org markup independently of Google
- schema-dts on GitHub (opens in new tab): TypeScript definitions for schema.org, maintained by Google
Suggested Reading
Architectural Note: Research, drafting, and code for this post were augmented by Claude (Anthropic), directed and verified by Maas Mirzaa. How this workflow works →