Webhook Delivery
Configure HTTPS webhook URLs on your stream monitors or filter rules to receive HTTP POST callbacks for each detected tweet. All webhooks are signed with HMAC-SHA256.Setup
Setwebhook_url when creating a monitor or filter rule:
webhook_secret, one is auto-generated and returned in the response.
Webhook payload
Signature verification
Every webhook includes anX-Signature-256 header. Verify it to ensure the request is from ScrapeBadger:
Python
Node.js
Retry behavior
- ScrapeBadger expects a 2xx response within 10 seconds
- Failed deliveries are retried up to 3 times with exponential backoff
- Delivery status is visible in the delivery logs endpoint
Testing webhooks
Use the test endpoint to send a sample payload to your webhook URL:Managing webhooks
You can also manage webhooks separately from monitors using the dedicated webhook endpoints:Create Webhook
POST /v1/twitter/stream/webhooks
List Webhooks
GET /v1/twitter/stream/webhooks
Delete Webhook
DELETE /v1/twitter/stream/webhooks/
Test Webhook
POST /v1/twitter/stream/webhooks/test

