Skip to content

Map Webpages

Tavily

Tavily

Map Webpages

Generate a comprehensive site map by traversing a website from a root URL using Tavily Map. Returns a flat list of discovered URLs rather than extracted content.

ActionAI Tool

Inputs

Name Type Required Description
urltextRequiredThe root URL to begin mapping from (e.g. docs.tavily.com).
instructionstextOptionalNatural language instructions guiding the mapper (e.g. 'Find all pages about the Python SDK'). Increases cost to 2 credits per 10 pages.
max_depthnumberOptionalMax depth of the mapping from the root URL. Range: 1-5. Default: 1.
max_breadthnumberOptionalMax links to follow per level. Range: 1-500. Default: 20.
limitnumberOptionalTotal number of links to process before stopping. Default: 50.
select_pathsarray of textOptionalRegex patterns to restrict mapping to specific URL paths (e.g. '/docs/.*').
select_domainsarray of textOptionalRegex patterns to restrict mapping to specific domains.
exclude_pathsarray of textOptionalRegex patterns to exclude URL paths from mapping (e.g. '/private/.*').
exclude_domainsarray of textOptionalRegex patterns to exclude specific domains from mapping.
allow_externalyes/noOptionalWhether to include external domain links in the results. Default: true.
timeoutnumberOptionalMax seconds to wait before timing out the map operation. Range: 10-150. Default: 150.
include_usageyes/noOptionalInclude credit usage in the response. Default: false.

Outputs

Name Type Description
statusCodenumberHTTP status code
bodyobjectTavily Map response with a flat list of discovered URLs
base_urltextThe root URL that was mapped
resultsarray of textList of URLs discovered during the mapping
response_timenumberTime in seconds the request took
usageobjectCredit usage details (only when include_usage is true)
creditsnumberNumber of API credits consumed
request_idtextUnique request identifier for support