XML Sitemap & Sitemap Index Extractor
Pricing
from $0.56 / 1,000 item scrapeds
Go to Apify Store

XML Sitemap & Sitemap Index Extractor
Parse XML sitemaps and sitemap index files. Extract target URLs, last modified dates, priority scores, and change frequency for SEO audits.
Pricing
from $0.56 / 1,000 item scrapeds
Rating
0.0
(0)
Developer
LiteZero
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Share
🗺️ XML Sitemap & Nested Sitemap Index Extractor
Fast, recursive XML sitemap crawler capable of parsing massive sitemap indexes, extracting canonical URLs, lastmod dates, change frequency, priority, and image tags.
🥊 Why This Actor Beats the Competition
| Feature | Standard Sitemap Scrapers | Desktop Crawlers (Screaming Frog) | This Actor |
|---|---|---|---|
| Recursive Indexes | ❌ Crashes on <sitemapindex> | Requires machine memory | 🌲 Automatic recursive child sitemap parsing |
| Speed | 🐌 50 URLs/sec | Limited by local network | ⚡ 5,000+ URLs / second streaming parser |
| Large Sitemaps | 💥 Out of memory on 50k+ URLs | High memory consumption | 🛡️ Streaming parser with zero memory leaks |
| Cost | 💸 Compute hour billing | 💸 $259 / year license | 💰 $0.80 per 1,000 URLs (PPR) |
🛠️ Step-by-Step: How to Use
Method 1: Apify Console
- Input target sitemap URLs in Sitemap URLs (e.g.
https://wordpress.org/sitemap.xml). - Set Max URLs limit (default:
1000). - Click Start to extract all indexed URLs.
Method 2: Python SDK
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("litezero/xml-sitemap-extractor").call(run_input={"sitemapUrls": ["https://wordpress.org/sitemap.xml"],"maxUrls": 100})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(f"URL: {item['loc']} (LastMod: {item['lastmod']})")
📥 Input Parameters
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
sitemapUrls | Array | Yes | ["https://wordpress.org/sitemap.xml"] | Target XML sitemap or sitemap index URLs |
maxUrls | Integer | No | 1000 | Maximum URLs to parse and push |
📤 Output Data Dictionary
| Field | Type | Description |
|---|---|---|
loc | String | Canonical URL from <loc> tag |
lastmod | String | Last modified timestamp |
changefreq | String | Expected change frequency |
priority | Float | Search engine priority (0.0 – 1.0) |
sitemapSource | String | Parent sitemap URL where URL was discovered |
scrapedAt | String | ISO 8601 extraction timestamp |
💡 Top Use Cases
- SEO Competitor Audits: Discover newly published articles and product URLs instantly.
- Full-Site Crawl Seeding: Feed downstream scrapers with valid URL inventories.