Ultra-Fast Sitemap, Sitemap-Index & robots.txt URL Extractor avatar

Ultra-Fast Sitemap, Sitemap-Index & robots.txt URL Extractor

Pricing

from $0.21 / 1,000 sitemap urls extracted

Go to Apify Store
Ultra-Fast Sitemap, Sitemap-Index & robots.txt URL Extractor

Ultra-Fast Sitemap, Sitemap-Index & robots.txt URL Extractor

Zero-browser XML, .xml.gz, RSS, Atom, TXT sitemap & robots.txt extractor with Content-Signal/Agentmap parsing, lastmod filtering, deduplication, and Standby MCP.

Pricing

from $0.21 / 1,000 sitemap urls extracted

Rating

0.0

(0)

Developer

James Edmans

James Edmans

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

15 hours ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

Ultra-Fast Sitemap, Sitemap-Index & robots.txt URL Extractor

Apify Store Actor: forgekit/sitemap-robots-extractor | Runtime: Node.js 22 (256–512 MB, zero-browser) | Billing: Pay-Per-Event (PPE) + Standby MCP Server

Overview

Ultra-Fast Sitemap, Sitemap-Index & robots.txt URL Extractor is an anti-fragile, zero-CAPTCHA technical SEO URL discovery engine engineered for SEO agencies, data engineers, RAG ingestion pipelines, and AI coding agents. Pass bare root domains (https://apify.com) or direct sitemap URLs (.xml, .xml.gz, .txt, RSS 2.0, Atom) to automatically discover sitemaps via robots.txt and common fallback cascades, recursively traverse nested <sitemapindex> trees with cycle protection, transparently gunzip .xml.gz files with a 50 MB zip-bomb cap, recover from malformed unescaped & entities, filter and deduplicate URLs before billing, and evaluate every extracted URL against RFC 9309 robots.txt rules plus 2026 Content-Signal and Agentmap directives.

Because extraction runs purely on lightweight HTTP + fast-xml-parser on 256–512 MB RAM (no headless Chromium, no residential proxies, and fast default checkHttpStatus: false), it eliminates the high timeout/abort rates and 4 GB memory bloat common to legacy sitemap crawlers.

Features vs Competitors

  • Zero-Config Discovery Cascade: Reads robots.txt (Sitemap:, User-agent, Allow/Disallow, Crawl-delay, Content-Signal, Agentmap) and automatically falls back to /sitemap_index.xml, /sitemap.xml, /wp-sitemap.xml, /sitemap.xml.gz, and /sitemap-index.xml.
  • Multi-Format & .xml.gz Resilient Parser: Auto-detects gzip magic bytes (0x1f 0x8b) with a 50 MB decompression guard, strips UTF-8 BOMs, sanitizes bare unescaped & query parameters, and parses <sitemapindex>, <urlset>, RSS 2.0, Atom, and plain-text sitemaps.
  • Full SEO XML Extension Extraction: Captures <lastmod>, <changefreq>, <priority>, xhtml:link (hreflangAlternates), <image:image> counts & primary image URLs, and Google <news:news> titles.
  • Pre-Charge Filtering & Deduplication: Applies includePatterns, excludePatterns, modifiedAfter, modifiedBefore, and canonical URL deduplication before pushing dataset rows or charging url-extracted.
  • Optional Live Liveness Verification (HEAD → GET Fallback): When checkHttpStatus: true, probes kept URLs concurrently with automatic GET fallback on 405/403/501/400 responses.
  • Native Standby MCP Server: Expose discover_sitemaps and extract_sitemap_urls directly to Claude Desktop, Cursor, and autonomous AI workflows.
Capabilityapify/sitemap-extractor (★3.24)boxbox10/sitemap-extractorUltra-Fast Sitemap & robots.txt Extractor
Auto-discover sitemaps from robots.txt + common fallbacksPartialNoYes (Full Cascade)
Recursive nested <sitemapindex> + .xml.gz gunzip + cycle guardFlakyNoYes (50 MB zip-bomb cap)
Extracts lastmod, priority, hreflang, image:image, news:newsPartialMinimalYes (Full XML Extensions)
Supports TXT, RSS 2.0 & Atom sitemapsNoNoYes
Pre-charge lastmod date range + regex filtering + deduplicationNoNoYes (Pay only for kept URLs)
Full robots.txt parser (Allow/Disallow, Content-Signal, Agentmap)NoNoYes (ROBOTS_REPORT KV artifact)
Optional live HTTP status check (HEAD → GET fallback)Slow defaultNoYes (Fast opt-in)
Memory footprint & pricing per 1,000 URLs4096 MB / $0.504096 MB256–512 MB / $0.30
Standby MCP ServerNoNoYes (/mcp)

Input Configuration

FieldTypeRequiredDefaultDescription
targetsstring[]Yes["https://apify.com"]Root domains or direct sitemap URLs (.xml, .xml.gz, .txt, RSS, Atom; 1–100 items).
maxUrlsPerTargetintegerNo5000Hard cap on emitted URLs per input target (1–200000).
maxIndexDepthintegerNo4Max recursion depth for nested <sitemapindex> trees (1–10).
includePatternsstring[]No[]Regex or substring patterns a URL must match to be kept (up to 50 patterns, max 200 chars each).
excludePatternsstring[]No[]Regex or substring patterns used to exclude URLs before billing (up to 50 patterns).
modifiedAfterstringNo""ISO-8601 date (YYYY-MM-DD or timestamp); keep only URLs with lastmod >= modifiedAfter.
modifiedBeforestringNo""ISO-8601 date; keep only URLs with lastmod <= modifiedBefore.
evaluateRobotsRulesbooleanNotrueParse host robots.txt and annotate each URL with allowedForWildcard and allowedForGooglebot.
checkHttpStatusbooleanNofalseOptional live HTTP HEAD (with GET fallback) check per kept URL.
deduplicateUrlsbooleanNotrueDeduplicate identical URLs across overlapping child sitemaps before charging.
maxConcurrencyintegerNo10Max concurrent child sitemap and status HTTP requests (1–50).
timeoutSecsintegerNo15Per-request HTTP timeout in seconds (3–60).

Output Example

Each extracted URL is stored in the default Apify Dataset with full SEO extension metadata and robots.txt evaluation. Below is an authentic output item captured from a real local execution of this Actor:

{
"target": "https://apify.com",
"url": "https://apify.com/docs/actors",
"sourceSitemap": "https://apify.com/sitemap.xml.gz",
"sitemapFormat": "urlset",
"lastmod": "2026-11-28",
"changefreq": "weekly",
"priority": 0.9,
"hreflangAlternates": [
{
"lang": "en-US",
"href": "https://apify.com/docs/actors"
},
{
"lang": "de-DE",
"href": "https://apify.com/de/docs/actors"
}
],
"imageCount": 1,
"primaryImageUrl": "https://apify.com/img/actors.png",
"newsTitle": null,
"allowedForWildcard": true,
"allowedForGooglebot": true,
"httpStatus": null,
"redirectUrl": null,
"extractedAt": "2026-12-01T20:43:42.700Z"
}

Additional Key-Value Store artifacts saved per run:

  • ROBOTS_REPORT: Parsed robots.txt objects per host (sitemaps, agentGroups, contentSignals, agentmaps, crawlDelay).
  • SUMMARY: Run totals (sitemapsDiscovered, sitemapsParsed, gzippedSitemaps, duplicatesSkipped, filteredOut, per-target status).
  • PPE_LEDGER: Exact local Pay-Per-Event billing ledger.

Pay-Per-Event (PPE) Pricing

Event KeyEvent TitlePrice (USD)Billing Trigger
actor-startActor Run Start$0.002Charged once per batch run start when billable URLs are produced ($0.00 on empty/no-sitemap runs).
url-extractedSitemap URL Extracted$0.0003Charged per filtered, deduplicated URL pushed to the dataset ($0.30 per 1,000 URLs).
url-status-checkedOptional HTTP Status Check$0.0003Additional charge per URL only when checkHttpStatus: true.
mcp-tool-callStandby MCP Tool Call$0.002Charged per successful Standby MCP tools/call invocation.

Illustrative Cost Example: Extracting 1,000 filtered, deduplicated URLs in fast default mode (checkHttpStatus: false) costs $0.002 + (1,000 × $0.0003) = $0.302 USD — 40% cheaper than apify/sitemap-extractor and 100× cheaper than $0.03/URL competitors.

Standby MCP Server & AI Agent Integration

Run this Actor in Apify Standby Mode (APIFY_META_ORIGIN=STANDBY) to connect it directly to Claude Desktop, Cursor, or any MCP-compatible AI agent over Streamable HTTP / SSE:

  • Health endpoint: GET /health
  • MCP JSON-RPC 2.0 endpoint: POST /mcp and GET /mcp
  • Exposed MCP tools:
    • discover_sitemaps — Parse robots.txt (User-agent, Sitemap, Content-Signal, Agentmap) and probe common sitemap endpoints.
    • extract_sitemap_urls — Extract up to 5,000 filtered, deduplicated URLs with full SEO metadata from a domain or sitemap URL.
{
"mcpServers": {
"sitemap-robots-extractor": {
"url": "https://forgekit--sitemap-robots-extractor.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}

Error Handling, Rate Limits & Limitations

  • Strict SSRF Protection: Only http: and https: schemes are permitted. Initial URLs, redirect hops, nested child sitemaps, and <loc> entries resolving to loopback (127.0.0.0/8, ::1, localhost), RFC 1918 private ranges, CGNAT, or cloud metadata (169.254.169.254) are strictly blocked.
  • Zero-Result Non-Billing: If a domain has no discoverable sitemap (status: "no_sitemap_found") or all URLs are filtered out before emission, $0.00 is charged while SUMMARY and ROBOTS_REPORT are still written cleanly.
  • Polite Retries & Caps: Respects Retry-After headers on 429/503 responses with exponential backoff, enforces a 50 MB gzip decompression limit, rejects invalid or ReDoS regex patterns at input validation, and respects ACTOR_MAX_TOTAL_CHARGE_USD budget limits.

Quick Start & Example Input

1. Run in Apify Console (No Code)

  1. Open forgekit/sitemap-robots-extractor in Apify Console and click Try for free.
  2. Paste or adjust the ready-to-run input JSON below (safe defaults are pre-filled).
  3. Click Start and export results as JSON, CSV, Excel, or NDJSON from the Output tab.
{
"targets": [
"https://apify.com"
]
}

2. Run via API (apify-client — Node.js & Python)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('forgekit/sitemap-robots-extractor').call({"targets":["https://apify.com"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
from apify_client import ApifyClient
import os
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("forgekit/sitemap-robots-extractor").call(run_input={"targets":["https://apify.com"]})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items)

3. Connect to n8n, Make, Zapier & Webhooks

  • n8n / Make / Zapier: Add the official Apify module, choose Run Actor, select forgekit/sitemap-robots-extractor, and pass the JSON payload above.
  • Schedules & Webhooks: Attach an Apify Schedule for recurring runs and trigger downstream webhooks automatically on ACTOR.RUN.SUCCEEDED.

Use Cases — What Can You Do With This Data?

  • Technical SEO & Agency Site Audits: Run fast, automated checks with Ultra-Fast Sitemap, Sitemap-Index & robots.txt URL Extractor across client domains to catch broken links, redirect chains, sitemap/canonical defects, and Core Web Vitals regressions.
  • AI-Search (GEO) & RAG Optimization: Verify llms.txt, AI crawler policies (GPTBot, ClaudeBot, PerplexityBot), and clean Markdown readability so content ranks in both Google and AI answer engines.
  • EU Accessibility Act (EAA) & WCAG Compliance: Audit public web pages systematically and generate structured compliance reports for engineering and legal sign-off.
  • CI/CD & Scheduled Monitoring: Run weekly regression audits via Apify Schedules or GitHub Actions and export results straight into Looker Studio, BigQuery, Sheets, or Slack alerts.

Frequently Asked Questions (FAQ)

How much does Ultra-Fast Sitemap, Sitemap-Index & robots.txt URL Extractor cost to run?

You only pay for actual output via transparent Pay-Per-Event billing (starting at $0.0003 per url-extracted (Sitemap URL Extracted); see the PPE Pricing table above). Runs that produce zero billable results or fail upstream incur $0.00 — including zero actor-start fee — and Apify's built-in Max total charge (ACTOR_MAX_TOTAL_CHARGE_USD) hard-caps spend automatically.

Does this Actor require proxies, logins, or CAPTCHA solving?

No. This Actor inspects publicly accessible web pages, sitemaps, robots.txt, and llms.txt using polite HTTP or real Chromium/CDP audits — strictly respecting SSRF boundaries and never bypassing authentication or anti-bot gates.

What export formats and integrations are supported?

Every run stores structured results in an Apify Dataset downloadable as JSON, CSV, Excel (XLSX), NDJSON, XML, or HTML Table via Console or REST API, plus native connectors for n8n, Make, Zapier, Google Sheets, Airtable, Slack, and webhooks.

Can AI agents (Claude Desktop, Cursor, ChatGPT, LangChain) call this Actor directly via MCP?

Yes! Ultra-Fast Sitemap, Sitemap-Index & robots.txt URL Extractor includes a built-in Standby MCP Server at https://forgekit--sitemap-robots-extractor.apify.actor/mcp supporting JSON-RPC 2.0 (initialize, ping, tools/list, tools/call) with Claude-compliant ^[a-zA-Z0-9_.-]{1,64}$ tool schemas.

How does it protect against runaway costs or bad inputs?

Every input is strictly validated upfront with Zod schemas before any work starts, user-supplied URLs pass SSRF protection blocking private/cloud-metadata IPs, and streaming BudgetGuard enforcement stops immediately once your result or USD budget cap is reached.

How fast and lightweight is it compared to browser scrapers?

It runs on lightweight Node.js 22 (256–512 MB RAM, zero headless browser) so typical runs finish in seconds with high reliability and low platform compute cost.

Explore companion Actors in Technical SEO, AI-Search & Compliance and core ETL utilities to chain end-to-end pipelines:

ActorStore SlugMode
Bulk Broken Link (404/5xx) & Multi-Hop Redirect Chain Tracerforgekit/broken-link-redirect-tracerBatch REST API
Fast Zero-Browser On-Page Technical SEO Auditor (0–100 Score + JSON-LD + Hreflang)forgekit/fast-technical-seo-auditor✅ Standby MCP
llms.txt & AI-Search (GEO) Readiness Auditor — AI Bot Access, Content-Signal & RAG Scoreforgekit/llms-txt-geo-auditor✅ Standby MCP
Bulk WCAG 2.2 & EU Accessibility Act (EAA) Compliance Auditor (axe-core + EN 301 549)forgekit/wcag-eaa-accessibility-auditorBatch REST API
Bulk Core Web Vitals (LCP/INP/CLS) & Lighthouse Performance Auditor — Desktop & Mobileforgekit/core-web-vitals-lighthouse-auditorBatch REST API
Dataset Merge, Fuzzy Dedupe & Cross-Join Proforgekit/dataset-merge-dedupe-pro✅ Standby MCP
Dataset Diff & Change Detector (Added / Removed / Modified)forgekit/dataset-diff-change-detector✅ Standby MCP