Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Tavily Site Map

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

Prix
À partir de $0.04USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 2 facultatifs

Bac à sable

Entrée
The starting URL to map.
15
Maximum traversal depth from the starting URL. Plage : de 1 à 5.
11000
Maximum number of URLs to discover. Plage : de 1 à 1000.
SortieExemple
Réponseoutputs · 667 B · 11 lignes
{
  "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"
  ]
}

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
TavilyÀ partir de $0.04 par appelJSON
TavilyÀ partir de $0.0016 par appelJSON
TavilyÀ partir de $0.008 par appelJSON

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

Questions

FAQ

Comment utiliser l’API Tavily Site Map ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/tavily/map avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Tavily Site Map ?

À partir de $0.04 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Tavily Site Map accepte-t-elle ?

Obligatoire : url (string). Facultatif : max_depth (integer) et limit (integer). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Tavily Site Map ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Tavily ?

Non. Tavily Site Map fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Tavily séparément.