﻿# Tavily Map and Crawl: enumerate before spending extraction budget

Choose Tavily Map or Crawl by whether the next artifact is a URL inventory or page content, and budget traversal separately from extraction.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-tavily-map-versus-crawl-budget/
Language: en

## Decide what the next artifact contains

A documentation migration starts with a practical question: which pages belong to the obsolete SDK section? The first useful artifact may be a reviewable URL inventory, not a large text corpus. Choose the operation around that artifact so an editor can remove unrelated pages before the application spends effort processing their bodies.

## Use Map for enumeration

The [Map reference](https://docs.tavily.com/documentation/api-reference/endpoint/map) defines a root URL and traversal controls. `max_depth` bounds exploration distance, `max_breadth` controls link following, and `limit` caps processed links. Store all of them with the inventory. Reaching a limit explains why enumeration stopped; it does not prove the section contains no additional pages.

## Constrain the graph deliberately

Map also provides path and domain selection or exclusion patterns. Test those patterns against representative URLs before using the inventory as a migration checklist. Separately configure external-link inclusion; a documentation page can link to another product or an unrelated community site. A natural-language instruction is useful context, but explicit controls make traversal boundaries inspectable.

## Choose Crawl when bodies are needed

[Crawl](https://docs.tavily.com/documentation/api-reference/endpoint/crawl) combines traversal with extracted content. Its extraction and format controls belong to the content stage, even when the same request also governs graph exploration. Do not describe every discovered URL as a fully read document. Inspect which returned records contain usable bodies and which text selection settings applied.

For an SDK migration, a narrow inventory followed by review may avoid collecting older examples outside the supported path. A broader Crawl can be convenient when all pages within the chosen boundary are needed. These are workflow choices, not a claim that either endpoint always costs less or finds more.

## Extract the reviewed subset

The [Extract endpoint](https://docs.tavily.com/documentation/api-reference/endpoint/extract) supports a follow-up over known addresses. Keep the reviewed inventory and acquisition outcomes together. Count discovered links, accepted links, successfully acquired bodies, and documents still awaiting review separately. Otherwise a full-looking index can conceal large gaps in page acquisition.

The existing guides to [workspace index resolution](/journal/learn-vscode-workspace-index-resolution/) and [webpage text cleaning](/journal/webpage-clean-text-rag-trafilatura/) help with later processing. Validate a small documentation branch with a known nested page and an external link, checking that each control affects the intended stage before expanding the migration scope.
