Sub topic 13
Structured Data and Metadata for AI Search
Assume you understand how search engines crawl and index HTML pages, and you know the basics of JSON and HTTP. This chapter focuses on how page metadata helps answer engines identify, interpret, and cite content.
What structured data does
Structured data is information written in a standard format so software can recognize facts about a page. Metadata is descriptive information about the page, such as its title, author, publication date, and update date.
A page has two audiences:
- People read the visible headings and paragraphs.
- Crawlers and indexing systems inspect both visible content and machine-readable metadata.
Structured data gives an engine clues about the page's meaning. For example, it can identify an article's headline, author, and dates. This can help an engine connect a retrieved passage to the correct document and judge whether the document is current.
Structured data does not replace clear writing. The important answer must still appear as visible text on the page.
JSON-LD for an article
JSON-LD is a format for embedding structured data in a page without changing the visible layout. The Article type below describes the document's identity and dates.
<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>The dateModified value is useful when a page changes over time. Use an accurate date. Do not update it merely to make an old page appear fresh.
Metadata should agree with the page:
- The structured-data headline should match, or closely match, the visible page title.
- The author should be identifiable on the page.
- The publication and modification dates should reflect real events.
- The declared type should describe the actual content.
- Important claims should remain in normal text, not only in metadata.
Common errors
A frequent error is adding FAQPage, HowTo, or Product markup to content that does not meet that type's requirements. Incorrect markup can be ignored and can reduce trust in the page's signals.
Another error is placing facts in JSON-LD that visitors cannot find in the document. Structured data should describe visible content, not make unsupported claims.
Do not assume that valid markup guarantees retrieval or citation. An answer engine can ignore structured data, use a different index, prefer another source, or cite a passage based on its own ranking signals.
A practical review
Before publishing, compare the metadata with the page itself:
| Check | Question |
|---|---|
| Identity | Does the type describe the page? |
| Dates | Are `datePublished` and `dateModified` accurate? |
| Authorship | Can a visitor verify the named author? |
| Agreement | Do metadata and visible text describe the same content? |
Exercise
A page's JSON-LD says it was modified today, but the visible article has not changed since last year. What should you do?
Show answer
Set dateModified to the date of the real substantive update, or remove the inaccurate value. Metadata should describe the page truthfully.