Structured Data and Rich Results
How schema.org markup describes your pages to search engines, how to add JSON-LD correctly, and what rich results you can and cannot expect.
Key takeaways
- Structured data labels facts on a page using a shared vocabulary, most commonly schema.org.
- JSON-LD is usually the easiest format to add and maintain because it sits in its own script block.
- Everything in the markup must be true and must match what visitors can see on the page.
- Eligibility for rich results varies by search engine and by type, and it changes over time.
- Validate your markup, then monitor the reports in the engine's webmaster tools.
Structured data is a machine-readable description of what's on a page: this is a recipe, this number is a price, this date is when the event starts. Search engines can use it to understand content with less guesswork and, for some types, to show a rich result, a listing with extras such as ratings, prices, images or breadcrumb trails.
Markup makes a page eligible for those extras. It doesn't promise them, and it won't rescue weak content. The work is worth doing when your pages match a type a search engine actually displays.
What the vocabulary looks like
schema.org is a vocabulary that major search companies launched together in 2011. It defines types (such as Article, Product, Event or LocalBusiness) and properties (such as name, startDate or address). Types form a hierarchy, so a Restaurant is also a kind of LocalBusiness and inherits its properties.
You can write the same facts in three formats:
| Format | Where it lives | Practical note |
|---|---|---|
| JSON-LD | A script block, separate from visible HTML | Easy to generate from templates |
| Microdata | Attributes on HTML elements | Tied closely to page layout |
| RDFa | Attributes on HTML elements | Common in some publishing systems |
Google's documentation recommends JSON-LD, and other major engines understand it. Pick one format per page element and keep it consistent.
Anatomy of a JSON-LD block
Here is a small example for an article:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Set Up a Home Router",
"datePublished": "2026-11-02",
"author": { "@type": "Person", "name": "A. Writer" },
"image": "https://www.example.com/images/router.jpg"
}
</script> Nesting is where the format earns its keep. A product can contain an offer, the offer can contain a price and currency, and the whole structure stays readable. You can give an object an @id and refer to it from elsewhere, which helps when one organization appears on many pages.
Paste your block into a JSON formatter to catch a missing comma or bracket before you publish. A syntax error usually means the whole block is ignored.
Which types are worth marking up
Start from your pages, then check whether the engine you care about displays anything for that type. Commonly useful ones include:
- Product with offers, for shops. It can show price and availability.
- Recipe, with ingredients, times and an image.
- Event, with date, place and ticket details.
- BreadcrumbList, which can replace a raw URL with a readable trail.
- Article or NewsArticle, to clarify headline, dates and authorship.
- Organization and LocalBusiness, to state your name, logo, address and hours.
- VideoObject, to describe a video and its thumbnail.
- JobPosting, for open positions.
Search engines support only a subset of schema.org for visual features, and they have narrowed or withdrawn some of them over the years. Google, for instance, stopped showing how-to rich results in 2023 and FAQ rich results in 2026. Check the engine's current search gallery or documentation before you invest in a type.
Required and recommended properties
Each rich result type has a list of required properties, without which the page is not eligible, and recommended ones that can make the listing fuller. These lists belong to the search engine, so they can differ from what schema.org itself allows.
Say you run a cooking site. A recipe block with only a name may be valid schema.org, yet fall short of the engine's requirement for an image. Adding total time, ingredients and instructions gives the engine more to work with.
Leave out anything you can't fill in accurately. An empty or invented value is worse than a missing one.
The rules that get sites into trouble
Search engines publish policies for structured data, and the central idea is honesty.
- Mark up only content that appears on the page.
- Don't add ratings or reviews you made up, copied from elsewhere or collected unfairly.
- Don't mark up reviews of your own business in ways the guidelines exclude.
- Use the most specific type that is true, and don't label a sales page as a recipe or an event.
- Keep prices, availability and dates current.
Breaking these rules can cost a site its rich results, sometimes through a manual action that you'll see reported in webmaster tools. Fake ratings also mislead shoppers, and the signs people use for spotting fake reviews apply to markup as much as to text.
How to add it without creating a chore
For a handful of pages, writing JSON-LD by hand is fine. Beyond that, generate it from the same data that builds the visible page. If your template prints the price from a database field, have the same template write that field into the markup. Then the two can't drift apart.
Most content management systems and shop platforms add some markup on their own, or through extensions. Check what's already there before adding more. Two competing blocks describing one product with different prices confuse everyone.
Scripts can inject JSON-LD after the page loads, and some engines will process it once they render the page. Putting it in the server's initial HTML is more dependable, especially for crawlers that don't run scripts.
Testing and monitoring
Two kinds of tool help. A schema validator, such as the one schema.org provides, checks that your markup is well formed and uses real types and properties. A search engine's rich result test checks whether the page qualifies for that engine's features and lists missing fields. Use both, since passing one doesn't imply passing the other.
After launch, watch the enhancement or structured data reports in your webmaster console. A sudden spike in errors usually means a template changed. Recrawling takes time, so fixes don't clear instantly.
Make sure crawlers can reach the pages at all. A page blocked in robots.txt or set to noindex gets no rich result, however tidy its markup.
Troubleshooting common errors
Most problems fall into a few groups, and the error message usually points to one.
| Symptom | Likely cause | What to check |
|---|---|---|
| Block not detected at all | A syntax error or the wrong script type | Quotes, commas, brackets and application/ld+json |
| Missing field warning | A recommended or required property is empty | The template and the underlying record |
| Invalid value | Wrong format for a date, price or address | Use year-month-day dates and plain numbers for prices |
| Type not recognized | A misspelled name | Types and properties are case-sensitive |
| Old data in reports | The page has not been recrawled yet | Compare with a live test of the page |
Dates deserve care. Write 2026-11-02, and add a time and time zone offset for events, so a start time is not read in the wrong zone. Give prices as numbers with a separate currency code such as USD, without symbols or thousands separators. Use absolute URLs for images and pages.
Quotation marks and line breaks inside text fields are another frequent source of broken blocks. If your template inserts a product name containing a quote mark, the output must escape it. A proper JSON encoding function handles this. Gluing strings together by hand eventually fails on an unusual title. The same encoding should prevent text such as a closing script tag from ending the block early.
When you fix an error, fix it where it starts. Editing one page's output by hand clears one warning, while correcting the template or the missing database field clears every page built from it.
What to expect, realistically
Rich results can make a listing easier to scan, which may help people choose it. How much that matters depends on the query, the device and what competing results look like, and a displayed answer can also mean fewer clicks, a tension covered in zero-click searches and publishers.
Structured data is generally not described by search engines as a direct ranking boost. Treat it as a clarity measure. It sits alongside clear titles and descriptions, readable headings and pages that answer the question they promise to answer.
Common questions
Why is my valid markup not showing a rich result?
Eligibility is only the first step. The engine decides per query whether to show extras, and it may decline for quality, relevance or layout reasons. Newly added markup also has to be recrawled.
Can structured data hurt my site?
Accurate markup carries little risk. Misleading markup can cost you rich results and your readers' trust.
Do social networks use schema.org?
Link previews on social platforms usually rely on Open Graph and similar meta tags. Those are separate from schema.org, and many sites include both.