0

This is quite related to Why google retrieves different info to scrapers, but not a dupe.

Basically, we have some team members from Sao Paulo (Brazil) and some team members from Rio de Janeiro (Also Brazil). We are trying to query the following data/URL: https://trends.google.com/trends/explore?q=BCO%20ITAU&geo=BR&date=2022-11-20%202022-12-20

Basically, this URL shows different data when comparing people in networks from Sao Paulo and people in networks from Rio de Janeiro. This is also affected by VPN.

Our embed also has differences (as noted in Google Trends), but is also affected by the USER_TYPE_LEGIT_USER/USER_TYPE_SCRAPER described in Why google retrieves different info to scrapers

Here's a reproducible example (we use the same code as Google's embed suggests, but attaching to an element):

<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/3261_RC06/embed_loader.js"></script> <script type="text/javascript"> 
trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"BCO ITAU","geo":"BR","time":"2022-11-20 2022-12-20"}],"category":0,"property":""}, {"exploreQuery":"q=BCO%20ITAU&geo=BR&date=2022-11-20%202022-12-20","guestPath":"https://trends.google.com:443/trends/embed/"}); 
</script>

Is there a way (some kind of parameter) we can pass to the Google Trends' embed to solve this?

Alexander Santos
  • 1,458
  • 11
  • 22

0 Answers0