An open API service indexing awesome lists of open source software.

https://github.com/pindlebot/google-autosuggest


https://github.com/pindlebot/google-autosuggest

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

## Google Autosuggest

You know how when you start typing on Google that autocomplete dropdown appears with common/relevant searches?

Given a search term, this package fetches those suggested searches from Google.

### Example

```js

require('google-autosuggest')('javascript').then(resp => {
console.log(resp)
/*
{
"value": "javascript",
"relevance": 1300,
"set": [
{ "value": "javascript snake", "relevance": 601, "type": "QUERY" },
{ "value": "javascript array", "relevance": 600, "type": "QUERY" },
...
]
}
*/
})