google autocomplete api 1

Google autocomplete API simplified

In this article, we will see how to access the google autocomplete API programmatically.

google autocomplete api 1

This is the format of the google autocomplete API.-

http://suggestqueries.google.com/complete/search?output=firefox&hl=en&q={search_query}

Where –

  • output is the browser
  • hl is the language of the search query
  • q is the search query

Here is a sample search query-

http://suggestqueries.google.com/complete/search?output=firefox&hl=en&q=apple

This API gives search results in JSON format which you can use and incorporate into your application.

google autocomplete api