Wayback Machine Scraper: Pull Archived Pages
Live-tested wayback machine scraper guide: CDX and availability APIs, snapshot replay, JSON-LD sidecars, rate limits, dead ends. October 2026.

On this page
The Wayback Machine crossed one trillion archived pages on October 22, 2025, and those pages replay from the Internet Archive’s own servers, where the live site’s bot walls do not apply. That makes archive.org the cheapest backdoor in scraping: product pages, job posts, and whole companies that no longer exist, plus old versions of pages that changed. I ran a wayback machine scraper against it on 2026-10-30 from a home connection. What follows is what each door returns, where throttling actually starts, and which endpoints are wasted effort.
All commands below use Magpie, a local CLI scraper (free, AGPL/commercial dual license), plus curl for the archive’s JSON APIs. Static fetch handled everything; no browser rendering was needed anywhere.
Whose rules apply
Two facts frame the legality, and both come from the Internet Archive itself. First, since April 17, 2017 the Wayback Machine no longer applies a site’s robots.txt to what it archives or displays. The stated reason: sites that shut down often block robots when their domain parks, which was erasing entire companies from the historical record. Second, the archive host publishes almost no restrictions of its own: web.archive.org/robots.txt returns an nginx 404 (the file does not exist), and archive.org/robots.txt disallows exactly two paths, /control/ and /report/. The original site’s technical preferences are not your legal clearance, though. Archived pages are still third-party copyrighted content, the Internet Archive’s terms of use govern access, and the legal picture for scraping deserves real advice if this feeds a commercial product.
Three doors before you scrape anything
The Wayback Machine answers three machine-readable questions, and skipping them is the classic mistake: people fetch replay URLs blind and 404 into nothing. The door order matters.
| Door | Endpoint | Returns | Use it for |
|---|---|---|---|
| Availability | archive.org/wayback/available?url= |
Closest snapshot, JSON | Does this URL exist in the archive? |
| CDX index | web.archive.org/cdx/search/cdx?url= |
Full capture list, JSON or text | Every capture, with dates and digests |
| Replay | web.archive.org/web/{ts}/{url} |
The archived page itself | The data pull itself |
The availability API is the quick check, and it reported a snapshot captured the day before my test:
$ curl -s "https://archive.org/wayback/available?url=example.com"
{"url": "example.com", "archived_snapshots": {"closest": {"status": "200",
"available": true, "url": "http://web.archive.org/web/20261029153051/http://example.com/",
"timestamp": "20261029153051"}}}
The CDX API is the real tool. It lists every capture of a URL with timestamp, status code, content length, and a content digest, and it supports date ranges, field selection, filters, and deduplication:
$ curl -s "https://web.archive.org/cdx/search/cdx?url=motherlodelab.com&output=json&limit=4"
[["urlkey","timestamp","original","mimetype","statuscode","digest","length"],
["com,motherlodelab)/","20180512012841","http://www.motherlodelab.com:80/","text/plain","301","3I42H3S6NNFQ2MSVX7XZKYAYSCX5QBYJ","247"],
["com,motherlodelab)/","20180827111656","https://www.motherlodelab.com/","text/html","200","OINN5XZBQUSB4PZOOHABNKIEEL3IYKQW","9149"],
["com,motherlodelab)/","20190524070357","http://motherlodelab.com/","unk","301","3I42H3S6NNFQ2MSVX7XZKYAYSCX5QBYJ","517"]]
Add url=motherlodelab.com/* for a whole-site census, collapse=urlkey to keep one row per URL, from=2019&to=2020 to bound dates, and filter=statuscode:200 to drop redirects. Digests are also a freebie: two captures sharing a digest are byte-identical, so you can skip re-fetching unchanged pages.
Replay URLs do the last job. web.archive.org/web/2024/https://... redirects to the nearest capture of 2024; a full 14-digit timestamp pins an exact one. One modifier is worth memorizing: id_ between timestamp and URL (/web/20191022005249id_/https://...) returns the original bytes exactly as captured, no rewritten links, no Wayback toolbar. My probe pulled 34,723 raw bytes where the replay view serves an augmented page. Use plain replay for browsing and id_ when a parser wants the original HTML.
What a wayback machine scraper pulls from a snapshot
The replay host serves plain HTTPS responses, so a static fetcher handles it. The snapshot itself comes back through Magpie’s normal pipeline: cleaned markdown plus a structured_data sidecar containing whatever JSON-LD the original page embedded. That sidecar is the payload people actually want, because it is typed data from a page that may be gone.
The demo target is IMDb, a site that hard-walls live scrapers, which is precisely the situation the archive sidesteps. One static request, no flags:
$ magpie scrape "https://web.archive.org/web/2024/https://www.imdb.com/title/tt0111161/" --out shawshank.json
The redirect resolved to the capture at 20241227214349 (December 27, 2024), and the sidecar held a complete schema.org Movie record:
| Field | Value from the 2024-12-27 snapshot |
|---|---|
name |
The Shawshank Redemption |
datePublished |
1994-10-14 |
director |
Frank Darabont |
contentRating |
R |
duration |
PT2H22M |
aggregateRating |
9.3 from 2,981,999 votes |
Two honest caveats. The cleaned markdown of that same page was only 415 words, because IMDb renders most of its UI client-side; the value sits in the sidecar, which also carries IMDb’s full Next.js GraphQL state (plot, genres, credits) as a second block. And the archive rewrites every URL it serves, including inside your data: the record’s @context reads https://web.archive.org/web/20241227214349/https://schema.org, not https://schema.org. Strip the web.archive.org/web/{ts}/ prefix from any field you feed to a validator or a database.
Typed extraction still works through snapshots. Magpie’s explicit-only verticals force-match any page, replay URLs included. Running --vertical article on an archived BBC News page produced a typed record from a 2023 capture (abridged below):
$ magpie scrape "https://web.archive.org/web/20230523213135/https://www.bbc.com/news/technology-10608667" \
--vertical article
{"headline": "View from the end of the world", "datePublished": "2010-07-15T12:15:50.000Z",
"publisher": "BBC News", ...}
That combination, CDX date ranges plus a vertical, is the cheapest time-series machine I know of: point it at one URL, pull every capture since 2010, and watch price or ratingValue walk through history. If the live site is also scrapeable, compare against the current guide (BBC News or others in this series) so you know which differences are real and which are capture staleness.
Bulk pulls and where throttling starts
There is no published rate limit for web.archive.org. What I can document is my run: six sequential snapshot fetches at 1.5-second intervals, all six clean, each taking 2.1 to 4.8 seconds. The pattern that held all session: single-page fetches are forgiving, aggregate queries are fragile.
For bulk work, drive the loop from CDX output instead of crawling:
$ curl -s "https://web.archive.org/cdx/search/cdx?url=motherlodelab.com/*&collapse=urlkey&fl=timestamp,original&filter=statuscode:200" \
| while read -r ts orig; do
magpie scrape "https://web.archive.org/web/${ts}/${orig}" --out "cap-${ts}.json"
sleep 2
done
Keep the 2-second sleep. This CDX-then-fetch loop is the same architecture as the topic’s best-known dedicated tool, sangaline’s wayback-machine-scraper Scrapy project; this version swaps Scrapy for any fetcher that keeps the sleep honest.
During the session, one prefix query returned an “Internet Archive: Temporarily Offline” HTML page two seconds after a successful call on the same host, and a census of the huge bbc.com/news/* prefix timed out at 60 seconds before succeeding when narrowed to a sub-path. Both are load-shedding, not bans; the fix is backoff and retry, plus narrow prefixes (bbc.com/news/technology- over bbc.com/news/*).
Magpie’s own crawl works on replay seeds too, and since web.archive.org publishes no robots.txt, nothing refuses it. But I would not crawl here. Depth-1 links on a snapshot pointed straight at the Wayback calendar page, and the crawler harvested its footer boilerplate twice in a three-page run. CDX-driven loops stay on target.
Save Page Now, the capture endpoint at web.archive.org/save/{url}, answered my first probe of the endpoint with HTTP 429. Treat it as the strictest gate on the site: useful for archiving a page you control, useless as a scraping technique.
Dead ends, tested so you can skip them
- The calendar page.
web.archive.org/web/*/example.com, the human-facing snapshot list, is a JavaScript shell. Magpie’s quality gate reportsquality blocked (empty). The CDX API returns the same information as typed rows in one request; never scrape the calendar. - Sitemap discovery.
magpie mapfails here, correctly:web.archive.org/sitemap.xmlis a stub, not a sitemap (“neither urlset nor sitemapindex”). There is nothing to map; the archive’s inventory is CDX’s job. - JSON APIs through the scraper.
magpie scrapeon the availability endpoint returns the JSON as markdown with escaped underscores. It parses, badly. Usecurlfor the two APIs and Magpie for the pages. - Fresh pages. The archive captures what its crawlers visit; yesterday’s article is usually absent. My availability check did return a capture from the day before, but only because example.com is captured constantly. On an obscure page, expect the newest snapshot to be months old.
When the archive is the wrong door
Bulk web-history research at petabyte scale belongs to Common Crawl, which publishes monthly WARC dumps instead of per-URL replay. For current data, the archive is definitionally stale, so route live sites to their own guides; Stack Overflow banned crawlers in its 2026 robots flip, yet its old pages stay archived, which is exactly what the 2017 policy change protects. The full series of site-by-site guides lives in the scrapers for popular websites hub, and the robots mechanics behind all of this are in the robots.txt scraping guide.
FAQ
Is scraping the Wayback Machine legal? Access is governed by the Internet Archive’s terms of use, and archived pages remain third-party copyrighted content, so republication carries the same risk as scraping the live site. The 2017 robots.txt change is archive policy, not a legal exemption. I am not a lawyer; get real advice for commercial use.
What is the web.archive.org rate limit?
No number is published. In my testing, 1.5- to 2-second spacing on single-page fetches ran clean all session, aggregate CDX queries flaked under load, and save/ returned 429 immediately. Space requests, back off on errors, and treat the save endpoint as off-limits for automation.
Does the original site’s robots.txt block archived pages? Not since April 2017: the Wayback Machine stopped applying origin robots.txt to what it crawls and displays, so dead sites keep their history. That is the archive’s policy decision. What you do with the data is still your legal responsibility.
Can you scrape a website that no longer exists? Yes, and it is the strongest use case. Census the domain with a CDX prefix query, then fetch each snapshot. The pages replay from the archive’s servers with none of the live site’s bot defenses, and any JSON-LD the old pages embedded arrives intact in the sidecar.
Is there an official Wayback Machine scraper API? Three keyless endpoints: the availability API, the CDX index, and Save Page Now (heavily throttled). The CDX Server’s parameters are documented on GitHub, and replay URLs speak the Memento protocol. There is no official bulk-scraping API; the CDX-plus-replay loop above is the standard pattern.


