Sitemap URL Extractor – All URLs, Hreflang & Status Check
Pricing
from $0.20 / 1,000 sitemap urls
Sitemap URL Extractor – All URLs, Hreflang & Status Check
Get every URL from a website's sitemaps: auto-discovery via robots.txt, nested indexes, .xml.gz and text sitemaps. Per URL: lastmod, changefreq, priority, source sitemap, hreflang alternates, image count, optional HTTP status check to find 404s and redirects.
Pricing
from $0.20 / 1,000 sitemap urls
Rating
0.0
(0)
Developer
Adam Plänitz
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Features
Share
Get every URL listed in a website's sitemaps – with lastmod, changefreq, priority, the sitemap each URL came from, hreflang alternates and image counts – and optionally check the HTTP status of every URL to find 404s and redirects in your sitemaps. Export as JSON, CSV or Excel, or connect to Google Sheets, Make, Zapier, n8n or webhooks.
What does it do?
- Finds the sitemaps for you: enter a website (e.g.
https://example.com) and the Actor reads theSitemap:lines in robots.txt. If there are none, it tries the usual locations (/sitemap.xml,/sitemap_index.xml,/sitemap-index.xml,/wp-sitemap.xml,/sitemap.xml.gz,/sitemaps.xml,/sitemap.txt). You can also enter sitemap URLs directly. - Reads every common format: sitemap indexes (nested up to 6 levels),
urlsetsitemaps, gzip-compressed.xml.gzfiles, plain-text sitemaps (one URL per line), RSS and Atom feeds. Large files (up to 100 MB) are fine. - Keeps the details:
lastmod,changefreq,priority, the source sitemap of every URL, hreflang alternates (xhtml:link rel="alternate"), image count (and optionally the image URLs), video count and titles, and Google News data (title, publication, date) where present. - Filters and limits: include / exclude patterns (globs like
/blog/*or regular expressions), maximum number of URLs, duplicate removal across sitemaps. - Optional status check: one HEAD request per URL (GET as fallback when a server refuses HEAD), redirects followed manually, one retry for timeouts and server errors. You get the status code, the final status and the redirect target – exactly what you need to clean up a sitemap.
- Transparent run summary: every sitemap file with its HTTP status, type, compression, size and URL count is listed in the
RUN-SUMMARYrecord, so you can see which sitemap is broken.
Who is it for?
- SEO agencies and site owners auditing sitemaps: URLs that return 404, redirect, or are blocked; sitemaps that fail to load; missing hreflang alternates.
- Developers and data teams who need a clean list of a site's pages before crawling, migrating or monitoring it.
- Content teams building a content inventory with last-modified dates.
Input
| Field | Example |
|---|---|
| Websites or sitemap URLs | https://crawlee.dev, https://example.com/sitemap_index.xml |
| Maximum URLs | 1000 (0 = no limit) |
| Include only URLs matching | /blog/*, https://example.com/de/*, /20(24|25)/ |
| Exclude URLs matching | */tag/*, /[.]pdf$/i |
| Check HTTP status of every URL | on / off |
| Parallel status checks | 10 |
| Remove duplicate URLs | on |
| Discover sitemaps automatically | on |
| Include image URLs | off |
Pattern syntax: * matches any characters. Patterns starting with / are matched against the path (and query), other patterns against the full URL. Regular expressions are written between slashes, e.g. /(news|blog)/.
Output example (shortened)
{"url": "https://example.com/en/pricing","lastmod": "2026-10-01T10:00:00+00:00","changefreq": "weekly","priority": 0.8,"sitemapUrl": "https://example.com/page-sitemap.xml","alternates": [{ "hreflang": "de", "href": "https://example.com/de/preise" },{ "hreflang": "x-default", "href": "https://example.com/pricing" }],"hreflangCount": 2,"imageCount": 3,"statusCode": 301,"finalStatusCode": 200,"finalUrl": "https://example.com/en/pricing/","redirectCount": 1,"urlStatus": "redirect","errorType": null}
The status fields (statusCode, finalStatusCode, finalUrl, redirectCount, urlStatus, errorType, errorMessage) are only present when the status check is switched on. urlStatus is ok, redirect, broken or blocked (401/403/429 – the server refused automated requests). errorType is 4xx, 5xx, dns, timeout, ssl, connection, redirect-loop or too-many-redirects.
With duplicate removal on, a URL listed in several sitemaps (e.g. a page sitemap and an image sitemap) is output once, with the data of the first sitemap that was read. Switch it off to get every occurrence.
Pricing and speed
See the Pricing tab. You pay per URL in the dataset; URLs removed by your filters, duplicates and limits are not charged. URLs with the status check switched on are billed as a separate, slightly higher event because every URL needs its own request.
Speed in our tests: without status check, sitemaps with tens of thousands of URLs are read in seconds (100 URLs from crawlee.dev in about 4 seconds including start-up). With status check about 15–20 URLs per second at the default of 10 parallel requests (3,000 URLs from two websites in 2 min 40 s).
Data source, robots.txt and privacy
- The Actor reads the public sitemaps that website owners publish for search engines. Only use it on websites you own or are allowed to analyse, and respect their terms.
- Sitemaps are meant for crawlers, so they are read even if robots.txt disallows other paths. The optional status check sends one lightweight request per URL listed in the sitemap; keep the number of parallel checks low for small servers.
- The Actor identifies itself with the User-Agent
sitemap-url-extractor/0.1 (Apify Actor). - No personal data is extracted – only URLs and the metadata in the sitemap.
Limits
- robots.txt applies to a whole host: for
https://example.com/blog/the sitemaps of the entire host are read. Use an include pattern such as/blog/*to keep only one section. - Sitemaps that are generated by JavaScript or hidden behind a login cannot be read. Sitemap files that take longer than the request timeout (default 30 s) to start or stall during download are reported as failed in the run summary – raise the timeout for very slow servers.
- At most 2,000 sitemap files per run and index nesting up to 6 levels.
- Some servers answer HEAD and GET differently or block cloud IP addresses; a
blockedstatus (401/403/429) is not necessarily a broken page. You can use a proxy in the input.
Questions or feature requests? Please open an issue in the Issues tab.