google-autosuggest

0.0.13 • Public • Published

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

 
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" },
        ...
      ]
    }
  */
})

Readme

Keywords

none

Package Sidebar

Install

npm i google-autosuggest

Weekly Downloads

0

Version

0.0.13

License

ISC

Unpacked Size

148 kB

Total Files

6

Last publish

Collaborators

  • focuswish
  • menubar