This is my continual error: Error in interest_over_time(widget, comparison_item, tz) : Status code was not 200. Returned status code:429

146 views Asked by At

I am currently trying to use gtrendsR but nothing will plot.

So far, this is what my code looks like:

trend <- gtrends("women in stem",
                 gprop = 'web',
                 geo = 'US',
                 time = "today+5-y",
                 onlyInterest = TRUE)

Sys.sleep(1)

plot(trend)

I also tried with an API key

trend <- gtrends("women in stem",
                 gprop = 'web',
                 geo = 'US',
                 time = "today+5-y",
                 onlyInterest = TRUE,
                 gkey = "YOUR_API_KEY")

I have tried the code without the sys.sleep. I have even tried basic gtrends code like gtrends(c("NHL", "NFL"), time = "now 1-H") and it gives me the same error. I tried them hours apart and shutting down R Studio but nothing seems to work. Is it my R Studio or is something else the matter? I want a graph of the google trends of the term "women in stem" over the past five years.

Thank you!

0

There are 0 answers