Signature
Discover links only
Crawl and scrape in one call
Parameter
options: CrawlOptions - see CrawlOptions for the full field list.
The only required field is url: string. Everything else has defaults.
Return type
Promise<CrawlResult> - see CrawlResult for the full shape.
Key fields:
BFS behavior
crawl() does breadth-first search starting from url:
- Fetch the seed and extract links
- Filter: same domain, not visited, matches
includePatterns, doesn’t matchexcludePatterns, not blocked by robots.txt - Enqueue matching links at
depth + 1if within bounds - Rate limit with
delayMsbetween requests - Stop when queue is empty or
maxPagesreached
Sticky proxy
When proxy pools are configured,crawl() picks one proxy at the start and uses it for every request in the session. This mimics real user browsing and avoids tripping anti-bot systems.
Where to go next
CrawlOptions
Every option with type and default.
CrawlResult
The full result type tree.

