GET /web/scrape/sitemap when you need a website’s URL inventory before deciding what to scrape. The endpoint reads public sitemap files and does not render the returned pages.
Prerequisites
Export an API key from the dashboard:List URLs
Pass a domain without a protocol. The following request keeps at most 50 URLs whose paths contain/customers/.
Read the result
urls is de-duplicated and bounded by maxLinks. Use meta to detect incomplete sitemap coverage.
Narrow the inventory
For example, search for likely authentication documentation:
Sitemap coverage depends on what the target site publishes. A URL missing from
sitemap.xml can still be reachable through links, and a listed URL can fail when rendered.Choose what happens next
Crawl a website
Discover linked pages and render their content in one request.
Scrape websites in batches
Feed the discovered URL list into an asynchronous job.
Scrape a webpage
Read one URL at a time from a small selected set.
Production behavior
- A request that forwards custom
headersbypasses sitemap cache reads and writes. - Set
timeoutMSwhen URL discovery is on a latency-sensitive path; the maximum is five minutes. - Set
zdr=enabledto bypass shared caches and retained content logs when Zero Data Retention is enabled for your organization. - Treat
meta.errors > 0orsitemapsSkipped > 0as incomplete coverage, not as a total request failure.
Sitemap API reference
Review all discovery parameters and response status codes.