Competitor Content Gap Analysis with AI: A Weekly Sitemap Check

A real sitemap gap check against Search Engine Journal, a script that spots new pages each week, and a tool that builds your own topic table.
Competitor content gap analysis: a person checking a weekly chart of new competitor pages Competitor content gap analysis: a person checking a weekly chart of new competitor pages

A content gap check compares the topics another site covers with the topics you cover. You do not need paid software for a first pass. Every site that publishes a sitemap has already listed its pages in one public file.

This guide shows a check we actually ran, gives you a short script that spots new pages each week, and gives you a small tool that turns two URL lists into a topic table. AI helps at the end, once you have real numbers to give it.

From our own run, 10 November 2026. We read the public sitemap files of Search Engine Journal (166 recent page addresses) and of this site (570) and counted pages by topic. The biggest gap was paid search and ads: about 13% of their recent pages against about 1% of ours. We also ran the watch script from this guide on their sitemap: it reported 0 new addresses on a repeat run and found the 3 we had deleted from the saved list.

So treat a gap as a question to test, not a plan. The rest of this guide shows how.

It tells you where another site publishes more than you do. It does not tell you that a topic is worth writing about. A gap can mean a missed opportunity, or it can mean the other site serves readers you do not want.

Treat every gap as a question to test. We cover how to test one further down.

What did our own run find?

Method. We read the public sitemap files of Search Engine Journal and of this site. For Search Engine Journal we used the three newest post sitemap files, which held 166 page addresses. For this site we used all three post sitemaps, which held 570. We took the last part of each address, the slug, as a rough title. Then we counted how many slugs matched each of eleven topics and compared the share each topic takes.

The gap is the other site’s share minus ours, in percentage points. A positive gap means they publish proportionally more on that topic.

TopicSearch Engine Journal (166)This site (570)Gap, points
Paid search and ads21 (12.7%)6 (1.1%)+11.6
Social and video11 (6.6%)7 (1.2%)+5.4
ChatGPT and OpenAI14 (8.4%)21 (3.7%)+4.7
Technical SEO, crawling, indexing15 (9.0%)30 (5.3%)+3.8
Search updates and spam8 (4.8%)16 (2.8%)+2.0
AI Overviews and AI Mode8 (4.8%)22 (3.9%)+1.0
Local SEO0 (0%)11 (1.9%)-1.9
Schema and structured data0 (0%)15 (2.6%)-2.6
Ecommerce5 (3.0%)40 (7.0%)-4.0
Links and backlinks0 (0%)27 (4.7%)-4.7
Content quality and E-E-A-T5 (3.0%)61 (10.7%)-7.7

What we read from it. The biggest gap was paid search and ads, with about 13% of their recent pages against about 1% of ours. Social and video came next. Topics where we publish more than they do, such as content quality and links, show as negative.

What it does not tell you. It does not show traffic, rankings or demand. The two sets also cover different periods: theirs is the pages in their three newest sitemap files, and ours is everything we have published. Search Engine Journal is also a news publisher, so its mix leans towards news. Slug matching is rough too, because a slug can name a topic without being about it. We did not check whether any gap is worth filling.

How do you automate the weekly part?

Searching by hand each week is slow. A short script can do the repeat work: download a sitemap, remember the list, and print only the addresses that are new since last time. It uses nothing but Python’s standard library.

Python script: sitemap_watch.py

"""Print URLs that are new in a sitemap since the last run. Run it weekly."""
import re, sys, json, os, urllib.request

SITEMAP = sys.argv[1]            # a sitemap or sitemap index URL
STATE = sys.argv[2]              # a file name where the last list is saved

def get(url):
    req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0 (sitemap-watch)"})
    return urllib.request.urlopen(req, timeout=30).read().decode("utf-8", "replace")

def locs(xml):
    return re.findall(r"<loc>\s*(.*?)\s*</loc>", xml)

found = set()
for u in locs(get(SITEMAP)):
    if u.endswith(".xml"):            # a sitemap index: open each child file
        found.update(locs(get(u)))
    else:
        found.add(u)

old = set(json.load(open(STATE))) if os.path.exists(STATE) else None
json.dump(sorted(found), open(STATE, "w"))
if old is None:
    print("First run: saved", len(found), "URLs as the baseline.")
else:
    new = sorted(found - old)
    print(len(new), "new URLs since last run")
    for u in new:
        print(u)

How do you build the table for your own site?

Paste the addresses from a competitor’s sitemap in the first box and yours in the second. The third box holds your topic rules, one per line. A word ending in a star matches any word that starts that way. The tool builds the table above for your lists. It runs in your browser and sends nothing anywhere.

Topic gap table builderaiseojournal.net

