Semantic AI-powered SEO Keyword Research
- Getting your data – data sources run-through
- Module Overview: Entity-based Search and Brand Authority Building in the LLM Era
NEW: AI Search Optimisation and Agentic SEO Course by Beatrice Gamba -> Immediate start, on-demand learning for how to optimise for discovery in agentic search ✨ ✨
APIs
In shortAn unofficial Python library that pulls Google Trends data, such as interest over time, by region and related queries, into your own code.
PyTrends is an unofficial Python library for downloading data from Google Trends. Instead of copying charts from the Trends website, you request interest over time, interest by region, keyword suggestions and related queries in a few lines of code, which makes large or repeated research projects practical.
You create a connection object (TrendReq), build a payload with up to five keywords, a timeframe and a location, and then call methods such as:
interest_over_time() for the familiar trend line;interest_by_region() for country or sub-region breakdowns;related_queries() for top and rising related searches;suggestions() for entity suggestions, which return Google Trends topics.PyTrends works by calling the same internal endpoints the Trends website uses. There is no official contract behind it, so when Google changes the site, methods can break.
MLforSEO’s guide shows share of search in four lines: take the weekly interest for several competing brands and divide each by the combined total for that week. The result is each brand’s percentage of combined interest, a reasonable proxy for share of voice that you can plot as an area chart.