# Install waybackpy on Windows, macOS and Linux

Query and save pages in the Internet Archive Wayback Machine.

waybackpy is a command-line interface to the Internet Archive's Wayback Machine. It finds the oldest, newest or nearest snapshot of a page, lists every URL archived for a site, and can ask the archive to save a page now.

> Upstream no longer maintains waybackpy. It may not work with current sites. The last release is from 2022.

## How to install waybackpy

```
ot install waybackpy
```

ot installs waybackpy 3.0.6 with uv into a Python environment of its own under `~/.ot`, so it cannot conflict with your system Python or with any other tool.

If you do not have ot yet:

macOS and Linux:

```
curl -fsSL https://otinstaller.com/install.sh | sh
```

Windows (PowerShell):

```
irm https://otinstaller.com/install.ps1 | iex
```

Current version: 0.3.0. Both scripts verify the download against its [SHA-256 checksum](https://otinstaller.com/releases/v0.3.0/checksums.txt) before installing.

## How to use waybackpy

Arguments after the tool's name go straight to waybackpy.

Find the oldest archived copy of a page.

```
ot run waybackpy --url https://example.com --oldest
```

Ask the Wayback Machine to archive the page now.

```
ot run waybackpy --url https://example.com --save
```

List the URLs the archive holds for a site.

```
ot run waybackpy --url example.com --known_urls
```

`ot run waybackpy --help` lists every option.

An AI agent can run waybackpy too: `ot mcp` serves it over the Model Context Protocol. See [OSINT with AI agents](https://otinstaller.com/mcp/).

## waybackpy licence, platforms and versions

- Project: https://github.com/akamhy/waybackpy
- Licence: MIT
- Runs on: Windows, macOS and Linux
- Takes: url
- Categories: archive, url
- Sends traffic to the target: no
- Python package: waybackpy 3.0.6, in its own isolated environment

## Questions about waybackpy

### How do I install waybackpy on Windows?

Open PowerShell and install ot with `irm https://otinstaller.com/install.ps1 | iex`. Then run `ot install waybackpy`. ot fetches a pinned version of waybackpy and keeps it under `~/.ot`, apart from the rest of your system.

### Is waybackpy free?

Yes. waybackpy is open source, released under the MIT licence. ot, which installs it, is free under the Apache 2.0 licence.

### Do I need to set up Python to use waybackpy?

No. ot installs waybackpy with uv into a virtual environment of its own, separate from your system Python. If uv is not installed, ot fetches its own copy first.

### How do I update or remove waybackpy?

`ot update waybackpy` moves it to the version pinned in ot's registry, and `ot update waybackpy --latest` to the newest upstream release. `ot remove waybackpy` uninstalls it.

### Is waybackpy still maintained?

No. The last release is from 2022. ot still installs the last release, but expect some of its checks to fail on current sites.

## Tools related to waybackpy

- [gau](https://otinstaller.com/tools/gau/): Fetch known URLs for a domain from the Wayback Machine, Common Crawl and others.
- [gallery-dl](https://otinstaller.com/tools/gallery-dl/): Download image galleries and their metadata from social and hosting sites.
- [httrack](https://otinstaller.com/tools/httrack/): Copy a website to disk for offline review and evidence.
- [yt-dlp](https://otinstaller.com/tools/yt-dlp/): Download video, audio and metadata from thousands of sites for archiving.

More: [Websites](https://otinstaller.com/osint-tools/websites/).
