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 |
|---|---|---|---|
urls | array of text | Required | List of URLs to extract content from. Pass a single URL as a one-element array. |
query | text | Optional | Optional query for reranking extracted chunks by relevance. When provided, chunks_per_source applies. |
chunks_per_source | number | Optional | Max chunks (up to 500 chars each) per source when query is provided. Range: 1-5. Default: 3. |
extract_depth | select | Optional | Extraction depth: 'basic' (default, 1 credit per 5 URLs) or 'advanced' (tables/embedded content, 2 credits per 5 URLs). (options: Basic, Advanced) |
include_images | yes/no | Optional | Include images extracted from each URL. Default: false. |
include_favicon | yes/no | Optional | Include the favicon URL for each result. Default: false. |
format | select | Optional | Format of extracted content: 'markdown' (default) or 'text'. (options: Markdown, Text) |
timeout | number | Optional | Max seconds to wait per URL before timing out. Range: 1-60. Defaults: 10s (basic) or 30s (advanced). |
include_usage | yes/no | Optional | Include credit usage in the response. Default: false. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code |
body | object | Tavily Extract response with extracted content and any failed URLs |
results | array of object | Successfully extracted content from each URL |
url | text | The URL that was extracted |
raw_content | text | Full extracted content (top-ranked chunks when query is provided) |
images | array of text | Image URLs extracted from the page. Only available when include_images is true. |
favicon | text | Favicon URL (only when include_favicon is true) |
failed_results | array of object | URLs that could not be processed |
url | text | The URL that failed |
error | text | Error message describing why the URL failed |
response_time | number | Time in seconds the request took |
usage | object | Credit usage details (only when include_usage is true) |
credits | number | Number of API credits consumed |
request_id | text | Unique request identifier for support |