Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

tavily-apitavily API 搜索

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

11,925

周安装

507

GitHub Stars

公开资料未说明

下载量

4,178
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tavily-api(tavily API 搜索)
来源仓库:https://github.com/byungkyu/tavily-api
安装命令:
openclaw skills install tavily-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tavily-api

简介

tavily-api 用于网络搜索和内容提取,适合在 OpenClaw 中获取在线信息。

  • 适用于人工智能驱动的网络搜索和网站抓取场景。tavily-api 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 可绘制网站结构并提取 URL 内容进行分析。
  • 支持托管 API 密钥身份验证和多种搜索模式。
  • 安装前建议确认是否会触发网络请求或第三方 API 调用。

SKILL.md

name
tavily
description
|
metadata
author
maton
version
1.0
clawdbot
emoji
🧠
homepage
https://maton.ai
requires
env

Tavily

Access the Tavily API with managed API key authentication. Perform AI-powered web searches, extract content from URLs, crawl websites, map site structure, and run in-depth research tasks.

Quick Start

# Search the web
python <<'EOF'
import urllib.request, os, json
data = json.dumps({"query": "latest AI news", "max_results": 5}).encode()
req = urllib.request.Request('https://gateway.maton.ai/tavily/search', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Base URL

https://gateway.maton.ai/tavily/{endpoint}

Replace {endpoint} with the Tavily API endpoint (search, extract, crawl, map, research). The gateway proxies requests to api.tavily.com and automatically injects your API key.

Authentication

All requests require the Maton API key in the Authorization header:

Authorization: Bearer $MATON_API_KEY

Environment Variable: Set your API key as MATON_API_KEY:

export MATON_API_KEY="YOUR_API_KEY"

Getting Your API Key

  1. Sign in or create an account at maton.ai
  2. Go to maton.ai/settings
  3. Copy your API key

Connection Management

Manage your Tavily API key connections at https://ctrl.maton.ai.

List Connections

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections?app=tavily&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Create Connection

python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'tavily', 'method': 'API_KEY'}).encode()
req = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Open the returned url in a browser to enter your Tavily API key.

Get Connection

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Delete Connection

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Specifying Connection

If you have multiple Tavily connections, specify which one to use with the Maton-Connection header:

