← 返回接入教程
POST
/api/proxy/search · Search 搜索
根据查询语句搜索网络内容,返回最相关的结果。Body 与 Tavily 官方 /search 一致。
请求参数
代码示例
cURL
Python
JavaScript
Go
curl -X POST https://tavily.sharyuke.com/api/proxy/search \
-H "Authorization: Bearer thb-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "query": "最新的人工智能研究进展", "max_results": 5, "search_depth": "advanced", "topic": "general", "include_answer": true, "include_raw_content": false }'响应示例
{ "code": 0, "message": "ok", "data": { "ok": true, "data": { "query": "最新的人工智能研究进展", "answer": "人工智能研究在 2025 年持续聚焦多模态与 Agent...", "images": [], "results": [{ "title": "Example Result", "url": "https://example.com/article", "content": "...", "score": 0.95, "raw_content": null, "published_date": null, "favicon": null, "images": [], "id": "a3f9c2-04" }], "auto_parameters": null, "response_time": 1.67, "request_id": "123e4567-e89b-12d3-a456-426614174111" }, "usage": { "credits": 1 } } }错误码
准备好接入了吗?
邮箱注册即可免费使用,每月 3,600 次免费调用,无需信用卡。