pat310 / google-trends-api

An API layer on top of google trends
https://www.npmjs.com/package/google-trends-api
MIT License
874 stars 174 forks source link

Not able to get data for most recent 2 days #132

Open bitcoinvsalts opened 4 years ago

bitcoinvsalts commented 4 years ago

I tried the following code but it does not return the last two days of data. any solution?

googleTrends.interestOverTime({
keyword: 'bitcoin',
startTime: new Date('2020-02-03'),
granularTimeResolution: true
})
.then(function(results){
  console.log('These results are awesome', results);
})
.catch(function(err){
  console.error('Oh no there was an error', err);
});