Website Change Detection API: Rules, Webhooks and Code
A website change detection API checks pages on a schedule and pushes what changed to your code. How AyeWatch's REST API and signed webhook compare with a cron, fetch and diff script.
By AyeWatch Team5 min read
Short answer: A website change detection API checks a page on a schedule and tells your code when it changes. With AyeWatch you POST the page URL and a plain-English rule to /api/v1/topics, and each change that matches the rule arrives at your webhook as signed JSON with a written summary. API access needs a paid plan.
A website change detection API is a service you call from code to register pages, and that calls your code back when a page changes. It takes over the parts that are tedious to build: fetching on a schedule, storing snapshots, ignoring noise such as dates and rotating banners, and retrying delivery when your server is down.
What you would build without one
The first version is small. A cron job fetches the page, hashes the HTML and compares the hash with yesterday's. It breaks within a day, because pages carry timestamps, rotating promos, CSRF tokens and cookie banners, so the hash changes on every fetch. The usual fix is a CSS selector per site, which breaks again when the site ships a redesign.
Then come the other jobs: storing snapshots, deciding which changes matter, sending the alert, retrying when your receiver is down, and noticing when a site starts blocking your fetcher. Each is a few lines. Together they become a service you maintain.
AyeWatch replaces the selector with a sentence. You describe the change you care about, each check compares the page with what it saw before, and you get an alert only when a change matches.
Create a page monitor in one call
Create a key in API access settings, then send the page and your rule to POST /api/v1/topics. A name that is a URL creates a web page monitor. To check several pages as one monitor, send web_page_urls and use name as a label. A page monitor holds up to 3 URLs on Pro and 8 on Pro+, and costs 1 credit a check either way.
curl -X POST https://ayewatch.ai/api/v1/topics \
-H "Authorization: Bearer $AYEWATCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Halden Outdoor tent prices",
"web_page_urls": [
"https://haldenoutdoor.example/tents/ridge-2",
"https://haldenoutdoor.example/tents/ridge-3"
],
"description": "Alert me when the price or stock status of either tent changes. Ignore review counts and photos.",
"interval": "6_hours"
}'
The 201 response returns the monitor's id, name, description, interval, is_active and created_at. The interval must be one your plan allows, or send "monitoring_mode": "auto" instead. For a number you want compared, the Topics docs describe optional triggers, such as a price with the operator < and a numeric value, up to 4 per monitor.
What arrives at your webhook
Set the receiving URL once with PUT /api/v1/webhook or in Notification settings, Webhook. AyeWatch posts JSON when a check finds something new that matches the rule; a check that finds nothing new sends nothing. A made-up delivery for the tent monitor:
{
"topic_id": 4417,
"topic_name": "Halden Outdoor tent prices",
"update_id": 70215,
"headline": "Ridge 3 tent drops to $289",
"content": "The Ridge 3 page lists the tent at $289, down from $329. The Ridge 2 is unchanged at $249, and both are in stock.",
"created_at": "2026-12-03T08:40:00Z",
"evidence": [
{ "quote": "Ridge 3 Tent $289", "source_url": "https://haldenoutdoor.example/tents/ridge-3" }
]
}
You get a written summary with quotes and source links, not a raw HTML diff or a screenshot. Optional fields such as evidence can be missing, and new fields may be added, so ignore keys you don't know. Each request carries X-AyeWatch-Signature: sha256= followed by the HMAC-SHA256 of the raw body. Check it before you act: see the Node.js receiver or the Python examples.
Rules that keep the noise out
The rule does the job the CSS selector did in your script. Name the thing and the kind of change, and say what to ignore. Rules to copy:
- Pricing page: "Alert me when a plan's price, seat minimum or included features change. Ignore testimonials and FAQ edits."
- Changelog: "Alert me when an entry mentions a breaking change, a deprecation or a removal date."
- Careers page: "Alert me when a new engineering or data role is posted. Ignore removed roles."
- Terms of service: "Alert me when the data retention, arbitration or refund sections change."
- Council notices: "Alert me when a new planning notice for Ward 4 is published."
"Tell me about anything new" on a busy page sends you every banner swap. One sentence with a noun and a verb does better.
What this won't catch
- Pages behind a login. AyeWatch reads public pages the way a visitor does and cannot sign in.
- Sites that block automated readers. Some do. The first check shows what AyeWatch could read, so you know on day one whether the page works.
- Uptime. A change monitor is not a status checker. See uptime monitoring vs change detection.
- History. No endpoint returns past alerts or snapshots. Store each delivery as it arrives.
- Instant alerts. Checks run on a schedule: as often as hourly on Pro, and ASAP mode on Pro+ for the fastest checks.
Cost
AyeWatch Pro is $9/mo with 50 topics and hourly checks; Pro+ is $19/mo with 200 topics and ASAP mode. Every plan starts with a 7-day free trial. A page monitor costs 1 credit a check however many of its pages it reads. A 30-day month has 720 hourly checks, 120 at every 6 hours and 30 daily. Pro's 500 credits cover 16 monitors checked daily (16 × 30 = 480) or 4 checked every 6 hours (4 × 120 = 480). Pro+'s 1,500 cover two hourly monitors (2 × 720 = 1,440). API calls have no separate bill.
Set it up in five steps
- Create an API key in API access settings and keep it in an environment variable on your server.
- Deploy a receiver that checks X-AyeWatch-Signature against the raw body and answers with a 2xx within 10 seconds.
- Register its public HTTPS URL with PUT /api/v1/webhook and store the secret from the response.
- Create the monitor with the page URL, a one-sentence rule and an interval your plan allows.
- Open the monitor in the app after its first check to confirm AyeWatch could read the page, then wait for the first real delivery.
| Job | Cron, fetch and diff script | AyeWatch API |
|---|---|---|
| Scheduling | Your cron or queue | interval, or monitoring_mode auto |
| Snapshots | Your storage | Kept by AyeWatch |
| Noise (dates, banners, tokens) | A CSS selector per site | A plain-English rule |
| Several pages | One job per page | Up to 3 URLs per monitor on Pro, 8 on Pro+ |
| Delivery | Your code | Signed JSON POST, up to 10 attempts |
| Blocked sites | You find out when alerts stop | The first check shows what was read |
| Raw HTML diff | Yes | No. A written summary with quotes |
Start a monitor in under a minute
Describe a topic or paste a URL. Cancel before the trial ends and you pay nothing.
Try it free for 7 daysThe bottom line
Pick the page you check by hand most often, write the rule in one sentence and create it with a single POST. Get the webhook receiver right before you add a second page.
FAQ
Is there a free website change detection API?
AyeWatch's API needs a paid plan, and every plan starts with a 7-day free trial. A home-made cron and diff script costs nothing to run, but you maintain the selectors, storage and retries yourself.
Can one monitor cover several pages?
Yes. Send web_page_urls with up to 3 URLs on Pro or 8 on Pro+. The monitor still costs 1 credit a check.
Does the API return a diff of the page?
No. Each webhook delivery carries a headline, a written summary of what changed and, when available, quotes with their source URLs.
How often can AyeWatch check a page?
Pro checks as often as hourly, and Pro+ adds ASAP mode, the fastest checks. Auto starts at one check a day and checks more often while a page is busy.
Can I fetch past alerts through the API?
No. There is no alert-history endpoint. Save each webhook delivery when it arrives, keyed on update_id.