# waybackpy

> Python package and CLI for the Wayback Machine's Save Page Now, CDX and availability APIs.

Source: https://osinttools.io/tools/waybackpy/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** URL
- **Category:** Data capturing
- **Pricing:** Open source (Free and open source (MIT).)
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** yes
- **Platforms:** Python CLI · Python library
- **Website:** https://github.com/akamhy/waybackpy
- **Docs:** https://github.com/akamhy/waybackpy/wiki
- **GitHub:** akamhy/waybackpy, 618 stars · Python · MIT · last commit 2022-11-17 · dormant (no commit on the default branch in 18 months)
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

waybackpy wraps the Internet Archive's Wayback Machine APIs: it can ask the archive to save a page, list captures of a URL through the CDX server, and find the oldest, newest or nearest snapshot to a date.

Investigators use it to preserve web pages as evidence and to script searches of a site's archived history from Python or the command line.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is an API.

## Features

- Save Page Now archiving
- CDX capture listing
- Oldest, newest and nearest snapshot lookup
- Python API and CLI
- Available on PyPI and conda-forge

## Pros

- Simple way to script archiving and lookups
- Only talks to the Internet Archive
- Well documented in the project wiki

## Cons

- It has had no code changes since February 2024 and may no longer work if the archive's APIs change.
- Subject to Internet Archive rate limits and outages

## When to use it

- Use it when you need to archive pages programmatically during an investigation.
- Use it when you want every archived capture of a URL in a script.

## Quick start

Terminal · pip:

```
pip install waybackpy -U
```

## Alternatives

- [Hunchly](https://osinttools.io/tools/hunchly/): Browser extension and desktop app that automatically captures and hashes every page you visit during an online investigation. (Paid · URL · active)
- [SingleFile](https://osinttools.io/tools/singlefile/): Browser extension that saves a complete web page, with images and styles, into one self-contained HTML file. (Open source · URL · active · 22,995 GitHub stars)
- [Wayback Machine](https://osinttools.io/tools/wayback-machine/): Internet Archive's public archive of web pages, with snapshots going back to 1996 and on-demand page saving. (Free · URL, Domain · passive)
- [Photon](https://osinttools.io/tools/photon/): Python web crawler that extracts URLs, emails, social accounts, files, keys and subdomains from a target site. (Open source · URL, Domain · active · 13,393 GitHub stars)
- [archive.today](https://osinttools.io/tools/archive-today/): On-demand web archive (archive.ph, archive.is) that stores a text copy and screenshot of a page at the moment you submit it. (Free · URL, Domain · passive)
- [BBOT](https://osinttools.io/tools/bbot/): Recursive OSINT and recon scanner from Black Lantern Security that chains modules for subdomains, web assets, emails and more. (Open source · Domain, IP address, URL · depends · 11,191 GitHub stars)

All alternatives to waybackpy in one table: https://osinttools.io/tools/waybackpy/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
