XML Sitemap & Sitemap Index Extractor avatar

XML Sitemap & Sitemap Index Extractor

Pricing

from $0.56 / 1,000 item scrapeds

Go to Apify Store
XML Sitemap & Sitemap Index Extractor

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

LiteZero

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

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

FeatureStandard Sitemap ScrapersDesktop Crawlers (Screaming Frog)This Actor
Recursive Indexes❌ Crashes on <sitemapindex>Requires machine memory🌲 Automatic recursive child sitemap parsing
Speed🐌 50 URLs/secLimited by local network⚡ 5,000+ URLs / second streaming parser
Large Sitemaps💥 Out of memory on 50k+ URLsHigh 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

  1. Input target sitemap URLs in Sitemap URLs (e.g. https://wordpress.org/sitemap.xml).
  2. Set Max URLs limit (default: 1000).
  3. Click Start to extract all indexed URLs.

Method 2: Python SDK

from apify_client import ApifyClient
client = 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

FieldTypeRequiredDefaultDescription
sitemapUrlsArrayYes["https://wordpress.org/sitemap.xml"]Target XML sitemap or sitemap index URLs
maxUrlsIntegerNo1000Maximum URLs to parse and push

📤 Output Data Dictionary

FieldTypeDescription
locStringCanonical URL from <loc> tag
lastmodStringLast modified timestamp
changefreqStringExpected change frequency
priorityFloatSearch engine priority (0.0 – 1.0)
sitemapSourceStringParent sitemap URL where URL was discovered
scrapedAtStringISO 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.