Supported Operations
Webhooks are supported for most major Firecrawl operations:- Crawl - Get notified as pages are crawled and when crawls complete
- Batch scrape - Receive updates for each URL scraped in a batch
- Extract - Receive updates when extract jobs start, complete, or fail
Quick Setup
Configure webhooks by adding awebhook
object to your request:
JSON
Configuration Options
Field | Type | Required | Description |
---|---|---|---|
url | string | ✅ | Your webhook endpoint URL |
headers | object | ❌ | Custom headers to include in webhook requests |
metadata | object | ❌ | Custom data included in all webhook payloads |
events | array | ❌ | Event types to receive (default: all events) |
Basic Usage Examples
Crawl with Webhook
cURL
Batch Scrape with Webhook
cURL
Handling Webhooks
Here’s a simple example of handling webhooks in your application:Best Practices
- Respond quickly – Always return a
2xx
status code within 30 seconds - Process asynchronously – For heavy processing, queue the work and respond immediately
- Validate authenticity – Always verify the webhook signature (see Security)