Map a website
mapBuild a paginated link inventory of a website from its sitemaps and homepage, filter by internal, external, or subdomain links, then choose pages to scrape.
Instructions
Build (or fetch a cached) link map of a website from its sitemaps, plus the links on its home page. Returns paginated links, each { url, type, lastmod }: type is page, sitemap or sitemap_index (a sitemap file that lists other sitemap files); read either kind of sitemap file with sitemap_url in another call. lastmod is the date from the sitemap (UTC) or null. Filterable by link type (internal / external / subdomain). Use this to enumerate a site before scraping selected pages. By default the map reads the site's top sitemap files and 2 levels of nested ones (depth 3), returns pages (entries) and finds up to 5000 of them (max_results, max 100000). max_results is a discovery budget, not a trim at the end: discovery stops as soon as that many entries of the asked kind are found, so a smaller value is a faster map. A map stopped that way returns exactly max_results links with response_capped false; the signal that the site has more is response_meta.truncation.discovery_cap_reason. "max_results": ask again with a higher max_results. "depth": there are sitemap files past the depth you asked for, listed in unread_sitemaps; that is the answer to your depth, not a fault. "unread_files": a sitemap file could not be read whole this time, often temporary, so asking again later can return more. "time", "file_budget" and "file_size": the site is big or slow, and a retry will not help. discovery_capped says discovery stopped early, sitemaps_skipped how many sitemap files were skipped or only partly read. limit (default 5000, max 10000) only pages the answer. To map a very large site in several calls, first ask with depth: 1 and entries: "sitemaps": one call lists the top sitemap files and every file they list (a listed file shows as sitemap until a map reads it, even when it is an index). Then read each file with sitemap_url (on the same site as url, or on a host the site's robots.txt names, such as a CDN), or ask with a higher depth. truncation.unread_sitemaps names the files a call did not read whole, to read next (except a file that says it is over the size limit: no call reads that one); when that list is full, ask the same with entries: "sitemaps" to get every sitemap file as a link, paged. A sitemap index holds only sitemap files, so reading one at a low depth with entries: "pages" returns no pages: ask with entries: "sitemaps" or a higher depth. modified_since keeps only entries whose lastmod is at or after it: an entry with no lastmod is left out (so no home page link is returned). Every sitemap file is read whatever its own date, and each entry is judged by its own lastmod. With entries: "sitemaps" a file is returned by its own date, so ask with entries: "pages" to find the pages that changed. A request with modified_since is always mapped fresh, never from the cache, and priced as a fresh map. A map with modified_since or sitemap_url adds no home page links. If the site answers 429 on the file in sitemap_url, on its robots.txt or on one of its top sitemap files, the tool returns too_many_requests (not billed): wait and retry. Set zero_data_retention: true to keep the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. It adds 1 credit and must be enabled for the organization (else a zero_data_retention_not_enabled error, not billed). See https://crawlbrulee.com/docs/zero-data-retention. Returned URLs are normalized the same way scrape normalizes its returned url, so map-then-scrape stays on one host. Results are ordered with the most useful links first. The response carries response_meta.usage: total_credit_cost = engine_credit_cost × proxy_multiplier + zero_data_retention_credit_cost, plus engine and proxy (the resolved tier, never auto). Map has no screenshot slicing and no page_status_code: it reads many files, not one page. A map that found nothing because the site answered only with statuses we don't bill (a 5xx, for example), or not at all, is empty and free. If the site cannot be reached, the tool can return a target_unreachable error (HTTP 502, not billed): retry later or check the URL. The full walk-through for a very large or deep site: https://crawlbrulee.com/docs/map/sitemaps#map-a-very-large-or-deep-site-in-several-calls.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The website URL to map. Mapping always targets the site root, so the path, query string and fragment are dropped; known tracking parameters are removed before the request is processed. | |
| page | No | Page number for paginated results | |
| cache | No | Cache settings for this request | |
| depth | No | How many levels of nested sitemaps to follow: 0 to 3, default 3. With `sitemap_url`, level 0 is that file, and it is read. Without it, level 0 is the list of the site's top sitemap files, which 0 returns without reading their entries. A top file found at one of the usual addresses can still show as `sitemap_index`, because finding it shows its kind. A sitemap index holds only sitemap files, so reading one at a low depth with `entries: "pages"` returns no pages: ask with `entries: "sitemaps"` or a higher depth. `depth: 1` with `entries: "sitemaps"` lists the site's top sitemap files and every file they list, in one call. A listed file shows as `sitemap` until a map opens it, even when it is a sitemap index itself. To go deeper, read a listed file with `sitemap_url`, or ask with a higher depth. A large site can reach `max_results` or a discovery limit first; `discovery_cap_reason` then says which. | |
| limit | No | Number of URLs to return per page. Default 5000, maximum 10000. | |
| proxy | No | Proxy tier. Defaults to auto: we start on basic and move to a stronger proxy on our own when a site needs it, and bill the tier that delivered. basic or advanced pins the tier. | auto |
| types | No | Filter which link types to include | |
| entries | No | What to return: `pages` (page addresses, the default), `sitemaps` (sitemap files, of type `sitemap` or `sitemap_index`) or `all` (both). | |
| location | No | Optional country emulation for the map | |
| max_urls | No | Deprecated: use `max_results`, which means the same. This tool sends it as `max_results`. When both are given, only `max_results` is used. | |
| max_results | No | The most entries the map finds, counting only the kind asked for in `entries`. Default 5000, maximum 100000. Discovery stops as soon as this many have been found, so a smaller value is a faster and lighter map, not just a smaller answer. | |
| sitemap_url | No | Start from this sitemap file, as a full http or https address. It must be on the same site as `url`, or on a host the site's robots.txt names, such as a CDN. Left out: start from the site's own top sitemap files. | |
| sitemap_only | No | Use the sitemaps only: leave out the links found on the home page. A map with `modified_since` or `sitemap_url` never adds home page links. | |
| modified_since | No | Return only entries whose `lastmod` is at or after this date (`2026-11-01`, the start of that day in UTC) or date and time (ISO 8601, with a time zone). An entry with no `lastmod` is left out, so every entry returned matches; links found on the home page have none, so none is returned. Every sitemap file is read whatever its own `lastmod`, and each entry returned, a page or a sitemap file, is judged by its own `lastmod`. With `entries: "sitemaps"`, a sitemap file is returned when its own `lastmod` matches, not when a page in it does: to find the pages that changed, ask with `entries: "pages"`. A request with this field is always mapped fresh: it never reads from or adds to the cache, so `cache.max_age` does nothing, and it is priced as a fresh map. | |
| zero_data_retention | No | Keeps the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. Adds 1 credit. Must be enabled for your organization. See https://crawlbrulee.com/docs/zero-data-retention. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | Yes | List of discovered URLs for the current page | |
| response_meta | Yes | Response metadata including pagination, truncation, and usage info |