How to audit a site with millions of URLs

A step-by-step method for auditing very large sites: segment URLs by template and market, sample first, control rendering and crawl load, and track change.

By Seopaca team · · 6 min read

Paca the alpaca inspecting a large grid of web pages through a magnifying glass

To audit a site with millions of URLs, stop treating it as one site. Group URLs by template and market, crawl a sample of each group first, and run full crawls only where the sample shows a need. Then rank issues by how many URLs each template affects and how much those pages matter, and compare every crawl with the last one so you can see what changed.

Say your site has 3 million URLs across 12 templates and 8 country markets. A full rendered crawl could take days and load your servers. Most technical issues live in templates, so a few thousand well-chosen URLs often reveal the same problems much faster.

What do you need before you start?

  • Data access: server or CDN logs for at least 30 days, all XML sitemaps, Google Search Console and Bing Webmaster Tools exports, and analytics data for landing pages.
  • A template list: ask the CMS or engineering team which page types exist and how to recognize each one.
  • A crawler that scales: it should crawl URL lists, render JavaScript when needed and export to CSV or a database.
  • Agreement with infrastructure: crawl windows, rate limits, and the user agent and IP addresses you will crawl from, so bot protection does not block you halfway through.

How do you audit a very large site, step by step?

1. Build a URL inventory from several sources

No single source lists every URL. Combine sitemaps, URLs from logs, analytics landing pages, Search Console exports and a CMS or product database export.

Normalize before you count. Lowercase the host, strip tracking parameters, apply one trailing slash rule and remove duplicates. Then flag each URL by source. URLs that appear in logs but not in sitemaps can point to orphan pages or crawl traps. URLs in sitemaps that bots never request can point to weak internal linking.

2. Segment URLs by template and market

Map URL patterns to templates with regular expressions. Keep the rules under version control so every audit uses the same ones.

# Segment rules: first match wins, group 1 captures the market
^/([a-z]{2}-[a-z]{2})/p/[^/]+$              product
^/([a-z]{2}-[a-z]{2})/c/[^/]+(/[^/]+)*$     category
^/([a-z]{2}-[a-z]{2})/search                internal-search
^/([a-z]{2}-[a-z]{2})/guides/[^/]+$         article
^/([a-z]{2}-[a-z]{2})/stores/[^/]+$         store-page
.*                                           unclassified

Market segments also make international checks easier, because hreflang problems tend to repeat across every page of a template in a market. Our hreflang audit checklist for sites with many country versions covers those checks.

When the URL does not reveal the template, ask engineering to add a small marker to the HTML, such as a meta tag or data attribute that names the template. Watch the unclassified bucket. If it is large, you have templates nobody told you about.

The result is a matrix of templates and markets with a URL count in each cell. In our example, that is 12 templates across 8 markets, or 96 segments.

3. Crawl a sample before any full crawl

Take a random sample from each segment, plus the top pages by traffic or revenue. In our example, 200 random URLs per segment gives 19,200 URLs, which a crawler can finish in hours.

Random sampling matters, because popular pages are usually the best maintained. Check status codes, canonical tags, robots meta tags, hreflang, titles, structured data, internal links and page weight.

Then read the pattern. An issue on nearly every sampled product page is a template issue with one fix. An issue on a handful of pages is a data or content issue with a different owner.

4. Decide where you need JavaScript rendering

Fetch each sampled URL twice: once as raw HTML and once rendered. Compare titles, canonical tags, links, main content and structured data between the two.

Templates where both versions match can be crawled without rendering, which is much faster. Templates where key elements appear only after JavaScript runs need rendered crawls, and the gap itself is a finding. Google renders pages, as its JavaScript SEO basics guide explains, but many other crawlers, including some AI crawlers, may read only the raw HTML.

5. Set crawl limits and politeness rules

A crawl that slows the site for real users will be stopped. Agree these rules with your infrastructure team first:

  • Start at a low request rate and raise it slowly while you watch server response times.
  • Crawl during low-traffic hours for each market’s time zone.
  • Identify your crawler with a clear user agent and fixed IP addresses.
  • Follow robots.txt on production, as described in RFC 9309, unless you have agreed an exception.
  • Set stop conditions, such as pausing when server errors rise or median response time doubles.
  • Exclude known traps: endless filter combinations, calendars, session parameters and internal search results.

