To see how a website looked in a past year, ask the Wayback Machine's CDX API for a capture from that year that returned HTTP 200, open it with if_ after the timestamp so the archive's toolbar stays out of the picture, and screenshot it. Then check two things the screenshot can't tell you: that the browser is still on the capture you asked for, and that the images and styles came from about the same date. We captured the mozilla.org homepage for every July from 2015 to 2025. Ten years worked straight away. The eleventh was quietly replaced by a different capture of a different URL, because a script inside the archived page redirected it.
Find one capture per year with the CDX API
The Wayback Machine's calendar is fine for one page by hand. For anything repeatable, use the CDX server, which lists captures as plain text or JSON. Its README documents the parameters used here: from and to take a timestamp of 1 to 14 digits, filter=statuscode:200 keeps only successful captures, fl picks the columns, and collapse=timestamp:6 keeps the first capture of each year and month, because it compares only the first six digits.
curl -s "https://web.archive.org/cdx/search/cdx?url=www.mozilla.org/en-US/&from=2018&to=2018&filter=statuscode:200&collapse=timestamp:6&fl=timestamp,statuscode,length"
20180101090545 200 24326
20180201075640 200 23721
20180301022240 200 23782
20180401092038 200 23845
20180501094846 200 23342
20180601115804 200 23204
20180701084151 200 19385
20180801130239 200 19491
20180901075402 200 19781
20181001063254 200 19831
20181101073217 200 25442
20181201011546 200 25810
Each timestamp is the capture time in UTC, from year to second. The status filter matters. The help center's calendar colours show why: blue dots are 2xx captures, green are redirects, orange are 4xx errors and red are 5xx errors. A capture of a redirect or an error page is not a picture of the site.
The same query in Node, keeping the July row of each year. With output=json, the first row holds the field names:
const site = process.argv[2] ?? "www.mozilla.org/en-US/";
const query = new URLSearchParams({
url: site,
from: "2015",
to: "2025",
output: "json",
fl: "timestamp,statuscode,mimetype",
filter: "statuscode:200",
collapse: "timestamp:6",
});
const res = await fetch(`https://web.archive.org/cdx/search/cdx?${query}`);
const [, ...rows] = await res.json();
const july = rows.filter(([timestamp]) => timestamp.slice(4, 6) === "07");
for (const [timestamp, status, mime] of july) {
console.log(timestamp, status, mime);
}
20150701004928 200 text/html
20160701003252 200 text/html
20170701185542 200 text/html
20180701084151 200 text/html
20190701115804 200 text/html
20200701012722 200 text/html
20210701004406 200 text/html
20220701014335 200 text/html
20230701000107 200 text/html
20240701004440 200 text/html
20250701003334 200 text/html
There is also a simpler availability API, archive.org/wayback/available?url=...×tamp=..., which returns the single closest snapshot. Its documented parameters include no status filter, and both of our requests to it on 2 November 2026 were answered with HTTP 429, Too Many Requests, while the CDX server answered normally. We used CDX throughout.
Open the capture without the toolbar
A normal Wayback address such as https: wraps the page in the archive's toolbar. Adding if_ after the timestamp returns the same page without it. pywb, the Webrecorder replay software that uses the same URL scheme, documents if_ as a hint that the resource is shown in an iframe, and id_ as returning the original content with no rewriting. id_ is the one to use if you want the archived HTML itself, but its links still point at the live site, so it is no good for a screenshot.
The archive also tells a program which capture it served. These headers follow the Memento standard, RFC 7089: Memento-Datetime is the moment the capture was made, and the Link header points to the original URL, a TimeGate that picks the capture closest to a date, and a TimeMap that lists them all.
curl -sI "https://web.archive.org/web/20180701084151/https://www.mozilla.org/en-US/" | grep -i -E "^(HTTP|memento-datetime|link)"
HTTP/2 200
memento-datetime: Sun, 01 Jul 2018 08:41:51 GMT
link: <https:
What we measured on eleven Julys of mozilla.org
We loaded each July capture at 1280 by 800 in Puppeteer 25.16.0 with Chrome 156, waited for networkidle2, and screenshotted the viewport, 20 seconds apart to go easy on the archive. For every archived file the page loaded, we read the timestamp in its Wayback address and compared it with the page's own timestamp. We also logged every request that went to a host outside archive.org.
| July | Load time | Archived files | Within a day of the page | Furthest file | Errors |
|---|
| 2015 | 2.9 s | 36 | 34 | 10 days later | 0 |
| 2016 | 13.6 s | 29 | 16 | 19 days later | 0 |
| 2017 | 9.3 s | 40 | 38 | 4 days earlier | 0 |
| 2018 | 8.6 s | 29 | 9 | 3 days earlier | 0 |
| 2019 | 7.1 s | 33 | 33 | same day | 0 |
| 2020 | 17.5 s | 33 | 31 | 1 day earlier | 0 |
| 2021 | 17.1 s | 34 | 32 | 13 days earlier | 0 |
| 2022 | 22.7 s | 49 | 49 | same day | 1 |
| 2023 | 19.1 s | 48 | 43 | 1 day earlier | 0 |
| 2024 | 15.1 s | 40 | 40 | same day | 0 |
| 2025 | 14.2 s | 59 | 59 | 1 day earlier | 4 |
The errors were all 404s for analytics beacons and, in 2025, one for an archive screenshot address; no image or stylesheet was missing. No request in the eleven loads left archive.org, so nothing on these pages came from the live web. The 2025 row counts files from the page it ended up on, explained in the next section.
mozilla.org is captured often, so its pages hold together well: the worst file was 19 days off, and in 2018 only 9 of 29 files were from within a day of the page, all within 3 days. Less popular sites can be much worse. The Internet Archive's help center says the Wayback Machine fills in a missing link with the closest date it has, and can pull a link it never archived from the live web. Ainsworth, Nelson and Van de Sompel found embedded files whose capture dates were several years before or after the page's. Their Hypertext 2015 study of 82,425 archived pages found 38.7% were temporally coherent, and only 17.9% were both coherent and complete. Logging file timestamps as above is how you find out which kind of page you have.
The capture that redirected itself
The 2025 screenshot came back with the Wayback toolbar, although we had asked for if_, and its banner read "Donate to build a better tech future." We printed every navigation of the main frame:
navigated: https:
navigated: https:
An A/B-test script in the archived page, pencil-banner-mofo-experiment.js, sent the browser to /?v=c. The analytics call the page made named the experiment pencil-banner-MOFO-donation and the variant mofo-donation-c. The archive rewrote that address to a normal toolbar URL and served the closest capture of /?v=c, made about 19 hours earlier, on 30 June 2025. The screenshot showed a different URL, a different date and the toolbar, and nothing failed. It happened on every one of the eight loads we made of that capture with JavaScript on.

