What you’ll see
changedetection.io
- Watches: every watch, in this order. First the watches changedetection.io can’t check, in orange, with the reason. Then changes you haven’t seen, with a blue dot, newest first. Then the rest, by when they last changed, and paused watches last. The grey line under each is the first line that changed in the last 7 days. For a change that only took lines away, it’s the first line removed. With no change in the last 7 days, the line shows the watch’s group. Seven watches show, with Show N more past that, up to 60. A click opens the watch’s page.
- Server: how many changes there were in the last 7 days and on how many pages, whether checks are on time (how many are running now and how many are overdue), how many watches there are and how many are paused, and the version.
- Details (⌘I) says how many watches there are, or that they’re all paused. It turns red only when changedetection.io stops answering. A watch that can’t be checked is an orange row and isn’t a problem.
Watch
What a row opens.
- Can’t check this page: a note with changedetection.io’s reason, shown only while the watch’s last check failed.
- Latest change: the lines that changed in the newest change, as changedetection.io marks them:
(changed)and(into)for a line that changed,(added)and(removed)for one that came or went. Its corner has Mark as seen while the change is new. Before a watch’s first change, the card says so. If changedetection.io no longer keeps the snapshot before the newest, the card says there’s nothing to compare it with. - Snapshots, 7 days: how many snapshots changedetection.io kept each day, and how many it has kept since the first. It keeps one for each change, plus the first check.
- Watch: when it was last checked and how often, its address, its group, and whether its alerts are muted, for it or for every watch. Its corner has Check now, Pause or Resume, and Mute alerts or Unmute alerts.
Status
- Watches the server, not the pages it checks.
- Red once changedetection.io stops answering.
- A watch that can’t be checked shows orange in its row and isn’t a problem for the page.
- Notifies you when it turns orange or red.
How it connects
The pages read changedetection.io’s REST API with its API key, sent in an x-api-key header.
Requests it makes on its own 6
- GET
/api/v1/watchEvery watch: its title, address, group, when it was checked and last changed, its error, and whether you’ve seen its change.
Every 10 minutes
- GET
/api/v1/tagsGroup names.
Every 10 minutes, and every 5 for an open watch’s page
- GET
/api/v1/systeminfoThe version, the number of watches, and the checks running now and overdue.
Every 10 minutes, twice: once on its own for Details, and once with the list. Every 5 minutes for an open watch’s page, to see whether every watch is paused or muted
- GET
/api/v1/changes?from=… &format=json &context=0 The changes of the last 7 days, for each watch’s grey line and the Server card. If it fails, for example on a server too old to have it, or a big install that takes too long, the list still updates, with groups in place of change lines.
Every 10 minutes
GET /api/v1/watch/{uuid},…/historyThe watch (read twice: for its facts, and beside its latest change), and when each of its snapshots was kept. Each card reads its own requests, so a history too big to read leaves the facts and buttons working.
Every 5 minutes, while a watch’s page is open
- GET
/api/v1/watch/{uuid}/difference/previous/{last changed}?format=text &changesOnly=true Its latest change, up to the snapshot the watch’s own answer names, so Mark as seen clears that change and not a newer one. Before a watch has changed, changedetection.io answers 404, which the page reads as no change yet.
Every 5 minutes, while a watch’s page is open
Requests it makes when you act 2
- GET
/api/v1/watch/{uuid}?recheck=1 Puts the watch at the front of the queue.
When you press Check now
- PUT
/api/v1/watch/{uuid}Sets
last_viewed,pausedornotification_muted.When you press Mark as seen, Pause, Resume, Mute alerts or Unmute alerts
Each watch adds about 450 bytes to the list. Legato reads an answer of up to 1 MB, so the overview works up to about 2,000 watches. The Changes request reads the snapshots of every page that changed, so on a busy install it costs more than the list. On the test server it took a few hundredths of a second. If it fails, only the grey lines and the 7-day count go. changedetection.io’s API documentation covers each request.
About the key. changedetection.io has one API key, and it can do everything the API can, including deleting watches. The pages only read, check, pause, mute and mark as seen. If you turned off API access token security check enabled in its API settings, the API answers without a key. Legato still sends the one you save.
Sources and buttons explains each part of a page.
Set it up
- Copy the key. In changedetection.io, open Settings and the API tab, and click the key to copy it.
- Save it in Legato. In Settings → Secrets, save the key under
changedetection, bound to your server’s address. You can also link a 1Password reference. - Add the pages. Paste the prompt into your agent, or download both pages and run
/Applications/Legato.app/Contents/Helpers/legato set changedetection changedetection.json, then the same forchangedetection-watch. - Point them at your server. Change
http://192.0.2.30:5000to the address you open changedetection.io at, with its port (5000 for the Docker image), on the source of both pages. If you reach it over https with a self-signed certificate, use its IP address or a.localname, which Legato can trust. A server under a path, such ashttps://example.com/changedetection, isn’t supported.
The list fills within a minute. A mistyped key is the usual reason it doesn’t: the page then notes that changedetection.io didn’t allow it (HTTP 403).
Prompt for your agent
Add 2 Legato pages for changedetection.io, starting from https://legatobar.com/examples/changedetection.json, https://legatobar.com/examples/changedetection-watch.json. Use the page IDs changedetection, changedetection-watch if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.
Add both pages as they are, and set the url of the source on each page to my changedetection.io address with its port. I’ll save the API key as changedetection in Settings → Secrets myself.
Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.Download the pages
Questions
What does Mark as seen do?
The same as opening the change in changedetection.io: the blue dot goes, on the Mac and in changedetection.io’s own list. It marks the change the page shows, so a newer one that came in since stays new. Your install keeps one seen-or-not for everyone who uses it.
Why does a row say 12m beside an older line?
The time is when the watch last changed. The grey line is the first line of what changed over the last 7 days, which can include older changes. The watch’s page shows the newest change on its own.
What do Pause and Mute alerts do?
The same as in changedetection.io. Pause stops checking the page until you resume it. Mute alerts keeps checking but sends none of the watch’s notifications. Neither asks first, since each has a button that undoes it. They’re only on a watch’s page, so Spotlight and Shortcuts don’t offer them.
Does it work with the hosted changedetection.io?
It wasn’t tested. The hosted service serves the same API at your own login address, but only a self-hosted server was checked, and an address with a path isn’t supported.