python <<'EOF'
import urllib.request, os, json
data = json.dumps({"query": "AI news"}).encode()
req = urllib.request.Request('https://gateway.maton.ai/tavily/search', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

If omitted, the gateway uses the default (oldest) active connection.

API Reference

Search

Perform AI-powered web search with optional answer generation.

POST /tavily/search
Content-Type: application/json

{
  "query": "What is artificial intelligence?",
  "max_results": 5
}

Request Parameters:

ParameterTypeRequiredDescription
querystringYesSearch query string
max_resultsintegerNoNumber of results (0-20, default 5)
search_depthstringNobasic, advanced, fast, ultra-fast (default: basic)
topicstringNogeneral or news (default: general)
include_answerboolean/stringNotrue, false, basic, advanced
include_raw_contentboolean/stringNotrue, false, markdown, text
include_imagesbooleanNoInclude image results
include_domainsarrayNoOnly search these domains (max 300)
exclude_domainsarrayNoExclude these domains (max 150)
time_rangestringNoday, week, month, year
start_datestringNoFilter by date (YYYY-MM-DD)
end_datestringNoFilter by date (YYYY-MM-DD)

Response:

{
  "query": "What is artificial intelligence?",
  "answer": "Artificial intelligence (AI) is...",
  "results": [
    {
      "title": "What is AI?",
      "url": "https://example.com/ai",
      "content": "AI is a branch of computer science...",
      "score": 0.95
    }
  ],
  "response_time": 0.55
}

Extract

Extract content from one or more URLs.

POST /tavily/extract
Content-Type: application/json

{
  "urls": ["https://example.com/article"],
  "format": "markdown"
}

Request Parameters:

ParameterTypeRequiredDescription
urlsstring/arrayYesURL or array of URLs to extract
querystringNoUser intent for reranking content
chunks_per_sourceintegerNoMax chunks per source (1-5, default 3)
extract_depthstringNobasic or advanced (default: basic)
formatstringNomarkdown or text (default: markdown)
include_imagesbooleanNoInclude extracted images
timeoutfloatNoMax wait time in seconds (1-60)

Response:

{
  "results": [
    {
      "url": "https://example.com/article",
      "raw_content": "# Article Title\
\
Content in markdown...",
      "images": [],
      "favicon": "https://example.com/favicon.ico"
    }
  ],
  "failed_results": [],
  "response_time": 0.01
}

Map

Discover URLs from a website without extracting content.

POST /tavily/map
Content-Type: application/json

{
  "url": "https://example.com",
  "limit": 20
}

Request Parameters:

ParameterTypeRequiredDescription
urlstringYesRoot URL to begin mapping
instructionsstringNoNatural language guidance for crawler
max_depthintegerNoExploration depth (1-5, default 1)
max_breadthintegerNoLinks per page level (1-500, default 20)
limitintegerNoTotal links to process (default 50)
select_pathsarrayNoRegex patterns for URL inclusion
exclude_pathsarrayNoRegex patterns for URL exclusion
allow_externalbooleanNoInclude external links (default true)
timeoutfloatNoMax wait time (10-150 seconds)

Response:

{
  "base_url": "https://example.com",
  "results": [
    "https://example.com/about",
    "https://example.com/products",
    "https://example.com/contact"
  ],
  "response_time": 0.1
}

Crawl

Crawl a website and extract content from discovered pages.

POST /tavily/crawl
Content-Type: application/json

{
  "url": "https://example.com",
  "limit": 10,
  "max_depth": 2
}

Request Parameters:

ParameterTypeRequiredDescription
urlstringYesRoot URL to begin crawl
instructionsstringNoNatural language guidance (2x cost)
chunks_per_sourceintegerNoMax snippets per source (1-5, default 3)
max_depthintegerNoExploration depth (1-5, default 1)
max_breadthintegerNoLinks per page level (1-500, default 20)
limitintegerNoTotal links to process (default 50)
select_pathsarrayNoRegex patterns for URL inclusion
exclude_pathsarrayNoRegex patterns for URL exclusion
allow_externalbooleanNoInclude external links (default true)
extract_depthstringNobasic or advanced (default: basic)
formatstringNomarkdown or text (default: markdown)
timeoutfloatNoMax wait time (10-150 seconds)

Response:

{
  "base_url": "https://example.com",
  "results": [
    {
      "url": "https://example.com/about",
      "raw_content": "# About Us\
\
Content...",
      "favicon": "https://example.com/favicon.ico"
    }
  ],
  "response_time": 0.09
}

Research Tasks

Run async research tasks that gather sources and synthesize findings.

Create Research Task

POST /tavily/research
Content-Type: application/json

{
  "input": "What are the latest developments in AI safety?",
  "model": "mini"
}

Request Parameters:

ParameterTypeRequiredDescription
inputstringYesResearch task or question
modelstringNomini, pro, or auto (default: auto)
streambooleanNoStream results via SSE (default: false)
output_schemaobjectNoJSON Schema for structured output
citation_formatstringNonumbered, mla, apa, chicago

Response:

{
  "request_id": "582a6eec-9a10-43ba-830f-d9a1aeb19f07",
  "status": "pending",
  "input": "What are the latest developments in AI safety?",
  "model": "mini",
  "created_at": "2026-03-08T11:36:12.674507+00:00",
  "response_time": 0.05
}

Get Research Task

GET /tavily/research/{request_id}

Response (completed):

{
  "request_id": "582a6eec-9a10-43ba-830f-d9a1aeb19f07",
  "status": "completed",
  "content": "## AI Safety Developments\
\
Research findings...",
  "sources": [
    {
      "title": "Source Title",
      "url": "https://example.com/source",
      "favicon": "https://example.com/favicon.ico"
    }
  ],
  "created_at": "2026-03-08T11:36:12.674507+00:00",
  "response_time": 45
}

Status values: pending, in_progress, completed, failed

Code Examples

JavaScript

// Search with answer
const response = await fetch('https://gateway.maton.ai/tavily/search', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    query: 'latest AI news',
    max_results: 5,
    include_answer: true
  })
});
const data = await response.json();

Python

import os
import requests

# Search with answer
response = requests.post(
    'https://gateway.maton.ai/tavily/search',
    headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'},
    json={
        'query': 'latest AI news',
        'max_results': 5,
        'include_answer': True
    }
)
data = response.json()

Notes

  • Search endpoints return AI-generated answers when include_answer is enabled
  • Map returns URLs only; Crawl returns URLs with extracted content
  • Using instructions parameter in crawl/map doubles the credit cost
  • Research tasks are async - poll with GET to check status
  • Research models: mini (fast/efficient), pro (comprehensive)
  • IMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments

Error Handling

StatusMeaning
400Missing Tavily connection or invalid request
401Invalid or missing Maton API key
429Rate limit exceeded
432Plan limit exceeded
433Pay-as-you-go limit exceeded
4xx/5xxPassthrough error from Tavily API

Resources

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.65%
按下载量换算3,035

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills