XML/Gzip Sitemap URL Discovery & SEO Metadata Extractor avatar

XML/Gzip Sitemap URL Discovery & SEO Metadata Extractor

Pricing

from $1.05 / 1,000 results

Go to Apify Store
XML/Gzip Sitemap URL Discovery & SEO Metadata Extractor

XML/Gzip Sitemap URL Discovery & SEO Metadata Extractor

Discover, parse, and filter XML and .xml.gz sitemaps (including nested sitemap indexes and robots.txt auto-discovery). Filter by regex, keywords, or lastmod date, and enrich URLs with live page titles, meta descriptions, canonical URLs, H1 headers, word counts, and HTTP status codes.

Pricing

from $1.05 / 1,000 results

Rating

0.0

(0)

Developer

George Barnes

George Barnes

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

XML Sitemap & URL Metadata Extractor ($1.50 / 1K)

Extract, filter, and enrich all URLs from any website's XML sitemaps—supporting nested sitemap indexes, .xml.gz archives, and automated robots.txt auto-discovery—enriched with live HTML title, meta description, canonical URL, H1 header, word count, HTTP status, and response latency.

Unlike basic scrapers that crash on nested indexes or simply dump raw URL strings, this Actor provides an end-to-end SEO, technical audit, and website inventory engine that runs with zero proxy costs and zero required API keys.


Why Choose This Sitemap Extractor? (Comparison)

CapabilityThis ActorBasic Sitemap ScrapersTraditional Web Crawlers
Price per 1,000 URLs$1.50 / 1K ($0.0015 / URL)$3.00 – $10.00 / 1K or subscriptionHigh compute & residential proxy costs
Nested Sitemap Index Support✅ Recursive traversal (maxDepth)❌ Fails or only takes first childN/A (Crawls blindly)
Compressed .xml.gz Decompression✅ Transparent gzip decompression⚠️ Often errors on gzip bytes❌ N/A
robots.txt Auto-Discovery✅ Discovers declared Sitemap: directives❌ Manual URL input required❌ No
Live HTML Metadata Enrichment✅ Title, Meta Desc, Canonical, H1, Words❌ Raw URL strings only⚠️ Heavy headless browsers required
Regex & Substring Keyword Filters✅ urlFilterRegex, includeKeywords❌ None or basic starts-with⚠️ Complex scraper rules needed
Last-Modified (lastmod) Date Filter✅ Extract only URLs updated since date❌ Ignores XML lastmod❌ Cannot detect XML dates
Asset Extension Auto-Filtering✅ Strips .png, .jpg, .pdf, .zip, etc.❌ Dumps image/pdf URLs⚠️ Manual filter setup
Concurrent Async Execution✅ Multithreaded fetch & enrichment⚠️ Slow sequential requests⚠️ High RAM usage
Zero Proxy Costs & 100% Reliability$0.00 (Direct HTTP, 0% failure)$0.00Requires expensive rotating proxies

Transparent Pricing ($1.50 per 1,000 URLs)

You are charged only for URLs actually extracted and enriched ($0.0015 per record via Apify Pay-Per-Event pricing), with no mandatory monthly subscription:

WorkflowURLs ExtractedTotal Cost
Fast Trial Run (verify output schema)10 URLs$0.015 (~1.5 cents)
Competitor Blog / Article Tracking250 URLs$0.375 (~38 cents)
Complete Site Inventory & SEO Audit1,000 URLs$1.50
Large E-Commerce Product Catalog10,000 URLs$15.00
Enterprise Multi-Domain Audit50,000 URLs$75.00

Production B2B Playbooks (Copy-Paste Inputs)

1. Complete Website SEO Audit & Meta Tag Extraction

Audit any website's declared pages, extracting title tags, meta descriptions, canonical URLs, and H1 tags to spot missing metadata or duplicate content:

{
"sitemapUrls": ["https://apify.com/sitemap.xml"],
"enrichMetadata": true,
"maxUrls": 100,
"timeoutSec": 15
}

2. Competitor Blog & Content Publishing Tracker (Filtered by lastmod)

Monitor fresh content published or updated since a specific date, filtering specifically for articles and blog posts:

{
"sitemapUrls": ["https://example.com/sitemap.xml"],
"includeKeywords": ["/blog/", "/articles/", "/news/"],
"lastmodSince": "2024-01-01",
"enrichMetadata": true,
"maxUrls": 500
}

3. E-Commerce Product Catalog URL & Title Extraction

Extract product page links and titles by matching URL regex patterns while excluding images, PDFs, and static assets:

{
"sitemapUrls": ["https://store.example.com/sitemap_products_1.xml.gz"],
"urlFilterRegex": "^https://store\\.example\\.com/products/",
"excludeKeywords": [".png", ".jpg", ".webp", ".pdf", "/collections/"],
"enrichMetadata": true,
"maxUrls": 1000
}

4. Domain Architecture & robots.txt Auto-Discovery

Pass domain names without knowing their sitemap location; the Actor inspects robots.txt to automatically locate all registered sitemaps and indexes:

{
"targetDomains": ["apify.com", "github.com"],
"discoverFromRobotsTxt": true,
"enrichMetadata": true,
"maxUrls": 50
}

Sample Output Record

Each item emitted in the dataset contains all 11 core transformation fields:

{
"url": "https://apify.com/about",
"sitemap_source": "https://apify.com/sitemap/pages.xml",
"lastmod": "2024-10-15T08:30:00Z",
"changefreq": "monthly",
"priority": 0.8,
"page_title": "About · Apify",
"meta_description": "We're building the largest marketplace of tools for AI: the place where builders, businesses, and agents find ready-to-run tools for work on the web.",
"canonical_url": "https://apify.com/about",
"h1_header": "About Apify",
"word_count": 808,
"http_status": 200,
"response_time_ms": 217.89,
"discovered_at": "2026-11-04T00:19:24.071636+00:00"
}

Integrations

Python (Apify Client)

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {
"sitemapUrls": ["https://apify.com/sitemap.xml"],
"enrichMetadata": True,
"maxUrls": 50,
}
run = client.actor("your-username/sitemap-url-metadata-extractor").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(f"[{item['http_status']}] {item['url']} -> {item['page_title']}")

Direct REST API (Synchronous Execution for Clay, n8n, Make)

Trigger the Actor synchronously and retrieve dataset items directly in one HTTP POST:

curl -X POST "https://api.apify.com/v2/acts/your-username~sitemap-url-metadata-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"sitemapUrls": ["https://apify.com/sitemap.xml"],
"enrichMetadata": true,
"maxUrls": 25
}'

Model Context Protocol (MCP) Tool Definition

{
"name": "extract_sitemap_metadata",
"description": "Parse XML sitemaps, sitemap indexes, and enrich URLs with page title, meta description, canonical URL, and word count.",
"parameters": {
"type": "object",
"properties": {
"sitemapUrls": {
"type": "array",
"items": { "type": "string" },
"description": "List of sitemap URLs to parse."
},
"enrichMetadata": {
"type": "boolean",
"description": "Whether to fetch HTML to extract titles and meta tags."
},
"maxUrls": {
"type": "integer",
"description": "Maximum URLs to return."
}
},
"required": ["sitemapUrls"]
}
}