Website Monitoring
Monitor websites for changes and receive alerts via email, Slack, or webhook.
Overview
The Monitoring API allows you to:
- Track changes on any webpage automatically
- Get instant alerts when content changes
- Monitor specific elements using CSS selectors
- Use AI to summarize what changed
Key Features
| Feature | Description |
|---|---|
| Full Page Monitoring | Track changes to entire page content |
| Selector Monitoring | Watch specific elements using CSS selectors |
| AI Change Detection | Intelligent summarization of what changed |
| Multiple Alert Channels | Email, Slack, and webhook notifications |
| Flexible Intervals | From every 5 minutes to weekly checks |
Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/monitoring | Create a new monitor |
GET | /v1/monitoring | List all monitors |
GET | /v1/monitoring/:id | Get monitor details |
PATCH | /v1/monitoring/:id | Update a monitor |
DELETE | /v1/monitoring/:id | Delete a monitor |
POST | /v1/monitoring/:id/pause | Pause a monitor |
POST | /v1/monitoring/:id/resume | Resume a monitor |
POST | /v1/monitoring/:id/check-now | Trigger immediate check |
GET | /v1/monitoring/:id/checks | Get check history |
GET | /v1/monitoring/:id/alerts | Get alert history |
Alert Channels
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/monitoring/:id/channels | Add alert channel |
PATCH | /v1/monitoring/:id/channels/:channelId | Update channel |
DELETE | /v1/monitoring/:id/channels/:channelId | Remove channel |
Credits
- 1 credit per check
- Credits are deducted when checks run (not when monitor is created)
Quick Example
# Create a price monitor
curl -X POST https://api.scrapebit.com/v1/monitoring \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Product Price Monitor",
"url": "https://shop.example.com/product/123",
"monitorType": "selector",
"selector": ".product-price",
"checkInterval": "hourly",
"alertChannels": [
{
"type": "email",
"email": "alerts@example.com"
}
]
}'