Direct Answer: Crawling a documentation site or SaaS blog by chasing every `<a>` tag wastes requests on duplicate query params and trap links. `POST /v1/sitemap` reads `robots.txt` (`Sitemap:` and `Disallow:` directives), recursively expands nested `<sitemapindex>` trees (such as `github.blog/sitemap_index.xml`) up to `max_depth`, normalizes `<urlset>`, RSS 2.0, and Atom feeds, applies regex `include_pattern`/`exclude_pattern` filters, validates every child URL against the SSRF firewall, and deduplicates output cleanly for `$0.010` (`10,000` micros) per verified crawl.
Engineering Mechanics & Deterministic Guardrails
Automatic `robots.txt` discovery extracts every declared `Sitemap:` URL plus `Disallow:` rules so crawlers stay compliant.
Cycle-guarded recursion prevents infinite `<sitemapindex>` self-reference loops and caps expansion via `max_depth` and `max_urls`.
Per-child SSRF validation ensures a malicious public sitemap cannot smuggle `http://169.254.169.254` or `http://127.0.0.1` child entries.
Supports RSS 2.0 (`<item>`), Atom (`<entry>`), and generic XML trees alongside standard Sitemap protocol `0.9`.
Sitemap & Feed Protocols Supported by `POST /v1/sitemap`
Test Schema-Validated Extraction Live in 5 Seconds
Paste any public URL, HTML table, JSON-LD, CSV, or fake-200 shell at scrape.fastmesh.dev or top up once with never-expiring Creem prepaid credits ($15 Starter / $59 Growth / $199 Scale — $0/mo recurring).
How does `/v1/sitemap` protect against malicious sitemap SSRF smuggling?
Every child `<loc>` discovered in `robots.txt` or `<sitemapindex>` passes through the exact same DNS + IP + redirect SSRF firewall before any fetch occurs. Private/loopback/metadata entries are blocked immediately at `$0`.
Can I feed discovered sitemap URLs straight into `/v1/batch`?
Yes. Extract filtered URLs via `/v1/sitemap`, then submit them to `/v1/batch` with a strict `json_schema` and `max_cost_micros` hard cap.
Does `/v1/sitemap` handle XML namespaces in Sitemap 0.9 and Atom feeds?
Yes. The XML extractor strips or resolves standard `http://www.sitemaps.org/schemas/sitemap/0.9` and `http://www.w3.org/2005/Atom` namespaces deterministically.