Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Tavily Site Map

API 文件
https://api.sandbase.ai/v1/api/tavily/map

Discovers the URL structure of a target website without extracting full page content. Accepts a starting URL, maximum traversal depth, and URL discovery limits.

價格
自 $0.04 起美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 2 個選填

Playground

輸入
The starting URL to map.
15
Maximum traversal depth from the starting URL. 範圍:1 到 5。
11000
Maximum number of URLs to discover. 範圍:1 到 1000。
輸出範例
回應outputs · 667 B · 11 行
{
  "base_url": "https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/d074facb-a5df-4233-a4c1-223f9367b21c.com",
  "request_id": "0667ef21-2631-4422-a5bf-cde05b0cd663",
  "response_time": 0.09,
  "results": [
    "https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/d862898d-0dbb-4e43-8eb8-e5cb4bd32747.bin",
    "https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/5749e619-f363-4045-b3f1-9ecd37412b81.bin",
    "https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/bbc5f220-7079-4a2d-9e00-7e31ae1d9b6d.bin",
    "… 7 more items in the full response"
  ]
}

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Tavily Site Map API

Returns a list of URLs found on a website, starting from the url you provide. It does not return page content. You can set max_depth (1 to 5) and limit (1 to 1000) to bound the crawl.

Use cases

  • Map a documentation site to see which pages exist before you pull their content.
  • Build a list of page URLs on one domain to feed into a content extraction step.
  • Check whether a page such as a changelog or a Markdown version of a page is reachable from the start URL.
  • Compare the URL lists from two runs to spot added or removed pages.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tavily/map" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://docs.tavily.com"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
urlstringYesThe starting URL to map.
limitintegerNoMaximum number of URLs to discover.
max_depthintegerNoMaximum traversal depth from the starting URL.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "base_url": "https://docs.tavily.com",
  "request_id": "fc2b750c-6921-4ef2-835a-fc35e907522f",
  "response_time": 0.07,
  "results": [
    "https://docs.tavily.com/"
  ],
  "usage": {
    "credits": 2
  }
}

Response fields

FieldMeaning
base_urlThe starting URL that was mapped, echoed back from the request.
results[]List of discovered page URLs on the site. Each item is a full URL string.
request_idUnique ID for this request, as a UUID string.
response_timeTime the mapping took, as a number. The response does not state the unit.
usage.creditsNumber of credits this call used, as reported in the response.

Notes

  • Only url is required. Add max_depth and limit to keep the result small on large sites.
  • The results list holds plain URL strings with no titles or page text. Pass them to Tavily URL Content Extraction to get page content.
  • To find pages by topic instead of by site structure, use Tavily Search.

Pricing

Billed like Tavily's pay-as-you-go price of $0.008 per credit, where 10 returned pages use 1 credit (tavily.com, checked 2026-11-22 UTC): $0.0008 per page returned, or $0.0016 per page when you pass natural-language instructions. A map that returns 23 pages costs $0.0184. Tavily counts credits across calls, so small maps are not rounded up to a full credit. The estimate before a call assumes limit pages are returned (50 by default, $0.04). Failed calls are not charged.

探索更多

相關 APIs

所有 APIs
API價格回應
Tavily每次呼叫 $0.04 起JSON
Tavily每次呼叫 $0.0016 起JSON
Tavily每次呼叫 $0.008 起JSON

指南:Tavily alternatives: compare Exa and Firecrawl searchExa vs Tavily vs Firecrawl for AI agents

問題

常見問題

我要如何使用 Tavily Site Map API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/tavily/map。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Tavily Site Map API 的費用是多少?

每次起 $0.04,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Tavily Site Map API 接受哪些參數?

必要:url (string)。 選填:max_depth (integer) 和 limit (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Tavily Site Map API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Tavily 開發者帳號或 API 金鑰嗎?

不需要。Tavily Site Map 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Tavily API 存取權。