Add Google Autocomplete to other Search Engines

Published in: Google

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.

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="" xmlns:moz="">
<ShortName>Digital Inspiration</ShortName>
<Description>Search Digital Inspiration</Description>
<Image width="16" height="16" type="image/x-icon"></Image>
<Url type="application/x-suggestions+json" method="GET" template=";q={searchTerms}"/>
<Url type="text/html" method="GET" template="{searchTerms}" />
Published in: Google

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch