As I mentioned many times in my blog, Google Trends is a great market research tool. Unfortunately, there is no official Google Trends API that we can use to automate our queries.

The good news is that, given that G Trend is open, there are many unofficial libraries, like pytrends python library.

I’ve put together this script to get the top queries for “Marketing and Advertising,” in the US in the past 30 days:

Tweak the parameters in the script, and read the pytrends doc to run more advanced queries.

leocelis

Hi! My name is Leo Celis. I’m an entrepreneur and Python developer specialized in Ad Tech and MarTech.

read more