Keyword Cannibalization Checker: Search Console API Notebook + Sheets Report
Two of your pages showing up for the same query isn’t automatically a problem. Brand searches come with sitelinks, a product page and a guide can both have a job on a mixed-intent results page, and plenty of “competing” pages are a strong page with a weak one trailing on page two. This free Colab notebook uses your Search Console data to find the keyword cannibalisation that is worth fixing, and tells you what to do about each case.
Who it’s for
SEOs and content leads on content-heavy sites: blogs that have published the same topic more than once, shops with overlapping category and guide pages, or anyone about to merge pages and wanting evidence first.
How to use it
- Load your data. Pull query and page data, ideally by date, straight from the Search Console API (service account or your own Google account, both explained in the notebook), or upload an export from the API, Search Analytics for Sheets or the BigQuery bulk export. Run the synthetic sample first if you want to see the output.
- Merge URL variants. Jump links, tracking parameters and slash variants are folded into one page, so they don’t show up as rivals.
- Set your page types. Edit the URL rules that sort pages into home, product, company and resource pages.
- Find competing pages. The notebook lists queries where two or more pages each get a meaningful share of impressions. You set the thresholds.
- Check rotation. With dates, it shows which page led each day and how often the leader changed. Pages taking turns is the clearest sign of real cannibalisation.
- Review severity and actions. Each query gets a 0-100 severity score, a case label and a suggested action: consolidate, differentiate, internal-link or leave.
- Export. Download the Sheets-ready workbook and add your own decisions.
What you get
- A colour-coded report with one row per query: severity, case, suggested action, the page to keep and a blank Decision column
- Click and impression shares per page, position spread and rotation rate
- Page pairs that keep colliding, with shared queries and overlap
- Separate labels for brand and sitelink results, one clear winner, and different page types where search intent is probably mixed
- A day-by-day leader table, plus CSVs of every table
Limits and costs
The Search Console API is free. It returns the top rows rather than every row and leaves out anonymised queries, so some long-tail cases will be missing. The severity score and labels are heuristics built from URL patterns and Search Console numbers, so treat them as a shortlist and look at the live results page before you merge or redirect anything. Without the date dimension, rotation can’t be measured.
For duplicate titles and headings behind the overlap, pair it with the free On-page Duplication Analysis template. For fixes that need internal linking or a clearer intent per page, read my guide to search intent-first website architecture. Intent and clustering go deeper in the Semantic ML-enabled Keyword Research course.
What’s included
- Pulls query, page and date data from the Search Console API with pagination, or reads a CSV export
- Merges jump links, tracking parameters and slash variants so they don't look like competing pages
- Measures click and impression split, position spread and day-by-day rotation between pages
- Separates real cannibalisation from brand sitelinks, mixed-intent results and one clear winner
- Exports a colour-coded Sheets-ready workbook with a suggested action for every query
Where this resource is used on MLforSEO
Walkthroughs on the blog
More content audits resources
- OtherComprehensive Content Brief Template with Data Source Mapping for Semantic Keyword Research Implementation
- Coding Script or NotebookIdentifying Desired Content Formats & Platforms from SERP Data (Lab Notebook)
- Coding Script or NotebookFuzzy Booster: Match Top Search Console Queries to Titles, Metas and H1s
- Coding Script or NotebookScreaming Frog Custom Extraction Helper: Selector Tester and Dataset Cleaner
- Coding Script or NotebookFuzzy Matching for SEO in Python: Scorers, Redirects and Library Comparison
- Coding Script or NotebookBacklink Quality Audit Notebook: DataForSEO, Embeddings and Claude
See all 28 content audits resources →See all 15 search intent resources →See all 73 coding script or notebook resources →
