The Tavily Cookbook provides code and guides designed to help developers build with Tavily's search, extract, crawl, and map APIs, offering copy-able code snippets that you can easily integrate into your own projects.
Sign up for Tavily at app.tavily.com to get your API key.
While the code examples are primarily written in Python, the concepts can be adapted to any programming language that supports interaction with the Tavily API.
If you're new to working with the Tavily API, we recommend starting with our Tavily API Fundamentals course to get a solid foundation. This tutorial series follows a step-by-step learning path with three stand-alone tutorials:
- Intro: Learn the basics of web access.
- Web Agent: Build a web agent that can search, scrape, and crawl the web.
- Hybrid Agent:Build a system that combines real-time web information with private knowledge base data.
- Profile Search: Learn how to search and extract professional background information from LinkedIn profiles.
- Product News Tracker: Monitor and collect product-related news using time-filtered and specialized news search capabilities
- Getting Started: Learn the fundamentals of web crawling with Tavily's crawl and map endpoints, including URL discovery, recursive navigation, and content extraction.
- Crawl to RAG: Build a complete RAG system by crawling websites and converting content into a searchable knowledge base with vector embeddings and question-answering capabilities.
- Agent Grounding: Create an intelligent research agent that uses Tavily-LangChain integration to autonomously search, map, and extract web data with LangGraph.
- Data Collection: Collect and export website content as organized PDF files, perfect for creating offline archives, research documentation, and building local knowledge bases.
Looking for more resources to enhance your experience with Tavily and AI Agents? Check out these helpful links: