Search(搜索)
POST
/tavily/searchTavily是一家专注于AI搜索的公司,他们的搜索会为了LLM进行优化,以便于LLM进行数据检索。
官方文档:https://docs.tavily.com/docs/tavily-api/rest_api
价格:0.01PTC/次
请求参数
Body 参数multipart/form-data
api_key
string
API Key
示例值:
{{YOUR_API_KEY}}
query
string
必需
The search query string
示例值:
chatgpt
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{
"answer": "Your search result answer",
"query": "Your search query",
"response_time": "Your search result response time",
"follow_up_questions": [
"follow up question 1",
"follow up question 2",
"..."
],
"images": [
"image url 1",
"..."
]
"results": [
{
"title": "website's title",
"url": "https://your-search-result-url.com",
"content": "website's content",
"raw_content": "website's parsed raw content",
"score": "tavily's smart relevance score"
},{},{},{}
]
}
最后修改时间: 7 个月前