Integrate Tavily’s powerful APIs natively in your Python apps.
Looking for the Python SDK Reference? Head to our Python SDK Reference and learn how to use tavily-python
.
The Python SDK allows for easy interaction with the Tavily API, offering the full range of our search functionality directly from your Python programs. Easily integrate smart search capabilities into your applications, harnessing Tavily’s powerful search features.
Get started with our Python SDK in less than 5 minutes!
You get 1,000 free API Credits every month. No credit card required.
You can install the Tavily Python SDK using the following:
With Tavily’s Python SDK, you can search the web in only 4 lines of code:
You can also easily extract content from URLs:
Tavily also allows you to perform a smart crawl starting at a given URL.
Our agent-first crawl endpoint is currently in open beta. Please repost any issues you encounter on our community page.
These examples are very simple, and you can do so much more with Tavily!
Our Python SDK supports the full feature range of our REST API, and more. We offer both a synchronous and an asynchronous client, for increased flexibility.
search
function lets you harness the full power of Tavily Search.extract
function allows you to easily retrieve web content with Tavily Extract.crawl
and map
functions allow you to intelligently traverse websites and extract content.For more details, head to the Python SDK Reference.