Schema.org types for documentation sites
Which schema.org types describe a documentation page and the site around it: TechArticle for the page, BreadcrumbList for its place in the hierarchy, WebSite and Organization for the site and its owner, and SoftwareSourceCode for code examples, with a complete JSON-LD block.
Type: IntermediateOn this page
Schema.org is a shared vocabulary for describing things on web pages: articles, organizations, products, events and hundreds more. Bing, Google and Yahoo launched it on 2 June 2011, and Yandex joined in November of the same year. Since April 2015 most of the work has happened in the W3C Schema.org Community Group, and new terms appear in numbered releases; version 30.1 was released on 16 September 2026. Schema.org is not a standards body, and its types are definitions rather than requirements: each search engine decides which of them it reads and what it does with them.
A documentation page needs only a few of those types. The rest of this page goes through them in the order they appear in a typical JSON-LD block. The syntax itself, including @context, @type, @id and @graph, is explained in JSON-LD basics: @context, @type and @id.
Types for each part of a docs site
| Type | Describes | Used on |
|---|---|---|
| TechArticle | A technical article: how-to guides, procedures, reference pages | Each documentation page |
| APIReference | A subtype of TechArticle for reference documentation of a programming interface | API reference pages, if the distinction matters to the site |
| BreadcrumbList | The chain of pages from the home page to the current one | Every page below the home page |
| WebSite | The documentation site as a whole | Usually the home page, referenced from other pages by @id |
| Organization | The company or project that publishes the site | Referenced as author and publisher |
| SoftwareSourceCode | A piece of code, with its language and repository | Pages built around a substantial code example |
TechArticle
TechArticle sits below Article, which sits below CreativeWork, so it inherits the familiar article properties and adds two of its own. Schema.org lists Beginner and Expert as the expected values of proficiencyLevel; a site with three levels can map them or use its own text, which is permitted but less likely to be understood.
| Property | Defined on | Expected type | Use |
|---|---|---|---|
| proficiencyLevel | TechArticle | Text | Proficiency the content assumes, such as Beginner or Expert |
| dependencies | TechArticle | Text | Prerequisites needed to follow the article |
| headline | CreativeWork | Text | The page title as shown on the page |
| description | Thing | Text | The summary under the title |
| articleSection | Article | Text | The documentation section the page belongs to |
| datePublished, dateModified | CreativeWork | Date or DateTime | First publication and last substantive revision, in ISO 8601 |
| author, publisher | CreativeWork | Organization or Person | Who wrote and who publishes the page; for unsigned documentation, the organization |
| inLanguage | CreativeWork | Text (BCP 47 code) or Language | The language of the page, such as en or ko |
| isPartOf | CreativeWork | CreativeWork or URL | The WebSite the page belongs to |
| version | CreativeWork | Number or Text | The version of the documented product the page applies to |
BreadcrumbList
A BreadcrumbList is an ordered list of ListItem entries. The position property carries the order, because the order of elements in markup is not treated as meaningful. Google's breadcrumb documentation lists itemListElement as the only required property of the list, and position, name and item as required for each ListItem, except that the last item may leave out item, in which case Google uses the URL of the page itself.
| Property | On | Value |
|---|---|---|
| itemListElement | BreadcrumbList | The ListItem entries, in any order |
| position | ListItem | An integer, starting at 1 for the top of the trail |
| name | ListItem | The label shown for that step |
| item | ListItem | The URL of that step; optional on the last item for Google |
A page that sits in two places in the hierarchy can carry two BreadcrumbList objects. Google's documentation shows this with both lists in one JSON array.
A complete block for one page
The block below describes a page at https://docs.example.com/sitemaps/index-files. It uses @graph to hold four connected objects and @id values to link them, so the organization is described once and referenced as both author and publisher.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"@id": "https://docs.example.com/sitemaps/index-files#article",
"headline": "Sitemap index files",
"description": "How to list several sitemaps in one index file.",
"inLanguage": "en",
"datePublished": "2025-04-10",
"dateModified": "2026-12-03",
"proficiencyLevel": "Expert",
"dependencies": "A working XML sitemap",
"articleSection": "Sitemaps",
"author": { "@id": "https://docs.example.com/#org" },
"publisher": { "@id": "https://docs.example.com/#org" },
"isPartOf": { "@id": "https://docs.example.com/#website" },
"mainEntityOfPage": "https://docs.example.com/sitemaps/index-files"
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Docs", "item": "https://docs.example.com/" },
{ "@type": "ListItem", "position": 2, "name": "Sitemaps", "item": "https://docs.example.com/sitemaps/" },
{ "@type": "ListItem", "position": 3, "name": "Sitemap index files" }
]
},
{
"@type": "WebSite",
"@id": "https://docs.example.com/#website",
"name": "Example Docs",
"url": "https://docs.example.com/",
"publisher": { "@id": "https://docs.example.com/#org" }
},
{
"@type": "Organization",
"@id": "https://docs.example.com/#org",
"name": "Example Corp",
"url": "https://www.example.com/",
"logo": "https://www.example.com/logo.png"
}
]
}
</script>Every value in the block should match what a reader sees: the same headline, the same dates as the page's own last-updated line, and the same breadcrumb trail as the navigation. Markup that describes content not visible on the page goes against Google's structured data guidelines and can make the page ineligible for rich results.
Code examples as SoftwareSourceCode
Most documentation pages contain short snippets that need no markup of their own. Where a page is built around a complete program or links to a repository, SoftwareSourceCode can describe it with programmingLanguage, codeRepository, runtimePlatform and codeSampleType, whose expected values include full solution, code snippet, inline code, scripts and template. It can be attached to the article through hasPart or about.
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "Sitemap index generator",
"programmingLanguage": "Python",
"runtimePlatform": "Python 3.12",
"codeSampleType": "full solution",
"codeRepository": "https://github.com/example/sitemap-tools"
}Types that no longer bring a search feature
Two types used to be common on documentation sites because Google showed them as rich results. On 8 August 2023 Google announced that FAQ rich results would be shown only for well-known, authoritative government and health websites, and that HowTo rich results would be limited to desktop. On 14 September 2023 it updated the announcement: HowTo rich results were no longer shown at all, and the type was deprecated in Google Search. HowTo and FAQPage remain valid schema.org types, and other consumers may read them, but they should not be added to documentation pages in the expectation of a Google search feature.
The same caution applies to AI features. Google's guide to its generative AI search features says that structured data is not required for them and that no special schema.org markup is needed. Structured data on a documentation site is best treated as an accurate description of each page, useful to any program that reads it, rather than as a ranking device. Checking markup before publishing is covered in validating structured data.
See also
- JSON-LD basics: @context, @type and @idHow schema.org structured data is written in JSON-LD 1.1: the script element that carries it, the four keywords most pages need, and the choice between nesting a node and referring to it by @id.
- Validating structured dataThe Schema Markup Validator checks markup against schema.org; Google's Rich Results Test checks only the features Google Search supports. How to use both, what Search Console adds, and why valid markup can still be ignored.
- Canonical and alternate linksA canonical link names the preferred URL when the same content is reachable at several addresses; alternate links point to translations and to the same page in other formats, such as JSON or Markdown. Both can be written in the HTML head or sent as HTTP Link headers.
- Machine-readable files a website can publishThe files and markup a site publishes for crawlers, search engines, language model tools and security researchers: what each one is for, where it lives and which document defines it.
References
- Schema.org. TechArticle. schema.org
- Schema.org. BreadcrumbList. schema.org
- Schema.org. SoftwareSourceCode. schema.org
- Schema.org. About Schema.org. schema.org
- Schema.org. Releases. schema.org
- Wikipedia. Schema.org. en.wikipedia.org
- Google Search Central. Breadcrumb (BreadcrumbList) structured data. developers.google.com
- Google Search Central blog. Changes to HowTo and FAQ rich results. 8 August 2023, updated 14 September 2023. developers.google.com
- Google Search Central. Google's guide to optimizing for generative AI features on Google Search. developers.google.com