Crawl
/search/v1/crawl● SupportedRequest body
urlstringrequiredThe root URL to begin the crawl.
limitintegeroptionalTotal number of links the crawler will process before stopping.
instructionsstringoptionalNatural language instructions for the crawler. When specified, the mapping cost increases to 2 API credits per 10 successful pages instead of 1 API credit per 10 pages.
chunks_per_sourceintegeroptionalChunks are short content snippets (maximum 500 characters each) pulled directly from the source. Use
chunks_per_sourceto define the maximum number of relevant chunks returned per source and to control theraw_contentlength. Chunks will appear in theraw_contentfield as:<chunk 1> [...] <chunk 2> [...] <chunk 3>. Available only wheninstructionsare provided. Must be between 1 and 5.max_depthintegeroptionalMax depth of the crawl. Defines how far from the base URL the crawler can explore.
max_breadthintegeroptionalMax number of links to follow per level of the tree (i.e., per page).
select_pathsarrayoptionalRegex patterns to select only URLs with specific path patterns (e.g.,
/docs/.*,/api/v1.*).select_domainsarrayoptionalRegex patterns to select crawling to specific domains or subdomains (e.g.,
^docs\.example\.com$).exclude_pathsarrayoptionalRegex patterns to exclude URLs with specific path patterns (e.g.,
/private/.*,/admin/.*).exclude_domainsarrayoptionalRegex patterns to exclude specific domains or subdomains from crawling (e.g.,
^private\.example\.com$).More parameters (7)
allow_externalbooleanoptionalWhether to include external domain links in the final results list.
include_imagesbooleanoptionalWhether to include images in the crawl results.
extract_depthstringoptionalAdvanced extraction retrieves more data, including tables and embedded content, with higher success but may increase latency.
basicextraction costs 1 credit per 5 successful extractions, whileadvancedextraction costs 2 credits per 5 successful extractions.formatstringoptionalThe format of the extracted web page content.
markdownreturns content in markdown format.textreturns plain text and may increase latency.include_faviconbooleanoptionalWhether to include the favicon URL for each result.
timeoutnumberoptionalMaximum time in seconds to wait for the crawl operation before timing out. Must be between 10 and 150 seconds.
include_usagebooleanoptionalWhether to include credit usage information in the response.
NOTE:The value may be 0 if the total use of /extract and /map have not yet reached minimum requirements. 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/crawl \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://docs.tavily.com","instructions":"Find all pages on the Python SDK","limit":5}'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.crawl(
"https://docs.tavily.com",
instructions="Find all pages on the Python SDK",
limit=5,
)
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.crawl("https://docs.tavily.com", {
instructions: "Find all pages on the Python SDK",
limit: 5,
});
console.log(response);Response 200
{
"base_url": "https://docs.tavily.com",
"results": [
{
"url": "https://docs.tavily.com/sdk/python/quick-start",
"raw_content": "```\nfrom tavily import TavilyClient from tavily import TavilyClient tavily_client = TavilyClient(api_key=\"tvly-YOUR_API_KEY\") tavily_client = TavilyClient(api_key =\"tvly-YOUR_API_KEY\")response = tav…(采样时截断:原文共 1812 字符,此处保留前 200)"
},
{
"url": "https://docs.tavily.com/sdk/python/reference",
"raw_content": "Request\n\n```\nfrom tavily import TavilyClient from tavily import TavilyClient # Step 1. Instantiating your TavilyClient# Step 1. Instantiating your TavilyClienttavily_client = TavilyClient(api_key=\"t…(采样时截断:原文共 2281 字符,此处保留前 200)"
},
{
"url": "https://pypi.org/project/tavily-python",
"raw_content": null
}
],
"response_time": 3.42,
"usage": {
"credits": 1
},
"request_id": "d28645f7-fecb-4760-bbbe-bfa06357ac67"
}Response
HTTP 200
Crawl results returned successfully
application/json
| Name | Type | Description |
|---|---|---|
| base_url | string | The base URL that was crawled. |
| results | array<object> | A list of extracted content from the crawled URLs. |
| results[].url | string | The URL that was crawled. |
| results[].raw_content | string | The full content extracted from the page. When query is provided, contains the top-ranked chunks joined by [...] separator. |
| results[].favicon | string | The favicon URL for the result. |
| 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. |