Sites and Page History
A site is the captures your account has of one host, such as example.com. You don't create it: every capture belongs to the site of its URL, whether you made it by hand, in a batch, by a schedule or through MCP. http and https captures of a host are the same site, but http://example.com/about/ and https://example.com/about/ are two pages: the dashboard and list_site_pages mark the first "(http)". www.example.com and example.com are two sites.
The site view groups those captures by page (one URL) and answers three questions per page: how often it was captured, how often its text changed, and whether its latest capture is in order.
Pages, captures and versions
For each page WRL counts:
- Captures: the complete captures of the URL.
- Versions: how many different texts those captures show in a row. A page captured five times whose text changed once has two versions. If the text goes back to an earlier wording, that counts as a new version too.
- Last change: when the current version was first seen. For a page whose text never changed, that is its first capture.
Captures made before WRL compared texts for every capture (November 2026) get their text hash in the background from their stored HTML, a few each minute, oldest first. Until then they count as part of the version before them.
How WRL decides the text changed
Each capture is compared with the previous complete capture of the same URL in your account. WRL takes the rendered HTML from the capture, then:
- removes comments and the
script,style,noscriptandtemplateelements with their content, - replaces every remaining tag with a space,
- decodes
&,<,>,",', and numeric references such as€, - collapses every run of whitespace into one space and trims both ends,
- hashes the result as UTF-8 with SHA-256.
The text changed when the two hashes differ. For a file capture, such as a PDF, WRL hashes the file itself. The HTML is in the signed bundle of each capture, so you can recompute the hash yourself.
This ignores a new tracking script, a reordered attribute or a response header that differs on every request, which the HTML and header comparisons in change detection report as changes. It doesn't ignore text that changes on every load, such as a clock or a rotating quote: such a page gets a new version with each capture. To see what differs between two captures, compare them: Page history shows how, and the API reference has every option.
The comparison works on text only. When a price is part of an image, a new price changes the screenshot but doesn't start a new version.
Recompute a hash
WRL applies the steps to the HTML as a string of characters, without parsing it. A comment runs from <!-- to the next -->, a dropped element from its start tag to the next end tag of the same name in upper or lower case, and a tag from < to the next >. The six named entities are decoded in upper or lower case. Any other named entity, such as €, is left as written. Whitespace is what \s matches in JavaScript, which includes the no-break space. The hash is written as sha256: followed by 64 hexadecimal digits.
This script prints the hash for a capture ID. It reads the capture's html artifact, which needs no API key, and runs on Node.js 18 or later without packages:
// node text-hash.mjs cap_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6
import { createHash } from 'node:crypto';
const id = process.argv[2];
const res = await fetch(`https://api.webresourceledger.com/v1/captures/${id}/artifacts/html`);
if (!res.ok) throw new Error(`No HTML for ${id}: HTTP ${res.status}`);
const html = await res.text();
const named = { amp: '&', lt: '<', gt: '>', quot: '"', apos: "'", nbsp: ' ' };
const text = html
.replace(/<!--[\s\S]*?-->/g, ' ')
.replace(/<(script|style|noscript|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi, ' ')
.replace(/<[^>]*>/g, ' ')
.replace(/&(#x[0-9a-f]+|#[0-9]+|[a-z]+);/gi, (match, ref) => {
if (ref[0] !== '#') return named[ref.toLowerCase()] ?? match;
const code = /^#x/i.test(ref) ? parseInt(ref.slice(2), 16) : parseInt(ref.slice(1), 10);
return code > 0 && code <= 0x10ffff ? String.fromCodePoint(code) : match;
})
.replace(/\s+/g, ' ')
.trim();
console.log('sha256:' + createHash('sha256').update(text, 'utf8').digest('hex'));
Run it for two captures of a page. When it prints the same hash twice, the two captures show the same text.
First seen and last seen
For each page WRL gives the time of the first capture (firstCaptureAt), of the latest capture (lastCaptureAt) and of the last change (lastChangeAt). The current version was first seen at the last change and last seen at the latest capture. An earlier version was last seen at the capture before the one that showed a new text.
These are capture times. WRL doesn't know when you published a text or took it down. Between the last capture of one version and the first capture of the next, the text changed at a moment WRL didn't see, and a wording that was online only between two captures is not on record at all. That is the reason to capture when you publish: each new text then has a capture from its first minutes.
What a page said on a date
The page history answers it: with at, it names the last capture by that time and the first one after it, and says whether both show the same text. When they do, you can state that the page had this text before the date and after it; WRL has nothing from the time between them. When they don't, the text changed somewhere between the two captures, and WRL can't say on which side of your date. When one of the two has no text hash yet, sameText is null and the dashboard says WRL has not compared them; compare the two captures yourself. It is null too when there is no capture on one side of the date. before and after carry the httpStatus the site answered with; 400 or above is an error answer of the site, not the page, and MCP get_page_history says so.
Page states
The state comes from the latest capture of the page, of any status:
| State | Dashboard | Meaning |
|---|---|---|
on_record |
On record | The latest capture is complete and in order |
capturing |
Capturing | A capture is still pending |
failed |
Failed | The latest capture failed. Why captures fail lists the reasons |
error_status |
HTTP 404 (the status) | The site answered the latest capture with HTTP 400 or above, for example a 404 page. Captures of an error answer explains what such a capture shows |
partial |
Partial | The latest capture is a partial render. Partial captures explains what is missing |
quarantined |
Quarantined | The URL was flagged as unsafe |
not_captured |
Not captured | Dashboard only: the last site check listed the page in the sitemap and left it for a later check |
out_of_date |
Out of date | Dashboard only: the page's <lastmod> in the sitemap is later than its latest capture, and the last check left it for a later one |
failed, error_status and partial together are the pages that need attention.
In the dashboard
Sites in the dashboard lists your sites, each with the date of its last capture. A site whose sitemap a check has read shows what its page shows, such as "36 pages in the sitemap · 2 captured"; the others show the pages with a complete capture and the captures, such as "7 pages captured · 7 captures". Sites with settings come first under Your sites, each with a second line: how it is kept current, how many pages need attention and whether its ownership is confirmed. The rest follow under Other websites you captured. When at least one of them has three or more pages, the sites with one or two pages are folded into a line below the list, such as "12 other sites with 1 or 2 pages". Select it to see them.
A site's page starts with its totals: pages, captures, how many pages need attention, the last text change and the last capture. Once a check has read the sitemap, the totals start with the pages in the sitemap, how many pages have a complete capture and how many pages with captures the sitemap doesn't list. When the server kept only the first 100 pages a check left out, the filter says Not captured (100+). Below is the tree of the site by URL path. A folder such as blog/ adds up the pages under it. A folder with only one page under it is shown as that page, and numbers in paths sort by value, so /page2 comes before /page10. A page row has the path, the state, the number of captures and versions, when the text last changed (if it ever did) and the date of the last capture. The path opens the page's history.
A page that failed, answered with an HTTP error or rendered only in part has Capture again and a Why? link to the reasons; a page in the sitemap without a capture has Capture now. Both start one capture of that page, which counts like any other capture. The page history has Capture again, which does the same.
Download pages (CSV) next to Settings gives one row per page of the tree, in URL order: its state, the number of captures and versions, the first and last capture, the last text change and the latest capture with its HTTP status and verification link. Pages a check left out are in it with empty capture fields.
The buttons All pages, Needs attention (with the number of such pages) and Changed (pages whose text changed at least once, with their number) choose what is listed. Find a page filters by a part of the path, such as /pricing, or by a full URL of the site. With a filter or a search, the pages are listed without folders. The tree shows up to 5,000 pages of a site.
Add a site on the list of sites and a site's Settings page keep a site current from the dashboard. Capture on Publish describes both. A site with settings says above its tree how it is kept current, shows the result of the last check (or that a check is queued, and updates by itself until the check has run and its captures have completed) and has a Check the sitemap now button with its cap. A site without settings says that its record is not kept current and has Set up this site in place of that button, which opens Add a site with the address filled in. The page of a host your account has no captures of and no settings for offers only Set up this site. Not captured lists the pages the last check left for later, up to 100 of them. settings.lastCheck.leftOutCount in GET /v1/sites/{host} has the full number. Not in the sitemap lists the pages with captures (failed ones too) that the last check's sitemap didn't list: removed or renamed pages, or pages captured by hand under another address. Their rows say "not in the sitemap", and their captures stay on record. settings.lastCheck.notInSitemap has up to 100 of them and notInSitemapCount the full number; both are null when the sitemap was longer than a check reads.
Above the filter buttons, Recent changes lists the last ten captures whose text differs from the capture of the same page before, newest first, each with the page, its version and a link to the comparison. Show older changes loads the next ten. The list is hidden while the site has no changes.
A page's history lists its versions with their captures, answers "What did this page say on" a day and downloads as CSV; see Page history. The capture page links to it under Compare Captures.
Through the API
List your sites. Sites with settings come first, then the others by number of pages:
curl https://api.webresourceledger.com/v1/sites \
-H "Authorization: Bearer $WRL_API_KEY"
{
"data": [
{
"host": "example.com", "pages": 298, "captures": 1204, "capturedPages": 297, "sitemapPages": 312,
"lastCaptureAt": "2026-11-29T06:00:41.000Z",
"keptCurrent": { "onPublish": true, "dailyCheck": true }, "attention": 2, "ownership": "confirmed"
},
{
"host": "news.example.org", "pages": 3, "captures": 3, "capturedPages": 3, "sitemapPages": null,
"lastCaptureAt": "2026-11-20T09:12:05.000Z",
"keptCurrent": null, "attention": null, "ownership": null
}
]
}
pages counts every URL with a capture, failed ones too, and capturedPages those with a complete capture. sitemapPages is the number of pages on the host that the last site check read in the sitemap, or null when there was no check or it could not read the sitemap. keptCurrent says whether a site with settings has a publish hook (onPublish) and the daily check; it is null for a site without settings. attention counts the pages that need attention, for sites with settings only. ownership is the status of the ownership verification of the host, or null. A site with settings and no capture yet is listed with 0 pages.
GET /v1/sites/{host} gives the same pages and capturedPages for one site.
Before you set a site up, count the pages its sitemap lists, the way a check reads it (up to 50 child sitemaps and 5,000 URLs, only this host). It captures nothing and creates no settings:
curl -X POST https://api.webresourceledger.com/v1/sites/example.com/sitemap \
-H "Authorization: Bearer $WRL_API_KEY"
{ "host": "example.com", "sitemapUrl": "https://example.com/sitemap.xml", "pages": 312, "newPages": 298, "withLastmod": 312, "otherHosts": 0, "topOtherHost": null, "truncated": false }
newPages are the pages your account has no capture of, which a first run captures. otherHosts counts the URLs on other host names, which a check leaves out, and topOtherHost names the most frequent of them: when a sitemap lists only www.example.com pages, Add a site offers to read it for that name. Send {"sitemapUrl": "..."} for another sitemap; without it WRL reads the site's sitemap from its settings, else /sitemap.xml. It counts toward the 10 sitemap reads a minute of POST /v1/sitemap.
GET /v1/sites/example.com gives the totals of one site and the number of pages per state. List the pages of a site in URL order:
curl "https://api.webresourceledger.com/v1/sites/example.com/pages?prefix=/pricing" \
-H "Authorization: Bearer $WRL_API_KEY"
{
"host": "example.com",
"data": [
{
"url": "https://example.com/pricing",
"path": "/pricing",
"state": "on_record",
"captures": 14,
"versions": 4,
"firstCaptureAt": "2026-06-02T08:14:11.000Z",
"lastCaptureAt": "2026-11-29T06:00:41.000Z",
"lastChangeAt": "2026-11-27T15:02:10.000Z",
"last": {
"id": "cap_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"status": "complete",
"httpStatus": 200,
"renderQuality": "full",
"verifyUrl": "https://api.webresourceledger.com/v1/verify/cap_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
}
}
],
"next": null
}
| Parameter | Description |
|---|---|
state |
on_record, capturing, failed, error_status, partial, quarantined, attention, or changed (pages whose text changed at least once) |
prefix |
Only pages whose path starts with this, such as /blog/ |
limit |
Pages per answer, 1 to 5,000, default 1,000 |
after |
Pass next from the previous answer to get the following pages |
last is the latest capture of the page, of any status. Its verifyUrl is null when that capture is not complete, since only a complete capture has a verification page.
GET /v1/captures?host=example.com lists the captures of one site, newest first. The API reference has every field.
Page history
The history of one page lists its versions, newest first: when each was first and last seen, its captures with how they were started (on publish, by a site check, by a schedule or by request) and their verification pages, and a comparison with the version before. Captures that did not complete are listed apart and belong to no version. First and last seen are capture times: WRL knows nothing about the page between two captures.
In the dashboard, a page in the site tree opens its history. Dates on the Sites pages are in UTC. "What did this page say on" takes a day, and optionally a time in UTC, and names the last capture by the end of that day (or by that time), the first one after it, and whether both show the same text. When a capture recorded an error answer of the site (HTTP 400 or above, for example a 429 "Too Many Requests" page), the history marks its version as an error answer, and the answer to the question says so and names the last capture before it. "Download history (CSV)" gives one row per complete capture, oldest first, with the columns captured_at, capture_id, url, version, source, text_hash, bundle_hash, http_status, render_quality and verify_url. "Compare with version 1" opens the two captures side by side, with the text changes first and a link back to the history.
curl "https://api.webresourceledger.com/v1/sites/example.com/history?url=https%3A%2F%2Fexample.com%2Fpricing&at=2026-10-05" \
-H "Authorization: Bearer $WRL_API_KEY"
{
"url": "https://example.com/pricing",
"host": "example.com",
"captures": 14,
"versions": [
{
"number": 4,
"textHash": "sha256:9f2c...",
"firstSeenAt": "2026-11-27T15:02:10.000Z",
"lastSeenAt": "2026-11-29T06:00:41.000Z",
"changeFromPrevious": { "baseId": "cap_...", "targetId": "cap_...", "diffUrl": "https://api.webresourceledger.com/v1/captures/cap_.../diff/cap_..." },
"captures": [
{ "id": "cap_...", "createdAt": "2026-11-29T06:00:41.000Z", "source": "check", "renderQuality": "full", "httpStatus": 200, "bundleHash": "sha256:4b7e...", "verifyUrl": "https://api.webresourceledger.com/v1/verify/cap_..." }
]
}
],
"attempts": [],
"truncated": false,
"at": {
"requested": "2026-10-05T23:59:59.999Z",
"before": { "id": "cap_...", "createdAt": "2026-10-01T06:00:12.000Z", "version": 3, "httpStatus": 200 },
"after": { "id": "cap_...", "createdAt": "2026-10-08T06:00:09.000Z", "version": 3, "httpStatus": 200 },
"sameText": true
}
}
at takes a date (the end of that day in UTC) or an ISO 8601 time with Z or an offset, such as 2026-10-05T12:00:00Z. The history covers the latest 5,000 captures of a page. Each capture has its bundleHash, the same value as wacz.bundleHash of the capture, so each row of the history ties to its signed WACZ file.
To see what changed between two versions, add ?include=text to the diffUrl. The answer then has a text section that compares the page text word by word, without markup: a changed price shows as one removed and one added word. In the dashboard, "Compare with version 3" opens the same comparison with a "Text Changes" section. It shows the text changes, the screenshots and the headers first and loads the HTML comparison after them.
For two captures whose HTML is over 200 KB together, WRL compares the HTML line by line. Smaller pages are compared character by character. Either way a line in the answer is cut at 2,000 characters. When the HTML of one capture is over 2 MB, WRL compares neither the HTML nor the text, and truncated is true in both sections.
Recent changes
GET /v1/sites/{host}/changes answers "what changed on my site lately" for all pages at once: the captures whose text differs from the complete capture of the same page before, newest first.
curl "https://api.webresourceledger.com/v1/sites/example.com/changes?since=2026-11-01" \
-H "Authorization: Bearer $WRL_API_KEY"
{
"host": "example.com",
"changes": [
{
"url": "https://example.com/pricing",
"path": "/pricing",
"at": "2026-11-27T15:02:10.000Z",
"captureId": "cap_...",
"version": 4,
"previousCaptureId": "cap_...",
"diffUrl": "https://api.webresourceledger.com/v1/captures/cap_.../diff/cap_...",
"verifyUrl": "https://api.webresourceledger.com/v1/verify/cap_...",
"httpStatus": 200
}
],
"nextBefore": null
}
since takes a date (the start of that day in UTC) or a time in the same form as at. limit is 1 to 200 (50 by default); when there are more, pass nextBefore as before for the next page. A page holds more than limit changes when several share the time of its last one, so the next page misses none of them. version is the same number as in the page history. A page's first capture is never a change. httpStatus is the status the site answered the capture with; a change to an error answer (400 or above) is the site failing, not an edit, and the dashboard shows the status next to it. For a site with settings, the weekly digest email says on how many pages the text changed in the past week and names the five most recent.
Keep a site current
A site's record only grows when its pages are captured again. Capture on Publish sets up a publish hook for your deploy platform or CMS and a daily check of your sitemap.
Prove that you own a site
A site in your account says nothing about who runs it, since anyone can capture public pages. Verify Site Ownership shows how to prove that your account controls a host, with a file on the site or a DNS TXT record.
Through MCP
list_sites, list_site_pages, get_page_history and list_site_changes answer the same questions for an AI agent, and check_site captures pages of a site; see MCP.
Limits
| Limit | Value |
|---|---|
Sites listed by GET /v1/sites |
1,000 hosts |
Pages per answer of GET /v1/sites/{host}/pages |
5,000 |
| Pages in the dashboard's tree | 5,000 per site |
| Sites with settings per account | 10 |
A site is one host. WRL doesn't group www.example.com with example.com, and it has no site for a part of a host such as example.com/blog/: use prefix or open the folder in the tree. WRL doesn't follow links, so a page is on record only if something captured it: you, a batch, a schedule, the publish hook or a check of the sitemap. Capture on Publish has the limits of the hook and of checks.
Related
- Keep a record of your own website for the setup from start to end
- Batch captures to capture all pages of a sitemap once
- Schedules to capture pages again on a timetable
- Webhooks to hear about each capture and whether its text changed