What You’ll Learn
- How to use Tavily Map to discover all URLs on a domain without extracting content
- When to use Map vs Crawl (speed vs depth)
- How to combine Map + Extract for targeted content retrieval
- Filtering results with path and domain patterns
How Does It Work?
Tavily Map returns a list of URLs discovered from a starting URL. Unlike Crawl, it does not extract page content — it only discovers the structure. This makes it significantly faster and cheaper when you need to understand what’s on a site before deciding which pages to process.| Feature | Map | Crawl |
|---|---|---|
| Returns | URL list only | URLs + full page content |
| Speed | Fast (seconds) | Slower (depends on page count) |
| Cost | Lower | Higher |
| Best for | Site discovery, URL filtering | Content extraction, RAG pipelines |
Getting Started
Get your Tavily API key
Filtering with Path Patterns
Useselect_paths and exclude_paths to focus the map on specific sections of a site. These accept regex patterns.
instructions for natural language guidance:
Map + Extract: Targeted Content Retrieval
The real power of Map is combining it with Extract. First discover the site structure, then extract only the pages you care about.Critical Knobs
max_depth
max_depth
- Default: 1
- Higher values discover more pages but take longer
limit
limit
- Default: 50
- Total URL cap before stopping
select_paths / exclude_paths
select_paths / exclude_paths
- Regex patterns to include or exclude URL paths
- Example:
"/docs/.*"to target docs,"/blog/.*"to skip blog posts
instructions
instructions
- Natural-language guidance for the mapper
- Use when regex patterns aren’t enough and you need semantic filtering
- Example:
"Find pages related to the Python SDK"
Next Steps
Map API Reference
Full parameter list, response schema, and interactive playground.
Extract API Tutorial
Learn Extract in depth: batch processing, query-focused extraction, and more.
Python SDK Reference
Python client methods, async support, and type details.
JavaScript SDK Reference
JavaScript/TypeScript client methods and usage.