SearchAction Schema
SearchAction schema describes a search a site offers, with a URL template and a query-input. Its one use in Google Search was the sitelinks search box, which Google stopped showing on November 21, 2024. The markup does no harm, but it no longer does anything in Google, and the WebSite markup around it is now read for site names.
Last updated:
Does Google show SearchAction schema?
Not any more Google retired Sitelinks search box on November 21, 2024. The markup is still valid schema.org, but it earns no rich result.
Google stopped showing the sitelinks search box on November 21, 2024, for every site, and removed its documentation and Rich Results Test support. SearchAction markup left on a page does no harm and needs no urgent removal, but it earns nothing in Google Search. The WebSite object it usually sits in is still read on the home page, for the site name: keep its name, url and alternateName.
-
Sitelinks search box Retired November 21, 2024
A search box inside the site's result.
Last checked against Google's documentation: .
What we found on the top 10,000 sites
- 24.3% of the 5,687 top sites we could analyze use SearchAction markup (1,381 sites).
- 0.5% of those sites still mark it up for the Sitelinks search box feature, which Google retired on November 21, 2024.
- 1.5% of those sites have a URL that isn't absolute or valid on their SearchAction markup, the most common problem we found.
From the home page of each of the Tranco top 10,000 sites and, where we found one, a page it links to, crawled in November 2026. Methodology and every chart: State of Schema 2026.
When to Use SearchAction
SearchAction properties
The properties that matter most in practice, of the 27 schema.org defines for SearchAction. Status is our advice for a complete description; Google's own requirements are covered in the box above.
| Property | Type | Status | Description |
|---|---|---|---|
| target | EntryPoint or URL | optional | Where the search runs: an EntryPoint whose urlTemplate has a {search_term_string} placeholder, or the template as a plain URL. |
| query | Text | optional | The search terms, for a search that has been carried out. Unused in a template; query-input describes the input instead. |
| name | Text | optional | A label for the search, such as Search the catalog, when a site offers more than one. |
| description | Text | optional | What the search covers. |
| object | Thing | optional | What the search acts on, in schema.org's Action model. Rarely needed for site search. |
| actionStatus | ActionStatusType | optional | For an action that happened: https://schema.org/CompletedActionStatus. Not used in a potentialAction. |
Note: query-input isn't a schema.org property, so it has no schema.org page. It's an annotation for the Action's input, written "query-input": "required name=search_term_string", where the name matches the placeholder in target's URL template. The long form is a PropertyValueSpecification with valueRequired and valueName.
JSON-LD Examples
Minimal:A SearchAction on its own
The action by itself: a target URL template with a placeholder, and the query-input that names it. It needs a WebSite around it to say which site it searches.
{
"@context": "https://schema.org",
"@type": "SearchAction",
"target": "https://example.com/search?q={search_term_string}",
"query-input": "required name=search_term_string"
} Complete:The home page markup Google used to document
The form Google's sitelinks search box documentation asked for: a WebSite with name and url, and a potentialAction whose target is an EntryPoint. Today Google reads only the name and url, for the site name; the action is retired.
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Fernhill Books",
"url": "https://example.com/",
"alternateName": "Fernhill",
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://example.com/search?q={search_term_string}"
},
"query-input": "required name=search_term_string"
}
} Real-world, nested:A site search in a home page @graph, in the long form
The SearchAction inside a WebSite that names its publisher by @id, with an EntryPoint listing its platforms and HTTP method, and query-input written as a PropertyValueSpecification. It's the fully spelled-out version of the same action.
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://example.com/#organization",
"name": "Fernhill Books",
"url": "https://example.com/",
"logo": "https://example.com/images/fernhill-logo-512.png",
"sameAs": [
"https://www.instagram.com/example-fernhillbooks"
]
},
{
"@type": "WebSite",
"@id": "https://example.com/#website",
"name": "Fernhill Books",
"alternateName": "Fernhill",
"url": "https://example.com/",
"publisher": {
"@id": "https://example.com/#organization"
},
"potentialAction": {
"@type": "SearchAction",
"name": "Search the catalog",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://example.com/search?q={search_term_string}",
"actionPlatform": [
"https://schema.org/DesktopWebPlatform",
"https://schema.org/MobileWebPlatform"
],
"httpMethod": "GET"
},
"query-input": {
"@type": "PropertyValueSpecification",
"valueRequired": true,
"valueName": "search_term_string"
}
}
}
]
} Common SearchAction schema mistakes
Pasting the SearchAction snippet without an @context
CTX_MISSING: Without @context, the keys aren't linked to schema.org, so search engines don't read this JSON as structured data.
Snippets copied from inside a WebSite lose the @context that sat on the outer object. A standalone block needs its own.
Wrong
{
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://example.com/search?q={search_term_string}"
},
"query-input": "required name=search_term_string"
} Right
{
"@context": "https://schema.org",
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://example.com/search?q={search_term_string}"
},
"query-input": "required name=search_term_string"
} A target object without @type EntryPoint
TYPE_MISSING_NESTED: Nested objects should say what they are too. Without an @type, search engines have to guess, and Google's features may not recognise the object.
Wrong
{
"@context": "https://schema.org",
"@type": "SearchAction",
"target": {
"urlTemplate": "https://example.com/search?q={search_term_string}"
},
"query-input": "required name=search_term_string"
} Right
{
"@context": "https://schema.org",
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://example.com/search?q={search_term_string}"
},
"query-input": "required name=search_term_string"
} Putting urlTemplate directly on the SearchAction
PROP_NOT_ON_TYPE: This schema.org property isn't defined for the object's type, so search engines may ignore it.
urlTemplate belongs to EntryPoint. The action's target holds the EntryPoint, or the template as a plain URL.
Wrong
{
"@context": "https://schema.org",
"@type": "SearchAction",
"urlTemplate": "https://example.com/search?q={search_term_string}",
"query-input": "required name=search_term_string"
} Right
{
"@context": "https://schema.org",
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://example.com/search?q={search_term_string}"
},
"query-input": "required name=search_term_string"
} A relative search URL in target
VALUE_URL: This property expects an absolute URL, including https://. Relative paths can't be resolved reliably.
Wrong
{
"@context": "https://schema.org",
"@type": "SearchAction",
"target": "/search?q={search_term_string}",
"query-input": "required name=search_term_string"
} Right
{
"@context": "https://schema.org",
"@type": "SearchAction",
"target": "https://example.com/search?q={search_term_string}",
"query-input": "required name=search_term_string"
} Also watch for
-
Keeping SearchAction markup in the belief that it still produces a search box in Google. It hasn't since November 21, 2024, and no change to the markup brings it back.
-
A placeholder name in the template that differs from the one in query-input, such as {query} in the URL and name=search_term_string in query-input. The two must match, whatever the name.
-
Removing the whole WebSite block along with the SearchAction. The WebSite's name and url are what Google reads for site names; only the potentialAction is dead weight.
What the sitelinks search box was, and when it went
For about a decade, a search for a site's name could show a search box inside that site's result. Typing into it sent the query to the site's own search page, or to a Google search restricted to the site. Sites influenced it with a SearchAction on the home page's WebSite markup: the action's target gave the URL of the site's search results with a placeholder for the query, and query-input named the placeholder. The markup didn't earn the box: Google decided which sites got one, and the markup only told it to send queries to the site's own search instead of its own site-restricted results.
In October 2024 Google announced that it would stop showing the search box, citing lower use, and it removed the feature starting November 21, 2024, worldwide and in every language. Its documentation was taken down later that month, and the Rich Results Test and Search Console no longer report sitelinks search box markup. The Validator here reports it as a retired feature: a note, not an error.
Nothing replaced it in Google Search. A site's result can still show sitelinks to its main sections, which Google chooses on its own; those were never controlled by structured data.
Keep, remove or replace old SearchAction markup
Google said when it announced the change that there's no need to remove the markup, and that leftover markup won't cause problems. That leaves a choice, and both answers are reasonable.
Keeping it costs nothing. The markup is valid schema.org, it describes a real capability of the site, and other consumers of structured data can read it. If the site's search URL changes, though, the markup has to change with it, and dead markup tends to be forgotten until it's wrong.
Removing it is a small cleanup. Delete only the potentialAction property, not the WebSite around it. If an SEO plugin generates it, look for a setting that turns the search action off, or a filter that removes it from the plugin's output. Re-test the home page afterwards to confirm the WebSite still has its name and url.
If what you want is for browsers to know about the site's search, the format they read is an OpenSearch description: an XML file linked from the page's head with <link rel="search" type="application/opensearchdescription+xml">. That's independent of schema.org and of Google Search.
How the markup is built: target, EntryPoint and query-input
SearchAction is one of schema.org's Actions, which describe things a user can do. On a WebSite it goes in potentialAction, meaning an action that can be carried out, as opposed to one that already happened. The action's target says where it runs. The usual form is an EntryPoint whose urlTemplate is the search results URL with a placeholder in braces: https://example.com/search?q={search_term_string}. A plain URL string with the same template also works.
query-input describes the input the placeholder stands for. The short form, "required name=search_term_string", says the input is required and its name is search_term_string; the long form is a PropertyValueSpecification with valueRequired and valueName. The name can be anything, as long as the template uses the same one. Google's examples used search_term_string, and most sites copied it.
The EntryPoint can say more: actionPlatform lists the platforms it works on, as schema.org URLs such as https://schema.org/MobileWebPlatform, and httpMethod the method. For a site search those are rarely needed. The URL in the template must be absolute and must actually return results when the placeholder is replaced: try it in a browser with a real query. A site whose search runs on a hosted service, at a URL such as https://search.example.net/fernhill?q=…, can point the template there: the action describes where the search runs, not where the site lives.
What WebSite markup is still read for
With the search box gone, Google reads WebSite markup for one thing: the site name shown with its results, taken from name and url on the home page, with alternateName as a recommended fallback. That makes the object the SearchAction sat in more important to get right than the action itself. A home page whose WebSite has a SearchAction but no name, or a url that isn't the root, has the wrong part fixed. Pages other than the home page need no change at all: their isPartOf links to the WebSite never depended on the search action.
To audit an old home page, paste it into the Schema Validator at /markup/validator/. It shows the retired search box as a note and checks the WebSite's site name properties as Google's site names documentation lists them. The WebSite page covers choosing the name, alternate names and the home page URL.
Complete Guide to SearchAction Schema
SearchAction is a supporting type in schema.org's Action vocabulary: it describes a search that can be run, and in practice it lives inside WebSite markup as a potentialAction. It was the mechanism behind Google's sitelinks search box, which Google retired on November 21, 2024. The markup is still valid schema.org; Google Search no longer uses it.
Because the snippet was copied onto millions of home pages, it's still on a great many home pages, usually generated by an SEO plugin or a theme. Much of it was never reviewed after it was added, and old copies often have targets pointing at a search page that moved, placeholders that don't match, or no @context. None of that matters to Google any more, but it's a sign that the WebSite block around it deserves a look.
A site with more than one search, such as a store with a product search and a help-center search, can describe each as its own SearchAction with a name, in an array in potentialAction. There's no Google feature for it; it's simply an accurate description of the site.
Finding where the markup comes from is often the hardest part of cleaning it up. View the home page's source and search for SearchAction: it may come from an SEO plugin, from the theme's header template, from a tag manager that injects JSON-LD, or from a block someone pasted years ago. The Validator lists every structured data block on the page, which shows whether there's one copy or several.
Where SearchAction sits in schema.org
"The act of searching for an object."
Path from Thing: Thing Action SearchAction
- Parent type
- Action
- More specific types
- None: SearchAction has no subtypes in schema.org.
Related Types
Check Your SearchAction Markup
The generator doesn't have a SearchAction form yet. Paste your markup into the validator to check its types, properties and values, and what Google needs from it.
Open Validator