urlstringобязательно
The starting URL to map.
https://api.sandbase.ai/v1/api/tavily/mapDiscovers the URL structure of a target website without extracting full page content. Accepts a starting URL, maximum traversal depth, and URL discovery limits.
{
"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.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The starting URL to map. |
limit | integer | No | Maximum number of URLs to discover. |
max_depth | integer | No | Maximum traversal depth from the starting URL. |
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
}
}
| Field | Meaning |
|---|---|
base_url | The 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_id | Unique ID for this request, as a UUID string. |
response_time | Time the mapping took, as a number. The response does not state the unit. |
usage.credits | Number of credits this call used, as reported in the response. |
url is required. Add max_depth and limit to keep the result small on large sites.results list holds plain URL strings with no titles or page text. Pass them to Tavily URL Content Extraction to get page content.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.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/input/73ac2081-9c93-4d56-a0c0-0d23d590e501.com",
"limit": 10
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
urlstringобязательноThe starting URL to map.
max_depthintegerMaximum traversal depth from the starting URL.
limitintegerMaximum number of URLs to discover.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
{
"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"
]
}Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Tavily Site MapЭтот 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
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/tavily/map, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.04 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: url (string). Необязательные: max_depth (integer) и limit (integer). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Tavily Site Map работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Tavily.