| name | brightdata-webhooks-events |
| description | Implement Bright Data webhook signature validation and event handling.
Use when setting up webhook endpoints, implementing signature verification,
or handling Bright Data event notifications securely.
Trigger with phrases like "brightdata webhook", "brightdata events",
"brightdata webhook signature", "handle brightdata events", "brightdata notifications".
|
| allowed-tools | Read, Write, Edit, Bash(curl:*) |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","scraping","data","brightdata"] |
| compatibility | Designed for Claude Code |
Bright Data Webhooks & Events
Overview
Handle Bright Data webhook deliveries from the Web Scraper API and Datasets API. When you trigger an async collection, Bright Data sends the results to your webhook URL with the collected data in JSON, NDJSON, or CSV format.
Prerequisites
- Web Scraper API or Datasets API configured
- HTTPS endpoint accessible from internet
- API token for webhook Authorization header
Instructions
Step 1: Configure Webhook URL When Triggering Collection
const API_TOKEN = process.env.BRIGHTDATA_API_TOKEN!;
async function triggerWithWebhook(datasetId: string, urls: string[]) {
const params = new URLSearchParams({
dataset_id: datasetId,
format: 'json',
endpoint: 'https://your-app.com/webhooks/brightdata',
uncompressed_webhook: 'true',
auth_header: `Bearer ${process.env.BRIGHTDATA_WEBHOOK_SECRET}`,
});
params.set('notify', 'https://your-app.com/webhooks/brightdata-notify');
const response = await fetch(
`https://api.brightdata.com/datasets/v3/trigger?`,
{
: ,
: {
: ,
: ,
},
: .(urls.( ({ url }))),
}
);
result = response.();
.(, result.);
result;
}