Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Tavily Site Map

Docs da 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.

Preço
A partir de $0.04USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 2 opcionais

Playground

Entrada
The starting URL to map.
15
Maximum traversal depth from the starting URL. Intervalo: 1 a 5.
11000
Maximum number of URLs to discover. Intervalo: 1 a 1000.
SaídaExemplo
Respostaoutputs · 667 B · 11 linhas
{
  "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"
  ]
}

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da API

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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
TavilyA partir de $0.04 por chamadaJSON
TavilyA partir de $0.0016 por chamadaJSON
TavilyA partir de $0.008 por chamadaJSON

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

Perguntas

FAQ

Como eu uso a API Tavily Site Map?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/tavily/map com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Tavily Site Map?

A partir de $0.04 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Tavily Site Map aceita?

Obrigatórios: url (string). Opcionais: max_depth (integer) e limit (integer). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Tavily Site Map retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Tavily ou de uma chave de API?

Não. Tavily Site Map funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Tavily separadamente.