Crawls websites starting from a root URL using the Tavily API.
map
mode) or extract content snippets from crawled pages based on a query (crawl
mode). Crawl depth and breadth can be controlled.
string
): The starting URL for the crawl.number
): The maximum depth of links to follow from the starting URL.number
): The maximum number of links to follow on each page.number
): The maximum number of results (URLs or snippets) to return.string
): (Optional) Natural language instructions or keywords to guide the crawler, especially relevant in crawl
mode to find specific content.select
): Choose between “crawl” (returns content snippets matching the query) or “map” (returns only the URLs found during the crawl).object
): The JSON response from the Tavily API. In map
mode, it primarily contains a list of discovered URLs. In crawl
mode, it contains snippets of content relevant to the query from the crawled pages. Includes the base URL and response time.