Skip to content
New issue

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

Data by Canadian cities #461

Open
liliagarciamanrique opened this issue May 7, 2024 · 3 comments
Open

Data by Canadian cities #461

liliagarciamanrique opened this issue May 7, 2024 · 3 comments

Comments

@liliagarciamanrique
Copy link

I have been trying to get searches by Canadian cities using the CMA (Census Metropolitan Area) code.

I have also been trying to get results by writing the city's name, but it doesn't work. Here is my code:

res <- gtrends(c("EV"), geo = c("CA-AB-825"), time = "2018-01-01 2024-05-05" )
I keep getting the same if I use "CA-AB-Calgary
Error in get_widget(comparison_item, category, gprop, hl, cookie_url, : widget$status_code == 200 is not TRUE

If I look at the results in Google Trends, I see 23 cities displaying results that don't follow a CMA geography. And I can't find a DMA for Canada.

Is there a way to get results from Canadian cities?

@PMassicotte
Copy link
Owner

If you download the data directly from the website, do you have the data you are looking for?

@liliagarciamanrique
Copy link
Author

No, I only get trends for the province (Alberta). And I do get the information that $interst_by_city captures.

Will this mean I can retrieve no more detailed information (as in the US)?

@PMassicotte
Copy link
Owner

I am afraid, if the official tool is not providing such data, we can not either :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants