Sub topic 13
Structured data and metadata
This chapter assumes you know basic HTML and HTTP, and that you have read the earlier chapters on crawling, indexing, and how answer engines retrieve passages. Here you will learn what structured data and metadata do for an answer engine, how to add them, and where people overestimate their effect.
What structured data is for
Structured data is machine-readable markup that states facts about a page in a fixed vocabulary. The most common vocabulary is Schema.org, and the most common format is JSON-LD (JavaScript Object Notation for Linked Data). You place it in a <script type="application/ld+json"> tag. Visitors never see it, but crawlers and parsers can read it.
Metadata is the wider set of descriptive signals around a page. It includes the <title>, the meta description, the canonical link, Open Graph tags, the lang attribute, HTTP headers, and the dates a page reports.
Answer engines build on a web index, as the earlier chapters described. Structured data and metadata help at three points in that pipeline:
- Identification. The engine can tell what kind of page it has: an article, a product, a how-to, a FAQ.
- Disambiguation. The engine can tell who wrote it, who publishes it, and which URL is the preferred one.
- Freshness signals. The engine can read when the page was published and last changed.
A page without markup can still be retrieved and cited. The engines extract passages from visible text. Markup is a clarity aid, not an entry ticket.
What is and is not documented
Be careful with claims here. Microsoft has said publicly that schema markup helps its systems understand content, and Bing's index feeds Copilot. Google and Bing both document structured data for classic search features. The major engines do not publish a rule such as "pages with Article markup are cited more often." Treat structured data as low-cost clarity that may help, and do not expect a measurable lift in citations from it alone.
The reliable benefits are indirect:
- Correct metadata reduces mistakes, such as a wrong date or a duplicate URL being indexed instead of your canonical one.
- Clear titles and descriptions give the engine a good label when it displays your page as a source.
- Accurate dates support freshness judgments, which matter for time-sensitive questions.
A worked Article example
The following JSON-LD states a headline, a publication date, a modification date, and an author.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to rotate API keys safely",
"datePublished": "2026-01-15",
"dateModified": "2026-06-01",
"author": { "@type": "Person", "name": "Jane Doe" }
}
</script>Each property has a job:
| Property | What it tells a consumer | Common mistake |
|---|---|---|
| `@type` | What kind of thing the page is | Using `Article` for a product page |
| `headline` | The title of the work | A headline that differs from the visible `<h1>` |
| `datePublished` | When the page first appeared | Resetting it on every edit |
| `dateModified` | When the content last changed in substance | Bumping it for trivial edits to look fresh |
| `author` | Who is responsible for the content | Omitting it, or naming a placeholder |
Dates use ISO 8601 format (YYYY-MM-DD, optionally with a time and zone). Other formats may be misread or ignored.
The markup must match the page
The most important rule is that markup describes what is visible on the page. If the JSON-LD says the page was modified in June 2026 but the visible text still describes a 2024 process, you have given the engine a false freshness signal. Search engines document policies against misleading markup, and a mismatch can lead them to ignore your structured data.
An answer engine also reads the visible passage. If the markup and the text disagree, the model sees the text. So the markup cannot rescue a stale or unclear passage.
Other types worth knowing
Match the type to the page. Do not add types for content that is not there.
FAQPage, for pages whose visible content is question-and-answer pairs. Google has sharply limited FAQ rich results in classic search, so do not add this type just for display features.HowTo, for step-by-step instructions that are visible on the page. Google has also reduced its rich-result support for this type.ProductandOffer, for price and availability. These matter for shopping-oriented answers.OrganizationandPerson, for publisher and author identity. AddsameAslinks to official profiles to help the engine connect them to the right entity.BreadcrumbList, for the page's place in the site hierarchy.
Even where a rich result is no longer shown, the markup still states facts in a consistent form. Keep it only if it is accurate and you can maintain it.
Metadata beyond JSON-LD
These elements carry weight because crawlers read them on every fetch.
<head>
<meta charset="utf-8">
<title>How to rotate API keys safely | Example Docs</title>
<meta name="description" content="Step-by-step key rotation with zero downtime, including rollback.">
<link rel="canonical" href="https://www.example.com/guide/rotate-api-keys">
<meta property="og:title" content="How to rotate API keys safely">
<meta property="og:type" content="article">
<meta name="robots" content="max-snippet:-1">
</head>- Title. Write it to describe the page content. Engines often show it as the source label.
- Meta description. It is not a ranking factor you can rely on. It may be used as a summary, but engines often write their own. Make it accurate and specific.
- Canonical link. It tells indexers which URL is the preferred version of duplicated content. Without it, signals can split across URL variants such as
?utm_source=copies. langattribute. Set<html lang="en">so the engine knows the language of the passage.- Robots meta directives. These control how the content is used. For example,
nosnippetandmax-snippetlimit how much text a search engine may show. Bing has said these directives can affect how Copilot uses your content, so check each engine's current documentation before relying on them.
<br>
Be careful with nosnippet. A directive meant to limit excerpts can also make your page less useful as a source, because the engine has less text it is allowed to quote.
Rendering and delivery gotchas
Many AI-related crawlers fetch raw HTML and do not run JavaScript. If your JSON-LD is injected by client-side script, some crawlers will never see it. Put the JSON-LD in the server-rendered HTML.
Check what a crawler receives by fetching the page without a browser:
curl -s -A "Mozilla/5.0 (compatible; bingbot/2.0)" https://www.example.com/guide \
| grep -c 'application/ld+json'A count of 0 means the markup is missing from the raw response. Note that some sites serve different content to unknown user agents, so test with the same user-agent strings you saw in your logs.
Other failures to watch for:
- Invalid JSON. A trailing comma or an unescaped quote makes the whole block unparseable. Validate with a JSON linter and a structured data testing tool such as the Schema.org validator.
- Conflicting blocks. A CMS plugin and a hand-written block may each emit an
Articlewith different dates. Keep one source of truth. - Template-wide values. A shared template that hard-codes one
dateModifiedfor every page gives every page the same false date.
How this fits the pipeline
Markup acts mainly at the crawl and index stages. By passage extraction, the engine works with text. This is why a clear, self-contained passage, covered in the earlier chapter on page structure, matters more than any tag.
A practical checklist
- Server-render one accurate JSON-LD block per page type, with
headline,datePublished,dateModified, andauthor. - Make every value in the markup match the visible page.
- Set a canonical URL and a
langattribute. - Write a specific title and description.
- Update
dateModifiedonly for substantive changes. - Fetch the page as a crawler would, and confirm the markup is in the raw HTML.
- Validate the JSON and re-check after template changes.
Exercise
A page's JSON-LD is added by a JavaScript tag manager after page load. It lists dateModified as today's date on every visit, though the article text has not changed in a year. Name two problems and one fix for each.
Show answer
Problem 1: the markup is injected client-side, so crawlers that fetch raw HTML and do not run JavaScript will not see it. Fix: render the JSON-LD on the server so it is in the initial HTML. Problem 2: dateModified is a false freshness signal, because it changes without any content change. Fix: set it from the content's real last substantive edit date, stored with the article, and leave it unchanged otherwise.
Exercise
You add a FAQPage block to a page whose visible text has no questions and answers. Will this make answer engines cite the page more often, and why or why not?
Show answer
No reliable benefit should be expected. The markup does not match the visible content, which breaks the rule that markup must describe what the page shows, and engines may ignore it. Answer engines also extract passages from the visible text, so the markup cannot add content the page lacks.