简体中文
cURL
curl --request POST \ --url https://api.firecrawl.dev/v2/crawl/params-preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "<string>", "prompt": "<string>" } '
{ "success": true, "data": { "url": "<string>", "includePaths": [ "<string>" ], "excludePaths": [ "<string>" ], "maxDepth": 123, "maxDiscoveryDepth": 123, "crawlEntireDomain": true, "allowExternalLinks": true, "allowSubdomains": true, "sitemap": "skip", "ignoreQueryParameters": true, "deduplicateSimilarURLs": true, "delay": 123, "limit": 123 } }
{ "url": "https://example.com", "prompt": "抓取整个网站,但排除 /admin 与 /api" }
{ "url": "https://example.com", "prompt": "抓取整个站点", "crawlEntireDomain": true, "excludePaths": ["/admin/.*", "/api/.*"], "sitemap": "include" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The URL to crawl
Natural language prompt describing what you want to crawl
10000
Successful response with generated crawl parameters
true
显示 子属性
URL patterns to include
URL patterns to exclude
Maximum crawl depth
Maximum discovery depth
Whether to crawl the entire domain
Whether to allow external links
Whether to allow subdomains
Sitemap handling strategy
skip
include
Whether to ignore query parameters
Whether to deduplicate similar URLs
Delay between requests in milliseconds
Maximum number of pages to crawl