Philippe Massicotte

Results 132 comments of Philippe Massicotte
trafficstars

I never thought it would be useful to export the payload, but why not. In fact, we are exporting a list that contains various element. Maybe we could also export...

This is also what Google Trends returns: https://trends.google.com/trends/explore?date=2019-12-31%202020-11-01&geo=US&q=charles%20jones ![image](https://user-images.githubusercontent.com/4519221/165522597-3084475a-0d71-483e-90b0-e5fabb51d1eb.png)

Try to compare what Google returns and what we return. If they are the same, then we can't do anything about it.

For **adidas nike**: ``` https://trends.google.fr/trends/api/widgetdata/multiline/csv?req=%7B%22time%22%3A%222017-10-09%202018-10-09%22%2C%22resolution%22%3A%22WEEK%22%2C%22locale%22%3A%22fr%22%2C%22comparisonItem%22%3A%5B%7B%22geo%22%3A%7B%22country%22%3A%22FR%22%7D%2C%22complexKeywordsRestriction%22%3A%7B%22keyword%22%3A%5B%7B%22type%22%3A%22BROAD%22%2C%22value%22%3A%22adidas%20nike%22%7D%5D%7D%7D%5D%2C%22requestOptions%22%3A%7B%22property%22%3A%22%22%2C%22backend%22%3A%22IZG%22%2C%22category%22%3A0%7D%7D&token=APP6_UEAAAAAW73qeTVfoh22C1H8OdqRY0ZrVheexeI6&tz=240 "https://trends.google.fr/trends/api/widgetdata/multiline/csv?req={\"time\":\"2017-10-09 2018-10-09\",\"resolution\":\"WEEK\",\"locale\":\"fr\",\"comparisonItem\":[{\"geo\":{\"country\":\"FR\"},\"complexKeywordsRestriction\":{\"keyword\":[{\"type\":\"BROAD\",\"value\":\"adidas nike\"}]}}],\"requestOptions\":{\"property\":\"\",\"backend\":\"IZG\",\"category\":0}}&token=APP6_UEAAAAAW73qeTVfoh22C1H8OdqRY0ZrVheexeI6&tz=240" ``` For **adidas+nike**: ``` https://trends.google.fr/trends/api/widgetdata/multiline/csv?req=%7B%22time%22%3A%222017-10-09%202018-10-09%22%2C%22resolution%22%3A%22WEEK%22%2C%22locale%22%3A%22fr%22%2C%22comparisonItem%22%3A%5B%7B%22geo%22%3A%7B%22country%22%3A%22FR%22%7D%2C%22complexKeywordsRestriction%22%3A%7B%22keyword%22%3A%5B%7B%22type%22%3A%22BROAD%22%2C%22value%22%3A%22adidas%22%7D%2C%7B%22type%22%3A%22BROAD%22%2C%22value%22%3A%22nike%22%7D%5D%2C%22operator%22%3A%22OR%22%7D%7D%5D%2C%22requestOptions%22%3A%7B%22property%22%3A%22%22%2C%22backend%22%3A%22IZG%22%2C%22category%22%3A0%7D%7D&token=APP6_UEAAAAAW73qU3c1t3b3IFZbUaIT2j4mBKJB2BCD&tz=240 "https://trends.google.fr/trends/api/widgetdata/multiline/csv?req={\"time\":\"2017-10-09 2018-10-09\",\"resolution\":\"WEEK\",\"locale\":\"fr\",\"comparisonItem\":[{\"geo\":{\"country\":\"FR\"},\"complexKeywordsRestriction\":{\"keyword\":[{\"type\":\"BROAD\",\"value\":\"adidas\"},{\"type\":\"BROAD\",\"value\":\"nike\"}],\"operator\":\"OR\"}}],\"requestOptions\":{\"property\":\"\",\"backend\":\"IZG\",\"category\":0}}&token=APP6_UEAAAAAW73qU3c1t3b3IFZbUaIT2j4mBKJB2BCD&tz=240" ``` Looking at the decoded URL, the interesting part is: ``` {\"keyword\":[{\"type\":\"BROAD\",\"value\":\"adidas\"},{\"type\":\"BROAD\",\"value\":\"nike\"}],\"operator\":\"OR\"} ``` One would...

Also the "quoted" case of **"adidas nike"**: ``` https://trends.google.fr/trends/api/widgetdata/multiline/csv?req=%7B%22time%22%3A%222017-10-09%202018-10-09%22%2C%22resolution%22%3A%22WEEK%22%2C%22locale%22%3A%22fr%22%2C%22comparisonItem%22%3A%5B%7B%22geo%22%3A%7B%22country%22%3A%22FR%22%7D%2C%22complexKeywordsRestriction%22%3A%7B%22keyword%22%3A%5B%7B%22type%22%3A%22PHRASE%22%2C%22value%22%3A%22adidas%20nike%22%7D%5D%7D%7D%5D%2C%22requestOptions%22%3A%7B%22property%22%3A%22%22%2C%22backend%22%3A%22IZG%22%2C%22category%22%3A0%7D%7D&token=APP6_UEAAAAAW73sT2fGMYWP73FEj12B2R9DyIRc0y5l&tz=240 "https://trends.google.fr/trends/api/widgetdata/multiline/csv?req={\"time\":\"2017-10-09 2018-10-09\",\"resolution\":\"WEEK\",\"locale\":\"fr\",\"comparisonItem\":[{\"geo\":{\"country\":\"FR\"},\"complexKeywordsRestriction\":{\"keyword\":[{\"type\":\"PHRASE\",\"value\":\"adidas nike\"}]}}],\"requestOptions\":{\"property\":\"\",\"backend\":\"IZG\",\"category\":0}}&token=APP6_UEAAAAAW73sT2fGMYWP73FEj12B2R9DyIRc0y5l&tz=240" ``` But it looks like we can do it already: ``` r library(gtrendsR) res

Most likely not related to the package.

Hi @Dantferno. Not at the moment, but that would be a great addition to make.

This is an interesting feature. I will try to dig into it.