Schema: query-input
Schema: query-input Example Markup
The following are examples of markup written in json+ld that include the correct usage for Schema: query-input.
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.
SearchAction JSON-LD reference — Action subtype with query. Known primarily as WebSite.potentialAction for sitelinks searchbox; the property-level reference page.