GET /map
Discover every URL a site exposes, from its sitemaps and on-page links, without fetching them. Costs 3 credits.
Overview
/map answers “what pages does this site have?” without downloading any of them. It merges two sources:
- Sitemaps — found through
robots.txtfirst, then the conventional locations (/sitemap.xml,/sitemap_index.xml). Sitemap indexes are followed one level deep. Authoritative and cheap: one request can describe a whole site. - On-page links — every link on the URL you pass. The fallback for sites that publish no sitemap, and the only source that reflects what is actually linked.
lastmod and is the site’s own statement about its content, but the anchor text from the page is kept as a title.
Use it to plan a crawl, to find one page without guessing its path, or to check what a site has published recently.
Example requests
Example response
Reading the response
Ordering and search
Withoutsearch, links come back shortest path first — so the homepage and top-level sections lead, and the deep long tail follows.
With search, results are filtered as well as ranked: links matching nothing are dropped, not just pushed down. A match in the URL path outranks one in the link text.
Choosing sources
robots.txt is read for its Sitemap: entries regardless. /map fetches at most one page of the site, so nothing here is affected by Disallow rules.Scope
By default the result stays on the site you asked about, subdomains included, and URLs that differ only by query string collapse into one.include_subdomains=false— restrict to the exact host.blog.stripe.comis excluded when you mapstripe.com.ignore_query_params=false— keep?page=2and?page=3as separate entries.
Related
GET /scrape
POST /crawl
Authorizations
Your Prefetch API key. Obtain one from the dashboard.
Query Parameters
The website URL to process. https:// is prepended automatically if no protocol is provided.
"https://stripe.com"
Maximum number of links to return.
1 <= x <= 5000Rank and filter results by relevance to this query. Links that match nothing are dropped.
"pricing"
Which sources to use. include merges sitemap entries with on-page links, skip uses on-page links only, only uses sitemaps only.
include, skip, only Include links on subdomains of the target.
Treat URLs that differ only by query string as one page.