urlstringrequired
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",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/02743b37-0bea-4e73-a603-6b4320f9922f.txt",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/eef26394-1bf1-4fa0-ad47-3b6c1aebc608.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/5b0cd1d6-d7b9-4db5-9ed7-5e69848c214a.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/dbefa0cd-c2a5-444f-a820-a953024669ee.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/64aaf676-5552-4bfa-a967-83db1ee42fe1.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/dbf7c5cd-d7cf-48df-854b-1ca3d9b9fc1b.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/eb734a67-5385-425e-8adf-be5f3de698e0.bin"
]
}Select an example to load its inputs and result into the 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.$0.012 per successful call. Failed calls are not charged.
Start building
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/tavily/map" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"url": "https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/input/73ac2081-9c93-4d56-a0c0-0d23d590e501.com",
"limit": 10
}
SANDBASE_JSON
)
printf '%s\n' "$result"Set your SandBase API key in your server environment. Requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep your key on the server. Do not expose it in browser code.
urlstringrequiredThe starting URL to map.
max_depthintegerMaximum traversal depth from the starting URL.
limitintegerMaximum number of URLs to discover.
Saved example response for this API; no live request is made when viewing it.
{
"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",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/02743b37-0bea-4e73-a603-6b4320f9922f.txt",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/eef26394-1bf1-4fa0-ad47-3b6c1aebc608.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/5b0cd1d6-d7b9-4db5-9ed7-5e69848c214a.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/dbefa0cd-c2a5-444f-a820-a953024669ee.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/64aaf676-5552-4bfa-a967-83db1ee42fe1.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/dbf7c5cd-d7cf-48df-854b-1ca3d9b9fc1b.bin",
"https://static.sandbase.ai/examples/b1ca8e2d-8fe7-4358-99d8-4dac64d43e91/output/eb734a67-5385-425e-8adf-be5f3de698e0.bin"
]
}Explore more
| API | Price | Response |
|---|---|---|
Tavily Site MapThis API Tavily | $0.012 per call | JSON |
Tavily | $0.012 per call | JSON |
Tavily | $0.012 per call | JSON |
Questions
Send a POST request to https://api.sandbase.ai/v1/api/tavily/map with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
$0.012 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.
Required: url (string). Optional: max_depth (integer) and limit (integer). The Parameters table and the Playground on this page list every field.
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
No. Tavily Site Map runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Tavily API access separately.