@tavily/ai-sdk has 11,970 recorded weekly downloads on npm, a decrease of 21.5% over the past 30 days, ranking #910 of 2,391 tracked listings.
About @tavily/ai-sdk
@tavily/ai-sdk
AI SDK tools for Tavily, compatible with Vercel's AI SDK v5 and v6.
Features
- Search: Real-time web search optimized for AI applications
- Extract: Clean, structured content extraction from URLs
- Crawl: Intelligent website crawling at scale
- Map: Website structure discovery and mapping
Installation
npm install @tavily/ai-sdk
# or
pnpm install @tavily/ai-sdk
# or
yarn add @tavily/ai-sdk
Prerequisites
You need a Tavily API key to use these tools. Get one at tavily.com.
Set your API key as an environment variable:
export TAVILY_API_KEY=tvly-your-api-key
Or pass it directly to the tool configuration.
Usage
Tavily Search
Search the web for real-time, AI-optimized information:
import { tavilySearch } from "@tavily/ai-sdk";
import { generateText, gateway, stepCountIs } from "ai";
const result = await generateText({
model: gateway("openai/gpt-5-mini"),
prompt: "What are the latest developments in quantum computing?",
tools: {
tavilySearch: tavilySearch({
searchDepth: "advanced",
includeAnswer: true,
maxResults: 5,
}),
},
stopWhen: stepCountIs(3),
});
Configuration Options:
apiKey?: string- Tavily API key (defaults toTAVILY_API_KEYenv var)searchDepth?: "basic" | "advanced"- Search depth (default: "basic")topic?: "general" | "news" | "finance"- Search category (default: "general")includeImages?: boolean- Include images in results (default: false)includeAnswer?: boolean- Include AI-generated answer (default: false)maxResults?: number- Maximum results to return (default: 5)includeImageDescriptions?: boolean- Include AI-generated image descriptionsincludeRawContent?: false | "markdown" | "text"- Include raw content in specified formatincludeDomains?: string[]- List of domains to include in searchexcludeDomains?: string[]- List of domains to exclude from searchmaxTokens?: number- Maximum number of tokens in responsetimeRange?: "year" | "month" | "week" | "day" | "y" | "m" | "w" | "d"- Time range for resultschunksPerSource?: number- Number of content chunks per sourcecountry?: string- Country code for localized resultsstartDate?: string- Start date for results (YYYY-MM-DD format)endDate?: string- End date for results (YYYY-MM-DD format)days?: number- Number of days back to search (for news/finance topics)autoParameters?: boolean- Enable automatic parameter optimizationtimeout?: number- Request timeout in millisecondsincludeFavicon?: boolean- Include favicon URLs in resultsincludeUsage?: boolean- Whether to include credit usage information in the response.proxies?: { http?: string, https?: string }- HTTP/HTTPS proxy configurationapiBaseURL?: string- Custom API base URL
Tavily Extract
Extract clean, structured content from URLs:
import { tavilyExtract } from "@tavily/ai-sdk";
import { generateText, gateway, stepCountIs } from "ai";
const result = await generateText({
model: gateway("openai/gpt-5-mini"),
prompt: "Extract and summarize the content from https://tavily.com",
tools: {
tavilyExtract: tavilyExtract(),
},
stopWhen: stepCountIs(3),
});
Configuration Options:
apiKey?: string- Tavily API key (defaults toTAVILY_API_KEYenv var)includeImages?: boolean- Include images in extracted content (default: false)extractDepth?: "basic" | "advanced"- Extraction depth (default: "basic")format?: "markdown" | "text"- Output format (default: "markdown")timeout?: number- Request timeout in millisecondsincludeFavicon?: boolean- Include favicon URLs in resultsincludeUsage?: boolean- Whether to include credit usage information in the response. NOTE:The value may be 0 if the total successful URL extractions has not yet reached 5 calls. See our Credits & Pricing documentation for details.proxies?: { http?: string, https?: string }- HTTP/HTTPS proxy configurationapiBaseURL?: string- Custom API base URL
Input Parameters (for AI agent):
urls: string[]- Array of URLs to extract content from (required)extractDepth?: "basic" | "advanced"- Override extraction depth per call
Tavily Crawl
Crawl websites to discover and extract content from multiple pages:
import { tavilyCrawl } from "@tavily/ai-sdk";
import { generateText, gateway, stepCountIs } from "ai";
const result = await generateText({
model: gateway("openai/gpt-5-mini"),
prompt: "Crawl tavily.com and tell me about their integrations",
tools: {
tavilyCrawl: tavilyCrawl(),
},
stopWhen: stepCountIs(3),
});
```…
Description from the npm listing.
- ai
- ai-sdk
- tools
- tavily
- search
- web-search
- crawl
- extract
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (544)Similar npm AI SDKs plugins
All 20 @tavily/ai-sdk alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@tavily/ai-sdk. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.