Skip to content

Search the Web

Tavily

Tavily

Search the Web

Execute a web search query using Tavily Search. Returns ranked results with titles, URLs, and content snippets. Optionally includes an LLM-generated answer, images, raw page content, and usage info.

ActionAI Tool

Inputs

Name Type Required Description
querytextRequiredThe search query to execute.
search_depthselectOptionalControls latency vs relevance: 'basic' (default), 'advanced' (2 credits), 'fast', or 'ultra-fast'. (options: Advanced, Basic, Fast, Ultra-fast)
chunks_per_sourcenumberOptionalMaximum chunks (up to 500 chars each) returned per source. Only set this when search_depth is 'advanced'. Range: 1-3.
max_resultsnumberOptionalMaximum number of search results to return. Range: 0-20. Default: 5.
topicselectOptionalSearch category: 'general' (default) or 'news' (real-time updates) or 'finance'. (options: General, News, Finance)
time_rangeselectOptionalFilter results by recency: 'day', 'week', 'month', 'year' (or 'd', 'w', 'm', 'y'). (options: Day, Week, Month, Year, d, w, m, y)
start_datetextOptionalReturn results published after this date. Format: YYYY-MM-DD.
end_datetextOptionalReturn results published before this date. Format: YYYY-MM-DD.
include_answerselectOptionalInclude an LLM-generated answer. Leave empty to use Tavily's default false. 'basic' returns a quick answer; 'advanced' returns a detailed answer. (options: Basic, Advanced)
include_raw_contentselectOptionalInclude parsed HTML content per result. Leave empty to use Tavily's default false. 'markdown' returns markdown; 'text' returns plain text and may increase latency. (options: Markdown, Text)
include_imagesyes/noOptionalInclude query-related images in the response. Default: false.
include_image_descriptionsyes/noOptionalWhen include_images is true, add descriptive text for each image. Default: false.
include_faviconyes/noOptionalInclude the favicon URL for each result. Default: false.
include_domainsarray of textOptionalList of domains to specifically include in the results. Maximum 300.
exclude_domainsarray of textOptionalList of domains to exclude from the results. Maximum 150.
countrytextOptionalBoost results from a specific country (e.g. 'united states', 'united kingdom'). Only applies when topic is 'general'.
auto_parametersyes/noOptionalLet Tavily auto-configure search parameters based on query intent. Uses 2 API credits. Default: false.
exact_matchyes/noOptionalOnly return results containing exact quoted phrases in query. Default: false.
include_usageyes/noOptionalInclude credit usage information in the response. Default: false.
safe_searchyes/noOptionalEnterprise only. Filter adult or unsafe content from results. Not supported for fast or ultra-fast search depths. Default: false.

Outputs

Name Type Description
statusCodenumberHTTP status code
bodyobjectTavily Search response containing ranked results and optional answer/images
querytextThe search query that was executed
answertextLLM-generated answer to the query. Included only when include_answer is true, basic, or advanced.
imagesarray of objectList of query-related images from image search. Included only when include_images is true.
urltextURL of the image
descriptiontextDescriptive text for the image (only when include_image_descriptions is true)
resultsarray of objectRanked list of search results
titletextTitle of the search result
urltextURL of the search result
contenttextShort content snippet from the result
scorenumberRelevance score of the result
raw_contenttextFull parsed HTML content (only when include_raw_content is set)
favicontextFavicon URL (only when include_favicon is true)
imagesarray of objectImages extracted from this result. Included only when include_images is true.
response_timenumberTime in seconds the request took
auto_parametersobjectParameters selected by Tavily when auto_parameters is true
topictextAuto-selected search topic
search_depthtextAuto-selected search depth
usageobjectCredit usage details (only when include_usage is true)
creditsnumberNumber of API credits consumed
request_idtextUnique request identifier for support