Skip to main content
For AI agents: Use llms.txt for a full index of all documentation.

Build with Tavily

Your journey to state-of-the-art web search starts right here.

Installation

Python SDK

pip install tavily-python

JavaScript SDK

npm i @tavily/core
Try it now
from tavily import TavilyClient

tavily_client = TavilyClient(api_key="tvly-YOUR_API_KEY")
response = tavily_client.search("Who is Leo Messi?")

print(response)
const { tavily } = require("@tavily/core");

const tvly = tavily({ apiKey: "tvly-YOUR_API_KEY" });
const response = await tvly.search("Who is Leo Messi?");

console.log(response);
curl --request POST \
  --url https://api.tavily.com/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "who is Leo Messi?",
  "auto_parameters": false,
  "topic": "general",
  "search_depth": "basic",
  "chunks_per_source": 3,
  "max_results": 1,
  "time_range": null,
  "start_date": "2025-02-09",
  "end_date": "2025-12-29",
  "include_answer": false,
  "include_raw_content": false,
  "include_images": false,
  "include_image_descriptions": false,
  "include_favicon": false,
  "include_domains": [],
  "exclude_domains": [],
  "country": null,
  "include_usage": false
}
'
Learn more about the Search API →

Developer Resources

API Credits Overview

Learn how Tavily API credits work.

Rate Limits

Understand Tavily’s rate limits and policies.

Playground

Try Tavily’s APIs interactively.