SuperAPI AI 工具集

tavily

通用与其它

查看项目

更新于 10-16 02:36

技能介绍

用途:Tavily 提供面向 AI 的搜索 API,用于检索网页结果并返回可引用的标题、URL 与内容摘要,适合研究、资料收集和自动化流程中的检索环节。

主要能力:基础搜索支持 query、search_depth(basic 更快、advanced 召回更高)和 max_results。高级搜索还支持 include_answer(返回汇总答案)、include_domains(白名单)、exclude_domains(黑名单)和 include_raw_content(是否包含原始页面内容,默认 false)。响应为 JSON,通常含 answer 与 results 数组,results 中每项含 title、url、content、score。

使用方式:需在环境中设置 TAVILY_TOKEN。基础调用示例:curl -s -X POST "https://api.tavily.com/search" --header "Content-Type: application/json" --header "Authorization: Bearer $TAVILY_TOKEN" -d @/tmp/tavily_request.json,请求体为 JSON,如 {"query": "2025 AI Trending", "search_depth": "basic", "max_results": 5}。在 n8n 中可用 HTTP Request 节点:Method 为 POST,URL 为 https://api.tavily.com/search,Headers 为 Content-Type: application/json 与 Authorization: Bearer {{ $env.TAVILY_TOKEN }},Body 为 JSON。

适用场景:为智能体或自动化流程提供检索,将结果交给 LLM 做摘要、提取表格或生成报告;也可把结果接入 Notion、Slack 等下游节点。

限制与注意:advanced 消耗更多资源,仅在深度研究时使用;需关注配额与成本,自动化中应加过滤与限流;避免在 query 中直接发送密钥或 PII。若请求失败,可运行 zero doctor check-connector --env-name TAVILY_TOKEN 或 zero doctor check-connector --url https://api.tavily.com/search --method POST 排查。