Questions tagged [gtrendsr]
52 questions
15
votes
3 answers
Login issue with gconnect() in gtrendsR package
I am trying to log into my Google account in R using gconnect() in the gtrendsR package, but am running into issues. I have been doing research using Google Trends data for the last month, and have never had a problem with this.
Please let me know…

Tim de Silva
- 314
- 1
- 13
6
votes
1 answer
gtrendsR geo MSA/Area Code
I am gathering Google Trends data using the R Package gtrendsR. I am trying to pull data for each metropolitan statistical area (MAS) but area code would also be good. So far I have only managed to get the state-level data. Here is the code for…

Rebecca
- 127
- 1
- 7
6
votes
1 answer
gtrendsR Error: widget$status_code == 200 is not TRUE
I work with the most recent version of devtools::install_github('PMassicotte/gtrendsR')
Until yesterday evening all was well. Then I got this error message:
Error: widget$status_code == 200 is not TRUE
code:
trend1 = gtrends("google", geo = c(""),…

nemja
- 459
- 4
- 19
4
votes
2 answers
Issues with gtrendsR queries
I am receiving two errors on gTrendsR searches. I attempted to use the package with both the CRAN download and devel version from https://github.com/PMassicotte/gtrendsR.
library(gtrendsR)
gconnect(usr, psw, verbose=TRUE)
#Google login…

Pierre L
- 28,203
- 6
- 47
- 69
3
votes
1 answer
gtrends Error Version 2: Error in interest_over_time(widget, comparison_item, tz) : Status code was not 200. Returned status code:401
I have been trying to pull Covid data from Gtrends but I am getting the following error:
I am using the grendsR package in R.
# google search for covid (week started XX - SUN): https://trends.google.com/trends/explore?geo=US-HI&q=covid
search_covid…

OGC
- 244
- 3
- 13
3
votes
0 answers
request for mass queries through gtrendsR: widget$status_code == 200 is not TRUE
I am currently working on retrieving mass queries from Google Trends through the package gtrendsr in R. In order to do that, I have first imported a list of words (454 words) as a CSV file in to R and initally declared a vector of these words…

D S Seon
- 63
- 4
3
votes
0 answers
gtrendsR gconnect authenticatePage2 gives error code 400
I try to connect from a Proxy-server and I could access gtrends data until mid last week in this way. Now I can still sign up through Internet Explorer, but not through gconnect. Google does not ask for any additional verification when connecting…

sebolus
- 41
- 4
2
votes
0 answers
Issue with being blocked when scraping google trends data
For a while we've been using https://github.com/PMassicotte/gtrendsR to pull Google trends data by keyword.
Our usual approach is to spin up a few different boxes, fire some requests, kill those boxes, then spin up others. We do this once a week.
We…

datacubed
- 189
- 1
- 10
2
votes
1 answer
Every 5 minutes get the google trend data
I would like to extract the google trend data through package "gtrendsR" every hour, I tried to use Sys.sleep() function to set the timer, however, it is failure for me to download it every hour. So, how do I correct my code in order to get the data…

peter
- 21
- 1
2
votes
0 answers
R getting daily google trends data
I am new to R and I'm trying to do a time-series analysis of Dogecoin and google searches (google trends) for dogecoin.
I have noticed, that when I use the gtrends package, that when I specify a timeframe that is longer than 90 days, I will only get…

Marcus
- 105
- 1
- 2
- 8
2
votes
0 answers
GtrendsR granular data download
I downloaded Google Trends data on a daily basis using the following code
trend = gtrends(c("google","apple"), geo= ("US-CA-803"), time = ("2017-09-01
2017-10-30")
write.csv(trend$interest_over_time, file= "
…

Harshita Singh
- 23
- 3
2
votes
1 answer
Obtain State Name from Google Trends Interest by City
Suppose you inquire the following:
gtrends("google", geo="US")$interest_by_city
This returns how many searches for the term "google" occurred across cities in the US. However, it does not provide any information regarding which state each city…

Rebecca
- 127
- 1
- 7
2
votes
0 answers
gtrendsR recently became slow?
We have a production system calling gtrendsR::gtrends() which typically returns in less than an second. Now we are getting ~ one minute response time. Example:
library(gtrendsR) ## Version 1.4.0
system.time(ret_gt <- gtrendsR::gtrends("skinny…

Jim Porzak
- 21
- 2
2
votes
1 answer
query and Request issues with gtrendsr
I have successfully logged in google account with
gconnect(usr,password)
But I got request problem when I want to query the data
gt.us <- gtrends("USA", geo="US", start_date="2004-01-01", end_date="2004-01-30")
Error: Not enough search volume.…

袁瑋成
- 21
- 2
2
votes
2 answers
Google Trends in R, error after few tries
I know similar questions have been asked before but I did not find what I was looking for.
I'm using R to pull google trend data
library(gtrendsR)
user <- "XXXXX@gmail.com"
psw <-…

Vaibhav
- 338
- 2
- 13