Closed CallMeCreadev closed 6 years ago
@joddes were you able to figure it out? If you check examples.js there is one in there that you might find helpful. For example, this should return results for the last two days:
googleTrends.interestOverTime({
keyword: 'Valentines Day',
startTime: new Date(Date.now() - (2 * 24 * 60 * 60 * 1000)),
granularTimeResolution: true,
}, function(err, results) {
if (err) console.log('oh no error!', err);
else console.log(results);
});
any solution how to get the last two days of google trends data?
this issue should be reopened
Its not working for me too ! I've tested PHP api and those are not working too !
@pat310 the example code doesn't work for me and I have working code for several weeks now when using longer time spans
Do you have a working example of that example code?
this comment did the trick, thanks pat
https://github.com/pat310/google-trends-api/issues/103#issuecomment-443529252
Hi how did you solved this? Have the same problem..:)