Query by Subnational Location
JYao10 opened this issue · 3 comments
Hi,
I am trying to get Google Search Volume at the subnational level, specifically, by EU subnational regions (https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts). How should I go about specifying geo in the following code? Right now geo is specified as GR (Greece), but I want to change it to subnational locations, such as Attiki in Greece. One way I have attempted is to get the location code from Google Knowledge Graph (/g/121g6trd) and stick it in there, but it does not seem to work. Any help is appreciated. Thanks!
gtrends(
keyword = "unemployment",
geo = "GR",
time = "2013-01-01 2022-12-31",
gprop = c("web", "news", "images", "froogle", "youtube"),
category = 67,
hl = "en-US",
compared_breakdown = FALSE,
low_search_volume = FALSE,
cookie_url = "http://trends.google.com/Cookies/NID",
tz = 0,
onlyInterest = TRUE
)
Why is it not working? Can you share the Google Trends link that represent the query you are trying to make?
The code works when geo == "GR", but it does not work when I try to specify geo as a subnational entity, such as geo = "Attiki" or geo = "/g/121g6trd". The web-based Google Trends link does not allow me to specify subnational regions (e.g., https://trends.google.com/trends/explore?geo=GR&q=unemployment&hl=en). Grateful for your advice if specifying subnational regions is at all possible. Thanks.
The web-based Google Trends link does not allow me to specify subnational regions
If Google does not let you do it, we can not either :)