Skip to main content
AgentsUse

Search and Retrieval APIs

Tavily

A web access API built for AI agents: search, extract, map, crawl, and research endpoints behind one key.

freemiumChecked 2026-10-29Source-verified

Quick decision

Best for
Agents that need current web facts with cited results, research workflows that combine search with page extraction, and teams that want one vendor for search and fetching.
Not ideal for
Fully offline or self-hosted stacks, and high-volume crawling without a credit budget.
Pricing model
API credit based service. The pricing page read on 2026-10-29 lists a free Researcher tier with 1,000 API credits per month and no credit card required, pay as you go at $0.008 per credit, a Project tier at $30 per month with 4,000 credits, and custom Enterprise pricing.
Deployment
cloud. API.
Authentication
api_key
Review state
Source-verified. Checked 2026-10-29; not locally tested by AgentsUse.

What the Tavily API returns and what a call costs

The Tavily search API is one POST to https://api.tavily.com/search with your key in an Authorization: Bearer header. It returns JSON with the query, an optional answer, a list of results (each with a title, url, content snippet and a relevance score) and the response time. A basic search costs 1 API credit and an advanced one costs 2. The free Researcher plan gives 1,000 credits a month with no credit card; after that, pay as you go is $0.008 a credit.

The fields an agent gets back

The results list is the part an agent loop reads every time. The answer field stays empty unless you ask for one with include_answer, and raw_content, published_date and images on each result appear only when you turn on the matching include_ option (or, for published_date, search with topic set to news).

Search response fields, from the Tavily search API reference, checked 2026-11-27
FieldWhat it holdsWhen it is filled
resultsThe ranked list: title, url, content (the snippet the agent reads), score, and an idAlways; max_results sets the count, 10 by default and 20 at most
answerA short answer Tavily writes from the resultsOnly with include_answer set to true, basic or advanced
raw_content (per result)The page text, as markdown or plain textOnly with include_raw_content
published_date (per result)The publication date Tavily foundWith include_published_date, or with topic set to news
imagesImage URLs for the queryOnly with include_images
usageCredits the call used, such as {"credits": 1}When you ask for usage in the request
response_time, request_idTiming, and an id to quote to supportAlways

A first call with curl

Get a key from the Tavily dashboard (keys in the docs start with tvly-) and keep it in an environment variable. The first command is the quickstart request from Tavily’s docs. The second adds parameters an agent loop often sets: a news search, a smaller result list, an answer, a domain filter and a usage report.

Quickstart request. From the Tavily quickstart. Replace the placeholder with your key, or use "Bearer $TAVILY_API_KEY" with the key exported in your shell.

Quickstart request
curl -X POST https://api.tavily.com/search \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer tvly-YOUR_API_KEY" \
  -d '{"query": "Who is Leo Messi?"}'

Search with an answer and a domain filter. Parameter names and values from the search API reference. include_domains takes up to 300 domains and exclude_domains up to 150. This call is basic depth, which is 1 credit. Tavily’s credits page lists no extra charge for include_answer, and with include_usage set the usage field in the response shows what the call actually used.

Search with an answer and a domain filter
curl -X POST https://api.tavily.com/search \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -d '{
    "query": "EU battery regulation news",
    "topic": "news",
    "search_depth": "basic",
    "max_results": 5,
    "include_answer": true,
    "include_domains": ["europa.eu"],
    "include_usage": true
  }'

What each endpoint costs in credits

Credits are the only meter, and the endpoints count them differently. Search is charged per request. Extract and map are charged per successful page, so a failed extraction costs nothing. Crawl is a map plus an extraction, and Tavily adds the two.

At $0.008 a credit, an advanced search costs 1.6 cents and a basic one 0.8 cents. The free 1,000 credits cover 1,000 basic searches or 500 advanced ones a month, and they renew every month. An agent that runs 300 advanced searches a day uses about 18,000 credits in a 30-day month, which is $144 on pay as you go before the 1,000 free credits, or $136 after them. Tavily’s credits page also lists monthly plans that lower the price per credit, from Project ($30 for 4,000 credits) up to Growth ($500 for 100,000); the pricing page itself shows only Project and Enterprise beside the free and pay-as-you-go options.

Credit cost per call, from Tavily’s API credits page, checked 2026-11-27
CallCreditsNote
Search, basic (also fast and ultra-fast)1 per requestThe default depth
Search, advanced2 per requestauto_parameters can switch a search to advanced, at 2 credits
Extract, basic1 per 5 successful URLsFailed extractions are free
Extract, advanced2 per 5 successful URLs
Map1 per 10 pages returned2 per 10 pages when you give instructions
CrawlMap cost plus extract costTavily’s example: 10 pages cost 3 credits at basic extraction, 5 at advanced

Rate limits and the errors to handle

Limits are per organization, or per user on a personal account, and every request counts once whatever its parameters. The free plan allows 100 requests a minute. Turning on pay as you go, or any paid plan from Project to Startup, raises that to 1,000, and Growth gets 1,500. Crawl and map stay at 100 a minute on every plan.

An unattended loop should handle these status codes from the search reference: 401 for a missing or wrong key, 429 when you hit the rate limit (wait for the Retry-After header), 432 when a request exceeds your plan’s usage limit, and 433 when it exceeds the pay-as-you-go limit you set. Treat 401, 432 and 433 as a stop, because a retry cannot fix a bad key or a spent budget. Only 429 is worth retrying, after the Retry-After wait.

