pytrends icon indicating copy to clipboard operation
pytrends copied to clipboard

How to fetch data for a keyword as a Company rather than a Keyword?

Open igalci opened this issue 4 years ago • 1 comments

In the Google Trends auto-suggest, it offers to fetch the data for a keyword as a "keyword", "company", "topic", etc...

Is this possible with this API too? How to do that?

igalci avatar Oct 27 '20 17:10 igalci

Yes, it is possible. You can use the website to get the topic's ID. Simply search for your topic and choose the appropriate item. You should see something like %2Fg%2F11c0vm752r in the URL which you must translate to keywords = ["/g/11c0vm752r"]. See #423 for an example.

flxai avatar Nov 26 '20 19:11 flxai