Installation
Add to yourCargo.toml:
Quick Start
Authentication
Get your API key from firecrawl.dev and initialize the client:Scraping
Basic Scrape
Scrape a single URL:Scrape with Options
Extract Structured Data
Extract data using a JSON schema:Crawling
Basic Crawl (Auto-Wait)
Crawl a website and wait for completion:Async Crawl (Manual Polling)
Start a crawl and check status manually:Cancel a Crawl
Map
Discover all URLs on a website:Map with Options
Search
Search the web:Batch Scraping
Scrape multiple URLs in parallel:Using v2 API
The SDK also provides access to the v2 API:Error Handling
The SDK uses theFirecrawlError enum for comprehensive error handling:
Configuration
Testing
Run the test suite:Examples
See the examples directory for more usage examples:example.rs- Basic v1 usagev2_example.rs- v2 API usageextract_example.rs- Structured data extractionsearch_example.rs- Web searchbatch_scrape_example.rs- Batch scrapingcancel_crawl_example.rs- Cancelling crawls