Turning JavaScript off kept the browser on the capture we asked for, with no toolbar and the banner text of the 1 July page. It is not a general fix. The same switch on the July 2016 capture left the photo tiles as grey boxes, swapped the web font for a system font and showed a different promotion tile.

We also tried cancelling the redirect with Puppeteer's request interception. Aborting it left the tab on Chrome's error page. Answering it with an empty 204 response kept the page, but page.screenshot() then timed out on both tries, so we don't recommend either.
A script that checks what it captured
Load with JavaScript on, compare the final URL with the one you asked for, and retry with JavaScript off only when they differ. Then look at the retried image, because some pages need their scripts.
import puppeteer from "puppeteer";
const site = "https://www.mozilla.org/en-US/";
const years = process.argv.slice(2).map(Number);
async function julyCapture(year) {
const query = new URLSearchParams({
url: site,
from: `${year}07`,
to: `${year}07`,
filter: "statuscode:200",
fl: "timestamp",
limit: "1",
});
const text = await (await fetch(`https://web.archive.org/cdx/search/cdx?${query}`)).text();
return text.trim() || null;
}
async function shoot(browser, url, file, javaScript) {
const page = await browser.newPage();
await page.setViewport({ width: 1280, height: 800 });
await page.setJavaScriptEnabled(javaScript);
await page.goto(url, { waitUntil: "networkidle2", timeout: 90_000 });
const landed = page.url();
await page.screenshot({ path: file });
await page.close();
return landed;
}
const browser = await puppeteer.launch();
for (const year of years) {
const ts = await julyCapture(year);
if (!ts) {
console.log(year, "no 200 capture in July");
continue;
}
const wanted = `https://web.archive.org/web/${ts}if_/${site}`;
let landed = await shoot(browser, wanted, `history-${year}.png`, true);
if (landed !== wanted) {
console.log(year, "page left the capture:", landed);
landed = await shoot(browser, wanted, `history-${year}.png`, false);
console.log(year, "retried with JavaScript off, check the image");
}
console.log(year, ts, landed === wanted ? "ok" : `still moved to ${landed}`);
}
await browser.close();
Run with node history.mjs 2016 2025, it printed:
2016 20160701003252 ok
2025 page left the capture: https:
2025 retried with JavaScript off, check the image
2025 20250701003334 ok
Checklist for screenshots of old versions
- Pick captures from the CDX API with
filter=statuscode:200, not by clicking the nearest calendar dot.
- Use
if_ after the timestamp for a screenshot without the toolbar.
- After loading, check that the URL is still the one you asked for. If it isn't, the page redirected itself and you are looking at another capture.
- Record the timestamps of the files the page loaded. If they are weeks or years away from the page's own, say so wherever you show the image.
- Keep the load rate low. Our 20-second gap was never refused, but the availability API turned us away at once.
If you only need to look, our free website history tool lists the years the Wayback Machine has copies of a page and opens each one.