API & MCP
Everything a person can do on Website Change Explainer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://websitechangeexplainer.usefulweb.site/api/v1/calculate– run Website Change ExplainerGET https://websitechangeexplainer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Website Change Explainer
Give a "before" and an "after" version of a web page (fetch a URL now or paste saved HTML/text). The tool extracts readable blocks, title, meta description, headings, links, prices and dates, diffs them block by block and word by word, and ranks meaningful changes above noise like whitespace, tracking parameters, timestamps or copyright years.
| Field | Type | Default | Description |
|---|---|---|---|
beforeUrl | url | — | Before: URL. Fetched now. Usually you paste the old version below (e.g. from a saved copy or web archive). |
beforeContent | textarea | — | Before: pasted HTML or text |
afterUrl | url | — | After: URL. Fetched now (the live page). |
afterContent | textarea | — | After: pasted HTML or text |
includeTrivial | boolean | false | List trivial changes too |
maxChanges | integer | 50 | Max changes listed |
Example request
Pricing page: price rise, new auto-renewal clause, tracking link
curl -X POST https://websitechangeexplainer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"beforeContent":"<html><head><title>Pricing – Acme Cloud</title><meta name=\"description\" content=\"Simple pricing for teams.\"></head><body>\n<h1>Pricing</h1><h2>Pro plan</h2><p>Pro costs $12 per month per user.</p><p>Cancel anytime from your dashboard.</p>\n<p>Questions? Email sales@acme.example or call +1 555 010 2000.</p>\n<a href=\"https://acme.example/terms?utm_source=footer\">Terms</a> <a href=\"https://acme.example/signup\">Start trial</a>\n<footer><p>© 2025 Acme Inc. Page generated at 10:15</p></footer></body></html>","afterContent":"<html><head><title>Pricing – Acme Cloud</title><meta name=\"description\" content=\"Simple pricing for teams.\"></head><body>\n<h1>Pricing</h1><h2>Pro plan</h2><p>Pro costs $15 per month per user.</p><p>Plans renew automatically each year; cancellation requires 30 days notice.</p>\n<p>Questions? Email sales@acme.example or call +1 555 010 2000.</p>\n<a href=\"https://acme.example/terms?utm_source=header\">Terms</a> <a href=\"https://acme.example/signup-2026\">Start trial</a>\n<h2>Enterprise</h2><p>Contact us for volume pricing.</p>\n<footer><p>© 2026 Acme Inc. Page generated at 09:02</p></footer></body></html>","includeTrivial":true,"maxChanges":50}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://websitechangeexplainer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
website_change_explainer - Local stdio connector:
node src/mcp-stdio.ts --tool=website-change-explainer
{
"mcpServers": {
"website-change-explainer": { "type": "http", "url": "https://websitechangeexplainer.usefulweb.site/mcp" }
}
}