Paste another site's page addresses and your own. The tool takes the last part of each address as a rough title, counts matches for each topic rule, and shows each site's share and the gap.

Paste both lists and press Build the table.
Everything runs in your browser. Nothing you paste is sent anywhere. aiseojournal.net

What is the whole process?

The steps below are the order we would follow. You can zoom and pan the picture, or expand it. The same steps are written out under the graphic.

A weekly competitor content gap checkSix steps in a snake layout, read left to right then down. The same steps are written out below the graphic.aiseojournal.netA weekly competitor content gap check1. Pick your comparison sitesChoose 3 to 5 sites your readers also use.Check their robots.txt and terms.2. Download their sitemapsOpen the public sitemap index and fetch onlythe newest post files.3. Turn addresses into topicsUse the slug as a rough title and count matchesagainst your topic rules. The tool does this.4. Compare sharesTheir share minus yours, in points. Note thedifferent time periods.5. Test every gapCheck your own site, Search Console and realsearch phrases before you write anything.6. Re-run every weekRun the watch script. Read only the addressesthat are new since last time.Sources: Google sitemaps overview; Google build-a-sitemap guide; sitemaps.org protocolaiseojournal.net
Read the workflow as text
  1. 1. Pick your comparison sites Choose 3 to 5 sites your readers also use. Check their robots.txt and terms.
  2. 2. Download their sitemaps Open the public sitemap index and fetch only the newest post files.
  3. 3. Turn addresses into topics Use the slug as a rough title and count matches against your topic rules. The tool does this.
  4. 4. Compare shares Their share minus yours, in points. Note the different time periods.
  5. 5. Test every gap Check your own site, Search Console and real search phrases before you write anything.
  6. 6. Re-run every week Run the watch script. Read only the addresses that are new since last time.
Built from the steps in this article.aiseojournal.net

Where does AI help?

AI is useful once you have a table. It can suggest what a gap might mean and draft questions for you to test. It cannot see search demand, so it should not rank the gaps. Paste your table into Claude with this prompt.

Gap table prompt for Claude
You are an SEO analyst.
Below is a topic table that compares another site's recent pages with my site's pages.
Columns: topic, their count and share, my count and share, gap in percentage points.

[PASTE THE TABLE HERE]

Rules:
1. Take the three largest positive gaps.
2. For each, give two possible reasons the gap exists, for example the other site's audience, its news focus or my own choices.
3. For each, write two questions I should test before I write anything, and name where to test them: my own site, Search Console, autocomplete or Keyword Planner.
4. Do not rank the gaps by traffic or demand. You have no search data.
5. Do not invent figures. Keep each answer under 80 words.

What do you do with a gap?

Test it before you write anything. Work through these in order.

  1. Check your own site first. Search for the topic on your site. You may already have a post that needs updating. Our brief overlap checker does this for a list of ideas.
  2. Look at what you already show for. Search Console shows the queries your pages appear for. If you show for the topic with no page aimed at it, that is a strong sign.
  3. Find the real phrases. Our long-tail keyword guide shows how to turn a topic into phrases and check them against autocomplete.
  4. Group by intent. One page per question, not one page per phrase. See keyword mapping.
  5. Decide if the topic fits you. A gap in paid search is not a reason to start covering it if your readers do not care.

What mistakes should you avoid?

  • Copying topics because a bigger site has them. Their readers are not yours.
  • Reading a gap as demand. The table shows what they publish, not what people search for.
  • Comparing different periods without saying so. We flagged ours. Do the same.
  • Trusting lastmod as a publish date. It is a modification date.
  • Fetching too much, too often. Sitemaps are public, but pull only the files you need and run the check weekly, not hourly.

A note on the earlier version of this guide. It promised automated weekly reports and quoted time-saving and accuracy figures. When we rebuilt it in November 2026 we could not trace those figures to a source we could open, so we removed them. Everything numeric above comes from our own run or from the pages listed below.

Common questions

Sitemaps are public files meant to be read by search engines and tools. Check the site’s robots.txt and terms, fetch only the files you need, and keep the number of requests low.

No. It lists the pages the site chooses to include. Google says a sitemap helps search engines find pages but does not guarantee they are crawled or indexed.

Not reliably. The date shows when a page last changed in a way the site thought significant. Compare saved lists of addresses instead, as the script in this guide does.

It can help you read a table and draft questions. It has no live search data, so it cannot tell you which gaps have demand. Check demand in Search Console and your keyword tools.

Sources

All three pages were opened on 10 November 2026. Our own run used the public sitemap files of Search Engine Journal and of this site, fetched on 10 November 2026.

  1. Google Search Central — Learn about sitemaps
  2. Google Search Central — Build and submit a sitemap
  3. sitemaps.org — Sitemaps XML format
14 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use