{"uid":"cap_4jX_KiDLQEV4Q5q4uNR75","slug":"agentreader-sitemap-parser-8ba1a5e2","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://agentreader.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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BHM5lYGw21CV-eDq40E8p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and 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 index files.","exampleAgentPrompt":"Can you fetch the sitemap at https://example.com/sitemap.xml and give me all the URLs with their last modified dates and priorities?","exampleUseCases":[{"title":"Discover all pages before crawling","prompt":"Go to https://shop.acme.com/sitemap_index.xml and parse it — I want to see all the child sitemaps listed so I can plan which sections to crawl first."},{"title":"Audit stale content by lastmod date","prompt":"Parse the sitemap at https://myblog.com/sitemap.xml and list all the URLs along with their lastmod dates so I can identify which posts haven't been updated in over a year."},{"title":"SEO inventory of site pages","prompt":"Fetch https://startupsite.io/sitemap.xml and extract all the URLs along with their priority values so I can see which pages they consider most important."}],"resultDescription":"A JSON object containing either an array of up to 5000 URL entries (each with the URL string, lastmod date, and priority value) for regular sitemaps, or a list of child sitemap URLs with their metadata for sitemap index files.","failureModes":["Invalid or unreachable URL returns an error response","Non-XML or malformed sitemap content causes a parse failure","Sitemap with more than 5000 URLs is truncated at the limit","Password-protected or access-restricted sitemaps return an authorization error","Redirect loops or timeouts on the target URL result in a fetch failure"],"whenToPreferThis":"Use this endpoint when you need to programmatically enumerate all pages on a website from its sitemap before crawling, auditing content freshness, or building a site map. It is purpose-built for structured sitemap parsing rather than general web scraping, making it faster and more reliable than fetching and parsing raw XML manually. Prefer this over a full-page extraction endpoint when you only need the URL inventory rather than page content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:38:53.147Z","isFirstParty":false}