Add Google Autocomplete to other Search Engines

Learn how you can easily add Google like search suggestions to any other search engine be it Twitter, YouTube, Google Plus or any other.

November 23, 2011
google autocomplete

When you type a few characters in the search box of your favorite web browser – be it Firefox, Internet Explorer or the Omnibox of Google Chrome – Google tries to predict your search query and offers search suggestions in a drop-down. These predictions are often very accurate and thus you rarely have to type the full search query in the browser.

The problem is that this useful “autocomplete” feature isn’t available in most of the other search engines that are installed in your browser. Just look at Twitter, Amazon, or even YouTube search in your browser – none of them offer autocomplete like Google.

That said, it is actually very easy to integrate Google search suggestions in any other search engine with the help of OpenSearch. To get started, just go to and install any of your favorite search engines by clicking on their name. These are compatible with Firefox, Google Chrome and Internet Explorer.

Next go to your browser’s search box, or the address bar depending on what browser you are using, change the default search engine to the one that you just installed and type something. You should see get search suggestions in a drop-down just like Google Search.

The idea is simple. If you have set YouTube+ as your default search engine in the browser, the autocomplete suggestions would still get served from Google but when you press enter, the actual search will happen on YouTube. See video demo:

[*] You can also add autocomplete to your site’s search engine – see example. The OpenSearch code is available below and you just need to change a few parameters in the template to use it with your own Google custom search engine.

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;OpenSearchDescription xmlns=&quot;; xmlns:moz=&quot;;&gt;<br />
&lt;ShortName&gt;Digital Inspiration&lt;/ShortName&gt;<br />
&lt;Description&gt;Search Digital Inspiration&lt;/Description&gt;<br />
&lt;InputEncoding&gt;UTF-8&lt;/InputEncoding&gt;<br />
&lt;Image width=&quot;16&quot; height=&quot;16&quot; type=&quot;image/x-icon&quot;&gt;;/Image&gt;<br />
&lt;Url type=&quot;application/x-suggestions+json&quot; method=&quot;GET&quot; template=&quot;;amp;q={searchTerms}&quot;/&gt;<br />
&lt;Url type=&quot;text/html&quot; method=&quot;GET&quot; template=&quot;{searchTerms}&quot; /&gt;<br />
&lt;SearchForm&gt;;/SearchForm&gt;<br />