← 返回接入教程
POST
/api/proxy/map · Map 站点地图
从一个起始 URL 开始,按深度遍历站点结构,只返回 URL + 标题(不抓正文),适合先探清结构再按需 extract/crawl。
请求参数
代码示例
cURL
Python
JavaScript
Go
curl -X POST https://tavily.sharyuke.com/api/proxy/map \
-H "Authorization: Bearer thb-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "url": "https://example.com", "max_depth": 2, "limit": 50, "select_paths": ["/docs/.*"] }'响应示例
{ "code": 0, "message": "ok", "data": { "ok": true, "data": { "base_url": "https://example.com", "results": [{ "url": "https://example.com/docs/intro", "title": "Introduction" }, { "url": "https://example.com/docs/api" }], "response_time": 0.6 }, "credits": 1 } }错误码
准备好接入了吗?
邮箱注册即可免费使用,每月 7,200 次免费调用,无需信用卡。