Skip to content
中文

Map

POST/search/v1/map● Supported

Official Tavily docs ↗

Request body

  • urlstringrequired

    The root URL to begin the mapping.

  • limitintegeroptional
    default 50

    Total number of links the crawler will process before stopping.

  • instructionsstringoptional
    default null

    Natural language instructions for the crawler. When specified, the cost increases to 2 API credits per 10 successful pages instead of 1 API credit per 10 pages.

  • max_depthintegeroptional
    default 1

    Max depth of the mapping. Defines how far from the base URL the crawler can explore.

  • max_breadthintegeroptional
    default 20

    Max number of links to follow per level of the tree (i.e., per page).

  • select_pathsarrayoptional
    default null

    Regex patterns to select only URLs with specific path patterns (e.g., /docs/.*, /api/v1.*).

  • select_domainsarrayoptional
    default null

    Regex patterns to select crawling to specific domains or subdomains (e.g., ^docs\.example\.com$).

  • exclude_pathsarrayoptional
    default null

    Regex patterns to exclude URLs with specific path patterns (e.g., /private/.*, /admin/.*).

  • exclude_domainsarrayoptional
    default null

    Regex patterns to exclude specific domains or subdomains from crawling (e.g., ^private\.example\.com$).

  • allow_externalbooleanoptional
    default true

    Whether to include external domain links in the final results list.

  • More parameters (2)
    • timeoutnumberoptional
      default 150

      Maximum time in seconds to wait for the map operation before timing out. Must be between 10 and 150 seconds.

    • include_usagebooleanoptional
      default false

      Whether to include credit usage information in the response.NOTE:The value may be 0 if the total successful pages mapped has not yet reached 10 calls. See our Credits & Pricing documentation for details.

Returns

200

Your account balance must be above 0 before the call. Billed by the credits the call actually consumed, $0.01 per credit; when the upstream reports no usage, the call is billed at the most it could have consumed.

Errors follow the Tavily format — see error codes

Request

curl
curl https://api.deepraxis.com/search/v1/map \
  -H "Authorization: Bearer $PRAXIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://docs.tavily.com","limit":10}'
Python
from tavily import TavilyClient

tavily_client = TavilyClient(
    api_key="$PRAXIS_API_KEY",
    api_base_url="https://api.deepraxis.com/search/v1",
)

response = tavily_client.map("https://docs.tavily.com", limit=10)
print(response)
TypeScript
import { tavily } from "@tavily/core";

const tvly = tavily({
  apiKey: "$PRAXIS_API_KEY",
  apiBaseURL: "https://api.deepraxis.com/search/v1",
});

const response = await tvly.map("https://docs.tavily.com", { limit: 10 });
console.log(response);

Response 200

{
  "base_url": "https://docs.tavily.com",
  "results": [
    "https://docs.tavily.com/",
    "https://docs.tavily.com/changelog",
    "https://docs.tavily.com/llms.txt",
    "https://docs.tavily.com/agents",
    "https://docs.tavily.com/welcome",
    "https://docs.tavily.com/documentation/mcp",
    "https://docs.tavily.com/documentation/about",
    "https://docs.tavily.com/examples/hub",
    "https://docs.tavily.com/documentation/help",
    "https://docs.tavily.com/documentation/api-reference/introduction"
  ],
  "response_time": 0.07,
  "usage": {
    "credits": 1
  },
  "request_id": "5a02881d-6c0b-493a-9a55-a75196316049"
}

Response

HTTP 200

Map results returned successfully

application/json

Name Type Description
base_url string The base URL that was mapped.
results array<string> A list of URLs that were discovered during the mapping.
response_time number Time in seconds it took to complete the request.
usage object Credit usage details for the request.
request_id string A unique request identifier you can share with customer support to help resolve issues with specific requests.