Skip to main content

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.

Getting Started

Get your Tavily API key

1

Install the Tavily Python SDK

2

Set up your client

3

Map a website

4

Output

Filtering with Path Patterns

Use select_paths and exclude_paths to focus the map on specific sections of a site. These accept regex patterns.
You can also use 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.
This two-step approach lets you process only relevant pages instead of crawling an entire site.

Critical Knobs

  • Default: 1
  • Higher values discover more pages but take longer
  • Default: 50
  • Total URL cap before stopping
  • Regex patterns to include or exclude URL paths
  • Example: "/docs/.*" to target docs, "/blog/.*" to skip blog posts
  • 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"
For the complete parameter list, see the Map API reference.

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.