Tavily’s Search API is a search engine built specifically for AI agents (LLMs), delivering real-time, accurate, and factual results at speed.Documentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-mdrxyo-1777658790-7be347c.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This will help you getting started withTavilySearchAPIRetriever retrieval. For detailed documentation of all TavilySearchAPIRetriever features and configurations head to the API reference.
Integration details
| Retriever | Source | Package |
|---|---|---|
TavilySearchAPIRetriever | Information on the web. | @langchain/community |
Setup
You will need to populate aTAVILY_API_KEY environment variable with your Tavily API key or pass it into the constructor as apiKey. Obtain a key by signing up on their website.
If you want to get automated tracing from individual queries, you can also set your LangSmith API key by uncommenting below:
Installation
This retriever lives in the@langchain/community package:
Instantiation
Now we can instantiate our retriever:kwargs object.
Usage
API reference
For detailed documentation of allTavilySearchAPIRetriever features and configurations head to the API reference.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

