schema.org/WebSiteNo rich result
WebSite schema
The site as a whole. The isPartOf target for every page node.
Where to use it
Every page, once, in the sitewide graph.
A complete example
Valid as written, with every required property and the recommended ones that carry real information.
web-site.json
{
"@context": "https://schema.org",
"@type": "WebSite",
"@id": "https://www.seoforsolos.com/#website",
"url": "https://www.seoforsolos.com/example",
"name": "Acme Reference",
"publisher": {
"@id": "https://www.seoforsolos.com/#organization"
},
"inLanguage": "en-US",
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://www.seoforsolos.com/search?q={search_term_string}"
},
"query-input": "required name=search_term_string"
}
}Properties
| Property | Status |
|---|---|
url | Required |
name | Required |
publisher | Recommended |
inLanguage | Recommended |
potentialAction | Recommended |
The three mistakes this type attracts
- 01Adding a SearchAction for a search route that does not exist.
- 02Omitting publisher, which leaves the site unattached to its organisation.
- 03Duplicating the node per page without a stable @id.
Related types
Where this appears in the playbook
- Structured data: what each type is for and which ones earned their place.
- The schema graph: composing types into one graph with stable identifiers.
- One JSON-LD script per page, holding one @graph
- Stable @id anchors that cross-reference rather than duplicate
- Optional fields are omitted, never emitted as empty strings
Questions
What is the WebSite schema type for?
The site as a whole. The isPartOf target for every page node. Use it on: every page, once, in the sitewide graph.
Which WebSite properties are required?
WebSite requires 2 properties: url, name. It also recommends 3: publisher, inLanguage, potentialAction.
Does WebSite produce a rich result?
WebSite does not produce a Google rich result. It is still worth shipping, because its value is entity resolution and answer extraction rather than search result presentation.
What is the most common WebSite mistake?
The most common WebSite mistake is: Adding a SearchAction for a search route that does not exist.