← Data tools on Apify

Apify

Sitemap Extractor & Sitemap URL Checker

Finds and parses all sitemaps of a website (robots.txt, sitemap indexes, gzip, text, RSS/Atom) and returns every URL with lastmod, hreflang and images. Optional check: status codes, redirects, noindex, canonical, robots.txt blocks.

Run on Apify

Highlights

  • Finds sitemaps for you – robots.txt first, then the common paths; soft-404 HTML pages are not mistaken for sitemaps.
  • All formats: XML urlset, sitemap index (nested too), gzip (by content, not only by file name), text, RSS 2.0 and Atom feeds.
  • Clean data: URLs are de-duplicated across all sitemaps, dates are normalized to ISO 8601 UTC (lastmodIso), protocol problems are flagged per URL (other-host, invalid-lastmod, lastmod-in-future, …).
  • Sitemap report in the key-value store (OUTPUT): every sitemap file with type, URL count, size, compression, parent index, errors and issues (over-50000-urls, over-50mb, invalid-xml, redirected, http-error, empty), plus issue and status code totals.
  • Only what you need: modifiedAfter ("7 days", "2026-01-31"), include/exclude regex, URL and sitemap limits.
  • Safe and polite: respects robots.txt by default, honest user agent, moderate parallelism, private/internal addresses blocked, hardened XML parser (no XML bombs / XXE), size limits.

Pricing

Pay per event on the Apify platform – you only pay for what the tool produces. A tiny start fee per run applies.

EventPriceUSD per event
URL extracted
One unique URL returned from the sitemaps. Duplicates and filtered URLs are free.
$0.20 per 1,000$0.0002
URL status checked
Check mode 'status': one URL checked (status code, redirects, X-Robots-Tag) that answered. Network errors and robots.txt-blocked URLs are free.
$0.30 per 1,000$0.0003
URL indexability checked
Check mode 'indexability': one page fetched and checked (status, redirects, noindex, canonical) that answered. Network errors and robots.txt-blocked URLs are free.
$1.00 per 1,000$0.001

Typical use cases

  • Extract all URLs of a website from its sitemaps
    Find all sitemaps of a website (robots.txt, sitemap indexes, gzip) and get every listed URL with lastmod, hreflang alternates and images – e.g. for crawling, migrations or content inventories.
  • Check sitemap URLs for errors and noindex
    Check every URL in your sitemaps: status code, redirects, noindex (meta and header), canonical pointing elsewhere and robots.txt blocks – the URLs Google complains about in Search Console.
  • Check status codes of all sitemap URLs
    Extract every URL from a website's sitemaps and check its HTTP status – find 404s, redirects and server errors that should not be in the sitemap.
  • List pages updated since a date
    Get only the sitemap URLs modified after a given date (lastmod) – monitor what a website published or changed recently.
  • Export hreflang alternates from sitemaps
    Extract all URLs with their hreflang language alternates from multilingual sitemaps – check international SEO setups and find missing language versions.

How to use it

Run it in the Apify Console with a few clicks, call it via the Apify API from your own code, or connect it to AI agents through Apify's MCP server. Results come as a dataset (JSON, CSV, Excel) and, where relevant, as files. Full input documentation is on the Apify page.

FAQ

My site has no sitemap in robots.txt.

The Actor then tries /sitemap.xml, /sitemap_index.xml, /sitemap-index.xml, /wp-sitemap.xml, /sitemap.xml.gz and /sitemap.txt. You can always pass the sitemap URL directly.

Can I use it for monitoring?

Yes – schedule it with modifiedAfter: "1 day" to get only new or changed URLs, or with checkMode: "status" to catch broken URLs in your sitemap early.

Limits and fair use

  • Sitemap files larger than 60 MB (uncompressed) are refused (the protocol limit is 50 MB).
  • Sitemap indexes are followed up to 5 levels deep; each sitemap file is downloaded once per run.
  • Only public http(s) URLs; login-protected sitemaps are not supported.
  • The Actor does not crawl pages for links – for that use a site crawler or a broken link checker.