Sitemap Inventory Intel: URL Count, Freshness & Health avatar

Sitemap Inventory Intel: URL Count, Freshness & Health

Pricing

from $15.00 / 1,000 analysed sites

Go to Apify Store
Sitemap Inventory Intel: URL Count, Freshness & Health

Sitemap Inventory Intel: URL Count, Freshness & Health

Analyse any website's XML sitemaps and get one row per site: URL count, top sections, lastmod coverage, freshness bands, publishing velocity, hreflang languages, duplicates and a 0-100 sitemap health score. Public sitemaps, no login, no proxy.

Pricing

from $15.00 / 1,000 analysed sites

Rating

0.0

(0)

Developer

Sam

Sam

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Give this Actor a website and it reads the site's public XML sitemaps and returns one analysed row: how many URLs the site lists, which sections hold them, how much of it has a trustworthy last-modified date, how fresh or stale the content is, how fast the site publishes, which languages and media it declares, how many entries are duplicates, and a 0-100 sitemap health score. Use it for SEO audits, competitor content tracking, migration checks, lead research and feeding an AI agent a site profile instead of 50,000 raw URLs.

What you get for each site

FieldWhat it means
site, sitemapUrls, sitemapCountThe site and the sitemap files that were read (first 20 listed)
declaredInRobotstrue when robots.txt has a Sitemap: line. Otherwise the Actor tries /sitemap.xml, /sitemap_index.xml, /sitemap.xml.gz
urlCountDistinct URLs listed
duplicateUrlsEntries beyond the first for a URL already listed (scheme and host letter case are folded together; paths and query strings are compared as written)
offHostUrlsURLs that point to a different host than the site
topSections, sectionCountThe 10 biggest sections by first path segment, each with urls and pct, and the number of sections
lastmodCoveragePctShare of URLs that have a valid lastmod date
freshUnder30d, aged30to365d, staleOver365dURLs with lastmod less than 30 days old, 30 to 365 days old, and over 365 days old
staleSharePctstaleOver365d divided by URLs that have a lastmod, as a percent
updatedLast30d, updatesPerDay30dURLs added or updated in the last 30 days (a sitemap shows only the latest lastmod, so added and updated cannot be told apart), and that count divided by 30
newestLastmod, oldestLastmodThe date range of lastmod values
lastmodUniformtrue when over 90% of dated URLs share one lastmod date (ten or more dated URLs). Generators often stamp every URL with the build date, so freshness is not reliable
hasImageSitemap, hasVideoSitemap, hasNewsSitemapWhether any URL carries image, video or Google News extension tags
hreflangLanguages, hreflangUrlPctLanguage codes from xhtml:link hreflang tags (up to 50) and the share of URLs that have them
truncatedtrue when a file, URL or depth cap stopped the read. Counts then cover part of the site
sitemapHealth0-100 score, formula below
healthIssuesPlain-language reasons the score lost points

Sitemap health formula

sitemapHealth is the sum of five parts, rounded:

PartPointsHow
Discovery2020 when robots.txt declares the sitemap, 10 when it was only found at a standard path
Lastmod coverage2525 x lastmodCoveragePct / 100
Freshness2525 x (1 - staleSharePct / 100) x lastmodCoveragePct / 100; 0 when no URL has a lastmod
Cleanliness2020 x (1 - (duplicateUrls + offHostUrls) / urls listed), not below 0
Fetch success1010 x sitemap files read / sitemap files tried

When lastmodUniform is true, the coverage and freshness points are halved. Hreflang and media sitemaps are reported but do not change the score: not every site needs them.

Input

FieldDefaultNotes
siteUrlsone demo siteWebsites, or direct sitemap URLs ending .xml or .xml.gz
maxSitemapsPerSite30Sitemap files read per site, index files included. Each costs one request, about 0.6 s
maxUrlsPerSite50,000URL cap per site (up to 500,000)
includeUrlsfalseAlso write one row per URL to a separate named dataset urls
maxUrlRowsPerSite1,000Cap on URL rows per site
{ "siteUrls": ["https://www.sitemaps.org"], "maxSitemapsPerSite": 10 }

Output example

{
"site": "www.sitemaps.org",
"sitemapCount": 1,
"sitemapUrls": [
"https://www.sitemaps.org/sitemap.xml"
],
"declaredInRobots": true,
"urlCount": 84,
"duplicateUrls": 0,
"offHostUrls": 0,
"topSections": [
{
"section": "/da",
"urls": 4,
"pct": 4.8
},
{
"section": "/de",
"urls": 4,
"pct": 4.8
},
{
"section": "/en_GB",
"urls": 4,
"pct": 4.8
}
],
"sectionCount": 24,
"lastmodCoveragePct": 100.0,
"lastmodUniform": false,
"freshUnder30d": 0,
"aged30to365d": 0,
"staleOver365d": 84,
"staleSharePct": 100.0,
"updatedLast30d": 0,
"updatesPerDay30d": 0.0,
"newestLastmod": "2022-12-15",
"oldestLastmod": "2016-11-21",
"hasImageSitemap": false,
"hasVideoSitemap": false,
"hasNewsSitemap": false,
"hreflangLanguages": [],
"hreflangUrlPct": 0.0,
"truncated": false,
"sitemapHealth": 75,
"healthIssues": [
"100.0% of dated URLs were last modified over a year ago"
]
}

Per-URL rows (optional)

With includeUrls on, each URL also becomes a row in the named dataset urls: site, url, section, lastmod, ageDays, freshness (under_30d, 30_to_365d, over_365d or null), hasImage, hasVideo, isNews, hreflangLanguages. Find it in Storage > Datasets on the run. These rows are not charged; only the site rows in the default dataset are.

Pricing

Pay per event: you pay for each analysed site written to the default dataset, plus the standard Apify start event. See the Pricing tab. No proxy or browser is used. A site with ten sitemap files takes about ten seconds. A run that analyses no site fails, so you do not pay for an empty run.

How it works and limits

  • Sitemaps are found from Sitemap: lines in robots.txt, then standard paths. Sitemap index files are followed up to 3 levels deep; gzip files are supported. Only files on the site's own host are read.
  • The Actor checks robots.txt before every fetch, waits at least 0.6 s between requests, and stops on repeated HTTP 429 or 403. It never uses a proxy or evades blocks.
  • Sitemap files are read as XML with entity declarations refused, and size is capped at 60 MB per file after decompression. Private, local and non-public addresses are refused.
  • A sitemap lists what the site owner chose to list. It is not a crawl: pages missing from the sitemap are not counted, and lastmod is only as honest as the generator behind it.
  • A site that cannot be read (no sitemap, blocked, unreachable) is skipped with the reason in the run status message and in the SKIPPED record. The run only fails when no site could be analysed.

FAQ

Why is my health score low when the site is fine? The score rewards a sitemap that is declared, dated, fresh and clean. A site with no lastmod dates loses up to 50 points however good its content is. healthIssues lists the reasons.

Can I track a competitor's publishing speed? Yes. Schedule the Actor weekly and read updatedLast30d, urlCount and topSections.

Why does urlCount differ from the pages Google indexed? Sitemaps list submitted URLs, not indexed ones.