Tavily Extract
Tavily is a search engine built specifically for AI agents (LLMs), delivering real-time, accurate, and factual results at speed. Tavily offers an Extract endpoint that can be used to extract content from a URLs.
Overview
Integration details
Class | Package | Serializable | JS support | Package latest |
---|---|---|---|---|
TavilyExtract | langchain-tavily | ❌ | ❌ |
Tool features
Returns artifact | Native async | Return data | Pricing |
---|---|---|---|
❌ | ✅ | raw content and images | 1,000 free searches / month |
Setup
The integration lives in the langchain-tavily
package.
%pip install -qU langchain-tavily
Note: you may need to restart the kernel to use updated packages.
Credentials
We also need to set our Tavily API key. You can get an API key by visiting this site and creating an account.
import getpass
import os
if not os.environ.get("TAVILY_API_KEY"):
os.environ["TAVILY_API_KEY"] = getpass.getpass("Tavily API key:\n")