Overview
Use Map when you need a list of URLs from a website before deciding what to scrape, crawl, or analyze. Map discovers links; it does not return page body content. For multi-page content extraction, use Crawl. For a single page, use Scraper or Extract.Endpoint
POST /api/v2/map
Quickstart
Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | - | Website URL to map |
ignoreSitemap | boolean | No | false | Ignore sitemap.xml discovery |
includeSubdomains | boolean | No | false | Include subdomains |
search | string | null | No | null | Filter discovered URLs/titles by text |
limit | integer | No | 5000 | Maximum links to return |
timeout | integer | null | No | 45000 | Timeout in milliseconds |
The raw API uses camelCase for map request fields:
ignoreSitemap and includeSubdomains. The Python SDK maps these to ignore_sitemap and include_subdomains.Response
| Field | Type | Description |
|---|---|---|
links | array | Discovered links with url and title |
statusCode | integer | 200 on success |
cost | number | null | Cost in USD |
Common Patterns
Map then crawl
Use Map to inspect the URL surface before crawling.Map then scrape selected pages
Pricing
Map costs$0.002 per request.
Errors
| Status | Meaning |
|---|---|
400 | Invalid URL or request parameters |
401 | Missing or invalid LLMLayer API key |
403 | Blocked private/unsafe target |
500 | Mapping provider or internal error |
More Examples
Search + Scrape Pipeline
Find and process selected pages.
Crawl API
Stream markdown from multiple pages.