The examples use placeholders; keep your own key out of shared files.

Use this profile in a stack

Open the browser workspace, search for Tavily, and add it to a saved stack or watchlist. The workspace is free, needs no sign-in, and stores stacks in your browser only.

What it does

Tavily is a web search and content API built for AI agents. One API key covers search, extraction, crawling, site mapping, and a research endpoint, so an agent can find sources, read pages, and gather multi-source answers through a single vendor. The official Python and JavaScript SDKs wrap those endpoints, and Tavily publishes an official MCP server for MCP clients.

The division of labor is clear: Tavily returns web content and ranked results, while your agent runtime decides what to ask and when to stop. Search results are tuned for LLM consumption rather than human result pages, and extraction turns fetched pages into cleaner text for the context window.

Costs run on API credits, so high-volume crawling needs a budget decision up front. Teams that mostly search can keep usage small; teams that crawl whole sites should meter calls before wiring Tavily into an unattended loop.

Capabilities on record

Core capability

  • Search API Source-verified

    Searches the web and returns ranked results suited to LLM and agent consumption.

  • Extract API Source-verified

    Extracts readable content from webpages for agent context.

  • Crawl API Source-verified

    Crawls websites with natural-language instructions for what to find.

  • Map API Source-verified

    Maps a website structure so an agent can choose which pages to fetch.

  • Research API Source-verified

    Runs a research task that gathers and synthesizes web sources into an answer.

  • MCP server Source-verified

    The official tavily-mcp server connects MCP clients to Tavily search, extract, map, and crawl tools, locally or through the hosted remote MCP endpoint.

Quick start

Search with the Python SDK

The same key works across the search, extract, crawl, map, and research endpoints.

Search with the Python SDK
pip install tavily-python

from tavily import TavilyClient

client = TavilyClient(api_key="tvly-YOUR_API_KEY")
print(client.search("Latest EU battery policy news"))

Source: https://docs.tavily.com/welcome. The example uses placeholders. Keep real credentials in your environment, not in shared configs, tickets, or repositories.

MCP support: Official tavily-mcp package and a hosted remote MCP server authenticated with your Tavily API key, or with OAuth in supported clients.

Works with

Frameworks

LangChain, CrewAI, Any HTTP or MCP client

SDKs and packages

Python (tavily-python), JavaScript (@tavily/core), REST API

Works with

MCP clients

Only support with a source is listed. An absent framework is unverified by AgentsUse, not incompatible.

Harness notes: result volume is the budget lever

From the Harness pillar: what this profile's vendor documentation says about running Tavily inside an agent harness.

  • max_results accepts 1 to 20. Tavily agent guidance sets 5 as the starting point. Every result re-enters the context on each following step, so a high ceiling taxes the whole run, not just one call.
  • Keep raw_content off unless a step needs full page text. Search snippets answer most routing questions at a fraction of the tokens.
  • On HTTP 429 the API returns a Retry-After header. Key retries off the status and that header, not the error text. Codes 432 and 433 mark plan and key limits, which a retry cannot fix.
Serves: PerformanceServes: Cost and observability

Source: Tavily documentation (rate limits; search parameters), checked 2026-10-08.

Health and maintenance

GitHub stars

1,423

Checked 2026-10-29

GitHub forks

190

Checked 2026-10-29

License
freemium
Maintainer
Tavily

Official SDK repository tavily-ai/tavily-python metrics and MIT SDK license from the GitHub API, fetched 2026-10-29. The Tavily service itself is closed.

Pricing and license

API credit based service. The pricing page read on 2026-10-29 lists a free Researcher tier with 1,000 API credits per month and no credit card required, pay as you go at $0.008 per credit, a Project tier at $30 per month with 4,000 credits, and custom Enterprise pricing.

Official pricing or docs →

Limitations and safety

  • Metered by credits, so unattended crawl loops need spending controls.
  • A managed service: no self-hosted fallback when Tavily is down or a source blocks it.
Safety

Agent tools can read data, write files, call APIs, and act through connected accounts. Start with a test account or read-only access, keep credentials in environment variables, and review agent actions before connecting anything that can spend money, send messages, or delete data.

Alternatives to Tavily

Common questions

What does Tavily do for an AI agent?

A web access API built for AI agents: search, extract, map, crawl, and research endpoints behind one key.

Is Tavily open source?

This profile records the pricing model as freemium. See the pricing section for the sourced summary.

Does Tavily support MCP?

Official tavily-mcp package and a hosted remote MCP server authenticated with your Tavily API key, or with OAuth in supported clients.

Is the Tavily API free?

Up to a point. The Researcher plan gives 1,000 API credits a month with no credit card, enough for 1,000 basic searches. Beyond that you pay $0.008 a credit on pay as you go, or buy a monthly plan.

What does a Tavily search return?

JSON with the query, a results list (title, url, content, score for each), the response time and a request id. An answer, raw page content, dates and images come back only when you ask for them.

How many credits does a Tavily search use?

One for a basic search, two for an advanced one. Extract costs 1 credit per 5 successful URLs at basic depth, and map 1 credit per 10 pages returned.

Where do I find the Tavily docs?

At docs.tavily.com. The search API reference lists every request parameter and response field, and separate pages cover credits and rate limits.

Sources and freshness

Checked 2026-11-27. Source-verified means the claims above trace to the listed sources; it does not mean AgentsUse ran the tool. Send corrections through the contact page. Back to the tools catalog.