Schedules Endpoint
Set up recurring scraping jobs that run automatically on a schedule. Perfect for monitoring prices, tracking changes, or collecting data regularly.
POST
/v1/schedulesCreate a Schedule
Request
curl -X POST https://api.scrpy.co/v1/schedules \
-H #a5d6ff;">"Authorization: Bearer sk_live_xxxxx" \
-H #a5d6ff;">"Content-Type: application/json" \
-d #a5d6ff;">'{
"name": "Daily Price Check",
"url": "https://store.com/product/123",
"selectors": {
"price": ".price",
"availability": ".stock-status"
},
"cron": "0 9 * * *",
"timezone": "America/New_York",
"webhook": "https://yoursite.com/price-webhook"
}'Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Descriptive name for the schedule |
url | string | URL to scrape |
cron | string | Cron expression for scheduling |
timezone | string | IANA timezone (default: UTC) |
webhook | string | URL to receive results |
Cron Expression Examples
| Cron | Description |
|---|---|
0 * * * * | Every hour |
0 9 * * * | Daily at 9 AM |
0 9 * * 1-5 | Weekdays at 9 AM |
0 0 * * 0 | Weekly on Sunday at midnight |
*/15 * * * * | Every 15 minutes |
0 9,18 * * * | Daily at 9 AM and 6 PM |
GET
/v1/schedulesList Schedules
Retrieve all your scheduled scraping jobs.
PATCH
/v1/schedules/:idUpdate Schedule
Update an existing schedule's configuration.
POST
/v1/schedules/:id/pausePause / Resume
Temporarily pause or resume a schedule without deleting it.
bash
# Pause a schedule
POST /v1/schedules/:id/pause
# Resume a schedule
POST /v1/schedules/:id/resumeDELETE
/v1/schedules/:idDelete Schedule
Permanently delete a schedule.
Related
- Webhooks → - Receive schedule results
- Jobs Endpoint →