We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, so trying to run a simple example of getting "related topics" to a specific keyword in the last 24 hours.
My code looks like so:
//get relatedTopics for the last 24 hours const relatedTopics = await googleTrends.relatedTopics({ keyword: searchTerm, startTime: new Date(Date.now() - 24 * 60 * 60 * 1000), endTime: new Date(), }); console.log(`search_term ${searchTerm} raw result`, relatedTopics);
However, my results keep on coming blank like so:
It does look like it running the API call though as the raw JSON contains the "default" and "rankedList" params
Any idea as to what i'm doing wrong?
Thanks!
The text was updated successfully, but these errors were encountered:
Update - it works when i don't supply startTime and endTime.. any ideas? In meantime playing around w/ more
Sorry, something went wrong.
No branches or pull requests
Hey, so trying to run a simple example of getting "related topics" to a specific keyword in the last 24 hours.
My code looks like so:
However, my results keep on coming blank like so:
It does look like it running the API call though as the raw JSON contains the "default" and "rankedList" params
Any idea as to what i'm doing wrong?
Thanks!
The text was updated successfully, but these errors were encountered: