Schema: SearchAction
Schema: SearchAction Example Markup
The following are examples of markup written in json+ld that include the correct usage for Schema: SearchAction.
WebSite JSON-LD example with SearchAction for the sitelinks search box. Covers the potentialAction pattern with query-input, the difference between WebSite and WebPage, publisher cross-referencing, and how Google uses WebSite markup to display a search box directly in the SERP for branded queries.
SearchAction JSON-LD example for a site search box. Shows how to embed SearchAction inside WebSite markup to trigger Google's sitelinks search box. Covers the query-input parameter syntax, target URL patterns, and common implementation errors.
PropertyValueSpecification JSON-LD example for constraining an Action input: required / readonly / min / max / step / pattern / default. Used with the -input hint on Action properties to describe expected parameter shape.
Thing JSON-LD example for the root of the entire schema.org vocabulary. Every type descends from Thing. Use it directly only when no subtype fits; its 13 properties (name, url, image, identifier, sameAs, potentialAction, etc.) are the universal entity signals every page should publish.
SearchAction JSON-LD reference — Action subtype with query. Known primarily as WebSite.potentialAction for sitelinks searchbox; the property-level reference page.