Skip to main content
Use 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/.
The base request costs 1 credit.

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 headers bypasses sitemap cache reads and writes.
  • Set timeoutMS when URL discovery is on a latency-sensitive path; the maximum is five minutes.
  • Set zdr=enabled to bypass shared caches and retained content logs when Zero Data Retention is enabled for your organization.
  • Treat meta.errors > 0 or sitemapsSkipped > 0 as incomplete coverage, not as a total request failure.

Sitemap API reference

Review all discovery parameters and response status codes.