The math shows why sampling comes first. At 5 requests per second, 3 million URLs take 600,000 seconds, or almost 7 days of nonstop crawling.

6. Run full crawls by segment

Crawl one segment at a time. Give full crawls to templates with many sample issues, high value or unclear results. Low-risk templates can stay on sampling.

Store results in a database or data warehouse with the normalized URL, segment, market and crawl date as keys. This makes the comparisons in step 8 simple queries.

7. Prioritize issues by template impact

Raw issue counts mislead. Score each issue by affected URLs, page value and severity. Here is a hypothetical example:

Issue Template Affected URLs Value (1-3) Severity (1-3) Score
Canonical points to a redirecting URL Product, all markets 900,000 3 3 8,100,000
Missing hreflang return links Category, 8 markets 240,000 3 2 1,440,000
Internal search pages indexable Internal search 400,000 1 2 800,000
Article schema missing author Article 30,000 2 1 60,000

Value comes from traffic, revenue or strategic importance. Severity runs from 3 (blocks indexing or sends wrong signals) to 1 (cosmetic). One fix in the product template corrects 900,000 URLs, so it goes first.

Write one ticket per template issue with sample URLs, evidence, the expected result and how you will verify the fix.

8. Track change between crawls

Keep segment rules, crawler settings and a fixed panel of sample URLs the same between crawls, and add a fresh random sample each time. Then compare:

  • Status code changes, new redirects and new errors.
  • New noindex tags or changed canonical tags.
  • Title and heading changes on templates nobody planned to touch.
  • Lost internal links and new or removed URLs per segment.

Line these diffs up with the release calendar. Sudden changes on large sites often trace back to a deploy, which is why release checks belong in your enterprise SEO governance checklist. Logs complete the picture by showing which segments bots actually request, as covered in how to read AI crawler activity in your server logs.

What are the most common mistakes?

  • Crawling everything first and segmenting afterwards.
  • Reporting issue counts instead of template impact.
  • Getting blocked by your own bot protection in the middle of a crawl.
  • Changing crawler settings between crawls, so every diff is noise.
  • Ignoring the unclassified bucket.

How does the audit fit into the wider program?

An audit is useful when it changes what ships. Feed template scores into the engineering backlog and report progress as fixed URLs per template. Technical fixes cover only part of the picture, though. Pages can be crawlable and indexed and still lose clicks as their content ages, so pair the audit with our guide on how to find and fix content decay on a large site.

Seopaca’s site audit is built around this segment-first method, with template rules, sampling and crawl comparisons in one place. For background on crawl capacity, read Google’s guide to managing crawl budget for large sites.

Frequently asked questions

How many URLs should I sample per template when auditing a large site?

Start with a few hundred random URLs per template in each market, plus the pages with the most traffic. That is usually enough to tell a template problem from a page problem. Increase it for templates with very mixed content and for segments where the first results are unclear.

How often should you crawl a site with millions of URLs?

Crawl a fixed sample of every template weekly or after each release, and run full crawls of high-value templates monthly or quarterly. The right rhythm depends on how often templates change. Sites with frequent releases benefit most from small, regular sample crawls that catch problems within days.

Should I crawl production or staging during a large audit?

Use both. Crawl production to see what search engines and AI crawlers actually get, with rate limits agreed with your infrastructure team. Crawl staging before releases to catch template problems early. Staging data and settings often differ, so confirm key findings on production.

Does Google crawl every URL on a very large site?

Not necessarily. Google decides how much to crawl based on what your servers can handle and how much demand it sees for your content. On very large sites, low-value or duplicate URLs can draw crawl activity away from important pages. Google's crawl budget guide explains how to manage this.

Site auditCrawlingLarge sitesTemplates

Audit your largest sites by template and market

Site Audit and Log Analysis show what breaks, where crawlers spend their time and which fix matters most. Access is by application, and we review every request case by case.