Skip to content

Extract Webpages

Tavily

Tavily

Extract Webpages

Extract clean content from one or more URLs using Tavily Extract. Supports optional query-based reranking, advanced extraction (tables, embedded content), and image extraction.

ActionAI Tool

Inputs

Name Type Required Description
urlsarray of textRequiredList of URLs to extract content from. Pass a single URL as a one-element array.
querytextOptionalOptional query for reranking extracted chunks by relevance. When provided, chunks_per_source applies.
chunks_per_sourcenumberOptionalMax chunks (up to 500 chars each) per source when query is provided. Range: 1-5. Default: 3.
extract_depthselectOptionalExtraction depth: 'basic' (default, 1 credit per 5 URLs) or 'advanced' (tables/embedded content, 2 credits per 5 URLs). (options: Basic, Advanced)
include_imagesyes/noOptionalInclude images extracted from each URL. Default: false.
include_faviconyes/noOptionalInclude the favicon URL for each result. Default: false.
formatselectOptionalFormat of extracted content: 'markdown' (default) or 'text'. (options: Markdown, Text)
timeoutnumberOptionalMax seconds to wait per URL before timing out. Range: 1-60. Defaults: 10s (basic) or 30s (advanced).
include_usageyes/noOptionalInclude credit usage in the response. Default: false.

Outputs

Name Type Description
statusCodenumberHTTP status code
bodyobjectTavily Extract response with extracted content and any failed URLs
resultsarray of objectSuccessfully extracted content from each URL
urltextThe URL that was extracted
raw_contenttextFull extracted content (top-ranked chunks when query is provided)
imagesarray of textImage URLs extracted from the page. Only available when include_images is true.
favicontextFavicon URL (only when include_favicon is true)
failed_resultsarray of objectURLs that could not be processed
urltextThe URL that failed
errortextError message describing why the URL failed
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