Sitemap URL Extractor
Pricing
$1.00 / 1,000 results
Sitemap URL Extractor
Extract every page URL from any website sitemaps (robots.txt, sitemap indexes, gzipped and text sitemaps) with lastmod, changefreq and priority. Fast, no browser, pay per result.
Pricing
$1.00 / 1,000 results
Rating
0.0
(0)
Developer
Cody Coulter
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Share
Extract every page URL from any website's XML sitemap — fast, cheap, no browser.
Give it a domain (e.g. example.com) or a direct sitemap URL. The Actor:
- Auto-discovers sitemaps from
robots.txt(Sitemap:lines), falling back to/sitemap.xml,/sitemap_index.xml - Recursively follows sitemap index files
- Handles gzipped (
.xml.gz) and plain-text sitemaps - De-duplicates URLs and optionally filters them with a regex (e.g. only
/blog/) - Outputs
url,lastmod,changefreq,priority, and the sourcesitemap
Use cases
SEO audits, content inventories, migration checklists, feeding URL lists to crawlers or RAG/LLM pipelines, monitoring newly published pages via lastmod.
Input
| Field | Type | Default | Description |
|---|---|---|---|
startUrls | string[] | — | Domains, homepages, or sitemap URLs (required) |
maxUrls | integer | 1000 | Total URL cap across all inputs |
maxSitemaps | integer | 200 | Max sitemap files followed per domain |
urlFilter | string | — | JavaScript regex; only matching URLs are output |
includeMetadata | boolean | true | Include lastmod/changefreq/priority/sitemap |
{ "startUrls": ["docs.apify.com"], "maxUrls": 500, "urlFilter": "/platform/" }
Output (one row per URL)
{ "url": "https://docs.apify.com/api", "lastmod": null, "changefreq": "weekly", "priority": 0.5, "sitemap": "https://docs.apify.com/sitemap_base.xml" }
Export as JSON, CSV, Excel, or via API.
Pricing
Pay per result: you pay a small fee per URL in the dataset. Set maxUrls to cap your spend.
Notes
Only reads publicly published sitemaps and robots.txt — files websites provide specifically for automated discovery. No login, no page content scraping.
Local development
npm installnpm test # end-to-end test against a local fixture site (index + .gz + dedup)apify run # uses storage/key_value_stores/default/INPUT.json