tavily-python
Python wrapper for the Tavily API
What it is and what it does
Tavily Python is a client library that wraps the Tavily web intelligence API, letting you call search, content extraction, website crawling, site mapping, and research report generation from Python without writing HTTP requests directly. It handles authentication, response parsing, and error handling for you, and includes a keyless mode for trying search and extract without signing up.
The SDK is designed for integration into applications that need to gather web data programmatically—feeding context into RAG systems, answering questions with current web information, extracting structured content from multiple URLs, or building research workflows. It depends on requests, tiktoken, and httpx for HTTP transport and token counting, and requires Python 3.8 or later.
Use it for:
- Feed live web search results as context into a RAG or LLM application to ground answers in current information.
- Extract raw text and images from a batch of URLs for content analysis or data collection pipelines.
- Crawl a website with natural-language instructions to gather pages matching specific criteria.
- Generate structured research reports on a topic with automatic source gathering and citation formatting.
- Build a Q&A system that retrieves and synthesizes answers from the web in a single API call.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for the Tavily API, providing web search, content extraction, website crawling, site mapping, and research report generation directly from Python code.
Yes. The package is actively maintained, has low install friction, carries no security vulnerabilities, and uses a permissive MIT license. It is well-suited for developers building web-aware applications, RAG systems, or research automation. The keyless mode lets you try it immediately; an API key unlocks the full feature set. Install if you need programmatic web search, extraction, or research capabilities.
Install
tavily-python on PyPI
pip
pip install tavily-pythonuv
uv add tavily-pythonpoetry
poetry add tavily-pythonInstalling tavily-python
Before you install
Low friction installation with a pure-Python wheel. Active maintenance with recent commits and steady releases. Depends on requests, tiktoken, and httpx—all stable, widely-used libraries with no known friction.
License in practice
MIT license (permissive). No restrictions on commercial or proprietary use; you may modify and distribute freely as long as you include the license notice.
Quickstart
pip install tavily-python
from tavily import TavilyClient
client = TavilyClient(api_key="tvly-YOUR_API_KEY")
response = client.search("Who is Leo Messi?")
print(response)
Requires a Tavily API key for most endpoints (search, extract, crawl, map, research); keyless mode available for search() and extract() only with rate limits.
Verify before relying
- Whether the keyless mode rate limits are sufficient for typical development workflows.
- Performance characteristics and latency for large-scale crawl or research operations.
- Cost structure and pricing tiers for API key holders.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — requests, tiktoken, httpx |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,128,214/month — #1,781 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tavily_python-0.7.27-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
langchain-tavilyIntegrates Tavily's web search and content…
permissive · top 15,000 on PyPI
tavily-cliTavily CLI provides command-line and…
permissive · top 15,000 on PyPI
Crawl4AICrawl4AI is an async web crawler and scraper…
permissive · top 5,000 on PyPI
firecrawlA Python SDK for web scraping, crawling,…
permissive · top 5,000 on PyPI
scrapegraph-pyClient SDK for the ScrapeGraphAI managed API,…
permissive · top 15,000 on PyPI
firecrawl-pyClient library for the Firecrawl API that…
permissive · top 5,000 on PyPI
seltzSeltz is a Python SDK that provides web search…
unclear · top 15,000 on PyPI
serpapiOfficial Python client for SerpApi that queries…
permissive · top 15,000 on PyPI
valyuValyu provides a Python SDK for accessing web…
permissive · top 15,000 on PyPI
tako-sdkProvides a Python client library for the Tako…
permissive · top 15,000 on PyPI