How to use the google-play-scraper.similar 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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facundoolano / google-play-api / lib / index.js View on Github external
router.get('/apps/:appId/similar', function (req, res, next) {
  const opts = Object.assign({appId: req.params.appId}, req.query);
  gplay.similar(opts)
    .then((apps) => apps.map(cleanUrls(req)))
    .then(toList)
    .then(res.json.bind(res))
    .catch(next);
});