Sitemap XML Validator & Release Diff
Pricing
from $150.00 / 1,000 sitemap audit reports
Sitemap XML Validator & Release Diff
Validate sitemap XML, find duplicate URLs, and catch removed URLs before publishing. Optional live URL status checks.
Pricing
from $150.00 / 1,000 sitemap audit reports
Rating
0.0
(0)
Developer
ReleaseWatch Tools
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
36 minutes ago
Last modified
Categories
Features
Share
Validate a sitemap, find duplicate URLs, and catch removed URLs before you publish. Paste the XML or give a public sitemap address. Optionally compare with the previous sitemap (baseline) and check that every URL still answers with a healthy HTTP status.
Typical use: run it in CI or on a schedule before/after a site release, so a broken or half-empty sitemap never reaches search engines.
What it checks
- Well-formed XML, root
<urlset>or<sitemapindex>in the standard namespace (DTD/entity declarations are rejected). - Each
<loc>: exactly one, absolute http(s) URL, valid host, shorter than 2,048 characters, no spaces, no credentials, no#fragment; single host per sitemap. WithsitemapUrlthe reference host is the host of that address after redirects (example.com/sitemap.xmlredirected towww.example.com/sitemap.xmluseswww.example.com), so the result does not depend on the order of the entries; with pastedsitemapXmlit is the host of the first valid entry. Entries on any other host areMIXED_HOSTerrors (they are not requested bycheckUrls, but they still count in the baseline diff). - Duplicate URLs (each repeat after the first is reported).
lastmod(W3C date/datetime),changefreq(standard values),priority(0.0–1.0). Extension elements (image, news, video) are ignored.- Baseline diff: URLs added and URLs removed compared with the previous sitemap. Every valid address of both files is compared, whatever its host, so an address that is in both files is never reported as removed (even if it is
MIXED_HOST). If the two files have no host in common (for example the site moved towww.), every address is listed as removed and added and aDIFF_HOST_CHANGEDwarning says why. - Sitemap index: pass a URL and the Actor follows up to 50 child sitemaps (
.xml.gzsupported) and checks them as one. - Optional URL status check (
checkUrls): HEAD (GET if HEAD fails) on each URL of the sitemap's own host (the reference host above); URLs on another host are never requested or billed and are counted once per unique address inurlCheck.skippedOtherHost; reports 4xx/5xx, redirects and timeouts. Max 5 concurrent requests, at most 5 requests per second per host.
Input
| Field | Description |
|---|---|
sitemapXml or sitemapUrl | Exactly one is required. |
baselineXml or baselineUrl | Optional previous sitemap. |
followIndex | Follow child sitemaps of an index URL (default true). |
maxReportItems | 0–200, default 100. Caps each list in the report; totals stay exact. |
checkUrls | Default false. Billed per URL checked. |
maxUrlsToCheck | 1–5000, default 500. |
{"sitemapUrl": "https://example.com/sitemap.xml","baselineUrl": "https://example.com/sitemap-previous.xml","checkUrls": true,"maxUrlsToCheck": 200}
Output
One dataset item per run:
{"schemaVersion": 1,"documentType": "urlset","passed": false,"entries": 3,"uniqueValidLocations": 2,"errorCount": 1,"warningCount": 0,"issues": [{"code": "DUPLICATE_LOC", "severity": "error", "entry": 3,"message": "Same URL as an earlier entry.", "firstEntry": 1}],"issuesTruncated": false,"diff": {"addedCount": 1, "removedCount": 1,"addedSample": ["https://example.com/new-page"],"removedSample": ["https://example.com/old"],"truncated": false},"urlCheck": null,"sitemapsFetched": 0}
passed is true only when there are no errors (URL problems from checkUrls count; redirects are warnings). Added/removed URLs are reported in diff and do not change passed. uniqueValidLocations counts the unique valid URLs on the reference host (the ones checkUrls may request); diff compares the unique valid URLs of every host. Issues about a child sitemap of an index also carry indexEntry (its position in the index) and, for download errors, httpStatus. Issue codes: MISSING_LOC, MULTIPLE_LOC, EMPTY_LOC, INVALID_LOC, DUPLICATE_LOC, MIXED_HOST, INVALID_LASTMOD, INVALID_CHANGEFREQ, INVALID_PRIORITY, SUBSITEMAP_FAILED, SUBSITEMAP_NESTED_INDEX, INDEX_TRUNCATED, INDEX_NO_VALID_CHILD, DIFF_HOST_CHANGED (warning), URL_HTTP_ERROR, URL_REDIRECT, URL_TIMEOUT, URL_UNREACHABLE.
Pricing (pay per event)
| Event | Price |
|---|---|
| Sitemap audit report (once per run, after the report is saved) | $0.15 |
URL status check (per URL actually checked, only with checkUrls) | $0.001 |
You are not charged when the input is invalid, the download fails, or the report cannot be saved.
Sitemap index (followed from sitemapUrl/baselineUrl). Each <loc> of the index is validated first: entries that are not valid http(s) addresses (for example ftp://… or relative paths) are INVALID_LOC, missing or empty <loc> are MISSING_LOC/EMPTY_LOC; they are never requested and never billed.
- Current sitemap: problems are kept in the report. Child sitemaps that cannot be downloaded or parsed are
SUBSITEMAP_FAILEDissues, nested indexes areSUBSITEMAP_NESTED_INDEXwarnings, and the valid children are still checked. If the index has no child that can be checked (every<loc>is invalid, the index is empty, or every child is a nested index), the report is still saved and charged, with the item-level issues plusINDEX_NO_VALID_CHILD, andpassedisfalse. If the index has valid child addresses but every one of them fails to download or parse (404, timeout, not XML…), that is a download failure: the run stops with an error naming the number of children and the HTTP status, and nothing is saved or charged. - Baseline: if any child cannot be read (404, timeout, nested index, invalid, relative, missing or empty address, invalid
lastmod, more than 50 children, or no child at all), the run stops with an error before anything is compared, saved or charged, because a diff against a partial baseline would be wrong.
Valid http(s) URLs that the network policy forbids (private/local network addresses) are never requested: they are counted in urlCheck.skippedByPolicy (only after passing the address-format check), are not in checked, are not billed and use none of the cost budget.
Logs and run status never contain text from your input — no URLs, host names, namespaces, lastmod/changefreq/priority values or XML content. Error messages are fixed English text plus, at most, the field name, issue code, entry or child number, XML line/column, size limits and HTTP status (for example INVALID_LASTMOD (index entry 1) or SUBSITEMAP_FAILED (index entry 2, HTTP 404)); as a final safeguard anything URL-like and your input addresses/host names are removed before logging. The saved report (your dataset) does contain the URLs and invalid values so you can fix them.
Set a maximum cost per run: URL checking stops when the limit is reached and the report is built from what was checked. Platform usage costs are included.
Limits
- Pasted XML: 2 MiB in total (sitemap + baseline), 10,000 entries per document. Downloads: 10 MiB each (also after gunzip), 30 s timeout, up to 50 child sitemaps (merged limit 50,000 entries).
- Only public http(s) addresses; private/local network addresses are refused. The connection goes only to the verified public IP, HTTPS certificates and host names are verified, every redirect target is re-checked, and environment proxies are ignored.
- Not supported: TXT/RSS/Atom sitemaps, full XSD validation, JavaScript rendering.
- The Actor never logs the XML content.
FAQ
Does it crawl my site? No. It only reads the sitemap(s) you give it, and with checkUrls sends a HEAD/GET to the listed URLs of the same host (identified by the User-Agent sitemap-release-check).
My sitemap is served from another host than its pages (e.g. a staging copy listing production URLs). With sitemapUrl every entry is then MIXED_HOST (search engines also reject a sitemap that lists another host), passed is false and checkUrls requests none of them. The diff is still correct: it compares every address of both files, so unchanged pages are not "removed" and new pages are "added". To check the pages as well, paste the file into sitemapXml: the host of the first entry is then the reference. A redirect is fine: if example.com/sitemap.xml redirects to www.example.com/sitemap.xml, www.example.com is the reference host (every redirect target is checked to be a public address first). baselineUrl can live on any host; entries of the baseline on several hosts do not stop the run.
Why did my run fail with "Input error"? The message says what to fix: malformed XML (with line/column), missing input, both XML and URL given, a baseline that has its own errors or cannot be read completely, a sitemap index whose child sitemaps all failed to download, or a size limit.
Can I use it in CI? Yes, via the Apify API: start a run, read the dataset item, and fail the build when passed is false or diff.removedCount is higher than you expect.
What if the baseline has errors or is only partly downloadable? The run stops with an error asking you to fix the baseline first, so diffs are never based on a broken or partial file. Nothing is saved or charged in that case.