Web Map
Map all URLs within a website and return them as a list.
Maps all URLs within a website and returns them as a list. Useful for discovering all pages on a site before scraping.
POST /v1/tools/web_mapAuthentication
AuthorizationBearerrequiredAPI key as bearer token in the Authorization header. Create keys at
Manage API Keys.
Headers
Content-TypestringrequiredMust be application/json.
Body
urlstringrequiredThe URL to map. Will discover all links within this domain.
searchstringoptionalSearch query to filter URLs. Only returns URLs matching this pattern.
sitemapstringoptionalSitemap handling mode:
include: Use sitemap in addition to crawling (default)exclude: Ignore sitemap, only crawlonly: Only use sitemap, skip crawling
includeexcludeonlyincludeSubdomainsbooleanoptionalDefault falseInclude subdomains in mapping.
ignoreQueryParametersbooleanoptionalDefault falseIgnore query parameters when deduplicating URLs.
ignoreCachebooleanoptionalDefault falseIgnore cached results and fetch fresh data.
limitintegeroptionalDefault 100Maximum number of URLs to return. Range: 1 to 5000.
locationobjectoptionalGeographic location settings with country (string) and languages (string[]).
timeoutintegeroptionalRequest timeout in milliseconds. Minimum: 1.
Response
idstringoptionalUnique request ID for this call.
linksstring[]optionalArray of discovered URLs.
Use Cases
- Site auditing: Discover all pages for SEO analysis
- Content inventory: List all URLs before bulk scraping
- Link checking: Find all pages to validate links
- Sitemap generation: Build sitemaps programmatically
Combine with Web Scrape
Use web_map to discover URLs, then web_scrape to fetch content from each. This is more efficient than blind crawling.