{"uid":"cap_B1LZZ9_TmzZ7HHKn9gEUg","slug":"agentreader-sitemap-parser-07f21666","name":"AgentReader Sitemap Parser","description":"Parse an XML sitemap or sitemap index into JSON: up to 5000 URLs with lastmod and priority, or the list of child sitemaps. Useful for agents planning site crawls or auditing site structure.","url":"https://agent-reader.agent-reader.workers.dev/sitemap","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Absolute http(s) URL of the sitemap XML"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tXm2-ayrUVPVaLYJO10Qz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses an XML sitemap or sitemap index URL into structured JSON, returning up to 5000 URLs with lastmod and priority metadata, or the list of child sitemaps for a sitemap index.","exampleAgentPrompt":"Can you fetch and parse the sitemap at https://example.com/sitemap.xml and give me the full list of URLs with their lastmod dates and priorities?","exampleUseCases":[{"title":"Plan a targeted site crawl","prompt":"Pull the sitemap from https://techblog.example.com/sitemap.xml and list all the URLs along with their last-modified dates so I can figure out which pages to re-crawl first."},{"title":"Discover child sitemaps from an index","prompt":"Can you parse the sitemap index at https://shop.example.com/sitemap_index.xml and tell me all the child sitemaps it links to?"},{"title":"Audit site coverage before migration","prompt":"Fetch https://oldsite.example.com/sitemap.xml and give me a JSON breakdown of all the URLs, their priorities, and last-modified timestamps so I can audit what needs to be migrated."}],"resultDescription":"A JSON object containing either: (1) a list of up to 5000 URL entries each with lastmod date and priority value when given a standard sitemap, or (2) a list of child sitemap URLs when given a sitemap index. The response is structured for easy programmatic use by agents planning crawls or auditing site structure.","failureModes":["Invalid or malformed URL returns an error — URL must be an absolute http/https URL","Non-XML or non-sitemap content at the URL may cause parse failure","Sitemaps exceeding 5000 URLs are truncated at 5000 entries","Unreachable or slow URLs may result in timeout errors","Password-protected or bot-blocked sitemaps may return access denied"],"whenToPreferThis":"Choose this endpoint when you need to programmatically discover the full URL inventory of a website from its XML sitemap, especially when planning a crawl, auditing SEO coverage, or mapping site structure. It handles both standard sitemaps and sitemap index files. Prefer it over manual HTML link-following when the site provides a well-maintained sitemap.xml.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:38:53.145Z","isFirstParty":false}