Key takeaways
- A whole-page hash reports every dynamic element, so the choice is between a selector, a threshold rule and a plain-language description.
- AyeWatch retries a non-2xx response up to 10 times with backoff and abandons a request after 10 seconds, so the receiver must acknowledge first.
- Keep update_id in a unique index and order on created_at, because deliveries can arrive out of order.
Monitoring web pages programmatically looks like a solved problem until the first page redesigns itself every hour. Then the real work begins: telling a meaningful change from noise, surviving a receiver that is down, and not acting twice on one event. Those three problems decide whether a monitor is useful or just loud.
Problem one, diff noise
A naive check hashes the HTML. Anything that moves breaks the hash: an ad slot, a relative timestamp, a session id in a script tag. The first week produces a flood, the second produces a filter nobody trusts.
There are three ways out.
| Approach | How it decides | Where it fails |
|---|---|---|
| Hash the whole page | Byte equality | Any dynamic element |
| Extract a region with a selector | Compare one element | A redesign that renames the class |
| Describe the change in language | Compare meaning | A rule too vague to match |
The third is the one that scales across sites, because it does not depend on markup. AyeWatch takes a description per topic, and for precision a trigger with an entity, an attribute, an operator and a value. The operators include changed, crossed_above and crossed_below, which covers price and count thresholds without a diff at all.
Problem two, delivery that fails
A webhook receiver will be down. A deploy, a restart, a bad certificate. Any service worth using retries, and the details matter more than the promise.
The AyeWatch documentation states a 10 second timeout and exponential backoff up to 10 attempts for a non-2xx response. It also says deliveries can arrive out of order and new fields may appear over time.
Those three sentences set the receiver design:
- Verify X-AyeWatch-Signature, an HMAC-SHA256 of the raw body, in constant time, before parsing.
- Write the event, return 2xx, and do the work in a queue.
- Keep
update_idin a unique index so a retry is a no-op. - Order on
created_atrather than arrival.
Problem three, the wrong duplicate
The subtlest bug is a side effect that runs twice: a Slack post, a ticket, a customer email. Idempotency at the storage layer fixes it, and it has to be keyed on the event id, not on the content. Two genuine updates can share a headline.
What a good payload gives you
A payload that carries evidence is worth more than one that carries a diff. The AyeWatch event includes a headline written for a person, the change body in content and content_detail, created_at, and quotes with their source URLs. A reviewer can confirm a claim without opening the page.
score and novelty_class add a second dimension: how confident the service is, and whether this is new. Use them to route, not to suppress. A quiet threshold that drops a real event is worse than a noisy one that gets triaged.
What the service should not be asked to do
It watches public sources. It cannot log into a dashboard, pass a bot check or complete a purchase. It also does not decide what your business does with an event. Keep the reaction in your code and the integration stays small.
Keys come with paid plans, limited to 120 requests a minute by default, with rate limit headers on authenticated responses. Push and the feed are on every plan; email, Slack, Discord, webhooks and the API are paid, from $9 a month in monitoring credits, with a 7 day trial.
A build order that avoids rework
Start with the receiver, not the monitor. A request bin, then a handler that logs and verifies. Then one monitor on a page you already trust. Then the queue and the unique index. The order matters because a broken receiver makes every monitor look unreliable.
AyeWatch publishes the payload shape and the retry rules in its documentation, which is enough to build the receiver before the first monitor exists.
Frequently asked questions
Should I filter events by score?
Route on it rather than suppress. A threshold that drops a real event is worse than a noisy one that gets triaged later.
Does the payload include the page content?
It includes the change itself in content and content_detail, plus quotes with their source URLs so a reviewer can confirm a claim.
What should I build first?
The receiver. A broken receiver makes every monitor look unreliable, so verify the signature and log an event before creating your first monitor.
Sources
- AyeWatch documentationAyeWatch
- AyeWatchAyeWatch