How Can We Help?

< All Topics
Print

How to get a search box in the search results?

You may have seen some results in the Google SERPs where there is a search box directly in the results like this:

This is called the “sitelinks search box” and can be a great way of getting visitors straight to your internal pages from the Google search results and uses Structured data (schema), which is a positive SEO factor. The search box only appears for websites of sufficiently high authority (as deemed by Google) so is hard to get, and only appears for brand searches. In other words, the actual business name must be searched on Google in order for this to box to appear.

To be eligible for the sitelinks search box, you need:

1. To have a search facility in your website

2. The correct schema code installed on your website. The code is of this format:

<div itemscope itemtype="https://schema.org/WebSite">
  <meta itemprop="url" content="https://www.example.com/"/>
  <form itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction">
    <meta itemprop="target" content="https://query.example.com/search?q={search_term_string}"/>
    <input itemprop="query-input" type="text" name="search_term_string" required/>
    <input type="submit"/>
  </form>
</div>

Replace https://www.example.com/ with your own web address and replace https://query.example.com/search?q= with your own search string. To find this do a search using your website search facility and copy everything from the URL up to the = sign.

As I say, you need a very high Website Authority to qualify for this feature - no one knows how high.

Need more info? 
The official: https://developers.google.com/search/docs/data-types/sitelinks-searchbox
Easy to follow video: https://www.youtube.com/watch?v=C5svFE8atoU 

Follow him:
Latest posts by Ashley Bryan (see all)
Table of Contents