Felo API PlatformFelo API Platform

Data API / Tavily / Map

Generate comprehensive site maps using Tavily Map.

List a site's URLs from a root url without fetching any page content. Steer it with natural-language instructions and regex select_paths / exclude_paths / select_domains filters. Returns base_url and results — a flat array of URL strings, not objects — with response_time and request_id. Use it to size a site before committing to a crawl, then fetch only the parts that matter with extractWebContent. When you want the content rather than the shape, post_tavily_crawl does both in one call.

Параметры

Параметров пути, запроса и заголовков нет.

Тело запроса

  • urlstringОбязательный

    The root URL to begin the mapping.

  • instructionsstringНеобязательный

    Natural language instructions for the crawler.

  • max_depthintegerНеобязательный

    Max depth of the mapping.

  • max_breadthintegerНеобязательный

    Max number of links to follow per level of the tree.

  • limitintegerНеобязательный

    Total number of links the crawler will process before stopping.

  • select_pathsstring[]Необязательный

    Regex patterns to select only URLs with specific path patterns.

  • select_domainsstring[]Необязательный

    Regex patterns to select crawling to specific domains or subdomains.

  • exclude_pathsstring[]Необязательный

    Regex patterns to exclude URLs with specific path patterns.

  • exclude_domainsstring[]Необязательный

    Regex patterns to exclude specific domains or subdomains from mapping.

  • allow_externalbooleanНеобязательный

    Include external domain links in the final results list.

  • timeoutnumberНеобязательный

    Maximum time in seconds to wait for the map operation.

  • include_usagebooleanНеобязательный

    Include credit usage information in the response.

Пример запроса

curl -X POST "https://openapi.felo.ai/v1/beta/tavily/map" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "<string>",
  "instructions": "<string>",
  "max_depth": 0,
  "max_breadth": 0,
  "limit": 0,
  "select_paths": [
    "<string>"
  ],
  "select_domains": [
    "<string>"
  ],
  "exclude_paths": [
    "<string>"
  ]
}'

Ответ

Поля ответа

  • base_urlstringНеобязательный

    The base URL that was mapped.

  • resultsstring[]Необязательный
  • response_timenumberНеобязательный

    Time in seconds it took to complete the request.

  • usageobjectНеобязательный
  • creditsintegerНеобязательный

    Credit usage details for the request.

  • request_idstringНеобязательный

    Unique request identifier.