How to use the google-play-scraper.suggest function in google-play-scraper

To help you get started, we’ve selected a few google-play-scraper examples, based on popular ways it is used in public projects.

github facundoolano / google-play-api / lib / index.js View on Github external
router.get('/apps/', function (req, res, next) {
  if (!req.query.suggest) {
    return next();

  const toJSON = (term) => ({
    url: buildUrl(req, '/apps/') + '?' + qs.stringify({q: term})

  gplay.suggest({term: req.query.suggest})
    .then((terms) =>