← 返回
内容创作 Key 中文

Tavily Search

Search the web using Tavily's Search API. Returns relevant, accurate results with content snippets, scores, and metadata. Use when the user asks to search th...
使用Tavily Search API搜索网络。返回包含内容摘要、得分和元数据的相关、准确结果。当用户请求搜索时使用。
evanydl
内容创作 clawhub v7.0.0 4 版本 99907.3 Key: 需要
★ 1
Stars
📥 1,058
下载
💾 53
安装
4
版本
#ai#latest#search#tavily#web

概述

Search Skill

Search the web and get relevant results optimized for LLM consumption.

Requirements

Set your API key as an environment variable:

export TAVILY_API_KEY=tvly-...

Get an API key at tavily.com.

Quick Start

The script accepts a single --json argument — the raw Tavily API request body. The JSON maps 1:1 to the Tavily Search API.

./scripts/search.sh --json '{"query": "python async patterns"}'

Examples:

# Quick lookup
./scripts/search.sh --json '{"query": "OpenAI latest funding round"}'

# More results
./scripts/search.sh --json '{"query": "Stripe documentation", "max_results": 10}'

# Recent news only
./scripts/search.sh --json '{"query": "Landscape of electric vehicles 2026", "time_range": "week", "max_results": 10}'

# Scoped to specific sources
./scripts/search.sh --json '{"query": "NVIDIA stock analysis", "search_depth": "advanced"}'

Equivalent curl

The script is a thin wrapper around this call:

curl --request POST \
  --url https://api.tavily.com/search \
  --header "Authorization: Bearer $TAVILY_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "query": "latest developments in quantum computing",
    "max_results": 5
  }'

API Reference

Endpoint

POST https://api.tavily.com/search

Headers

HeaderValue
---------------
AuthorizationBearer
Content-Typeapplication/json

Request Body

FieldTypeDefaultDescription
-----------------------------------
querystringRequiredSearch query (keep under 400 chars)
max_resultsinteger10Maximum results (0-20)
search_depthstring"basic"basic, advanced
time_rangestringnullday, week, month, year
start_datestringnullReturn results after this date (YYYY-MM-DD)
end_datestringnullReturn results before this date (YYYY-MM-DD)
include_domainsarray[]Domains to include
exclude_domainsarray[]Domains to exclude
countrystringnullBoost results from a specific country (general topic only)
include_raw_contentbooleanfalseInclude full page content
include_imagesbooleanfalseInclude image results
include_image_descriptionsbooleanfalseInclude descriptions for images
include_faviconbooleanfalseInclude favicon URL for each result

Response Format

{
  "query": "latest developments in quantum computing",
  "results": [
    {
      "title": "Page Title",
      "url": "https://example.com/page",
      "content": "Extracted text snippet...",
      "score": 0.85
    }
  ],
  "response_time": 1.2
}

Search Depth

DepthLatencyRelevanceContent Type
-----------------------------------------
basicMediumHighNLP summary
advancedHigherHighestChunks

When to use each:

  • basic: General-purpose, balanced
  • advanced: Precision matters (default recommendation)

Data Handling

Never include in the JSON body:

  • Secrets, API keys, or credentials
  • Personal or sensitive user data

Tips

  • Keep queries under 400 characters - Think search query, not prompt
  • Break complex queries into sub-queries - Better results than one massive query
  • Use include_domains to focus on trusted sources
  • Use time_range for recent information

版本历史

共 4 个版本

  • v7.0.0 当前
    2026-03-29 06:24 安全 安全
  • v1.0.0
    2026-03-26 22:23
  • v4.2.0
    2026-03-18 18:09
  • v4.1.0
    2026-03-14 01:57

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,537
data-analysis

Tavily Research

evanydl
基于网络数据的综合研究,附有明确引用。适用于多源综合——对比、时事、市场分析等需求。
★ 0 📥 1,217
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 861 📥 200,133