const googleTrends = require('google-trends-api'); const keyword = process.argv[2]; googleTrends.interestOverTime({ keyword: keyword, startTime: new Date('2023-01-01') }) .then(function(results) { console.log(results); }) .catch(function(err) { console.error(err); });