# Wayback

> Query the Wayback Machine / Internet Archive — search snapshots, check availability, fetch archived page content. Use when user needs historical web pages, archived content, or wants to check if a URL was previously captured.

- **Type:** Skill
- **Install:** `agentstack add skill-nc9-skills-wayback`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [nc9](https://agentstack.voostack.com/s/nc9)
- **Installs:** 0
- **Category:** [Search](https://agentstack.voostack.com/c/search)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [nc9](https://github.com/nc9)
- **Source:** https://github.com/nc9/skills/tree/main/wayback

## Install

```sh
agentstack add skill-nc9-skills-wayback
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Wayback Machine

Query the Internet Archive's Wayback Machine for archived web pages.

## When to Use

- User wants to see an old/archived version of a web page
- Checking if a URL/domain was previously active
- Retrieving historical page content
- Searching for all snapshots of a URL
- Comparing page content over time

## Requirements

No API key required — Wayback Machine is free and public.

## Commands

### search — Find snapshots

```bash
./scripts/wayback_search search "https://example.com" [-n 25] [--from 20200101] [--to 20231231]
```

### check — Quick availability check

```bash
./scripts/wayback_search check "https://example.com"
```

### latest — Fetch latest snapshot content

```bash
./scripts/wayback_search latest "https://example.com" [-f json]
```

### get — Fetch snapshot at specific timestamp

```bash
./scripts/wayback_search get "https://example.com" -t 20200101120000
```

## Options

| Option | Description |
|--------|-------------|
| `-n, --limit` | Max results for search (default: 25) |
| `--from` | Start date YYYYMMDD |
| `--to` | End date YYYYMMDD |
| `-s, --status` | Filter by HTTP status (e.g. 200) |
| `--collapse` | Dedupe by field (e.g. `digest`, `timestamp:6`) |
| `-m, --match` | URL match: `exact`, `prefix`, `host`, `domain` |
| `-t, --timestamp` | Snapshot timestamp for get/check |
| `--raw` | Return raw HTML instead of extracted text |
| `-c, --max-chars` | Max content chars (default: 10000) |
| `-f, --format` | Output: `json` (default) or `table` |

## Output Format

**search** — list of snapshots:
```json
[
  {"timestamp": "20200101120000", "original": "https://example.com/", "statuscode": "200", "mimetype": "text/html", "digest": "ABC123"}
]
```

**latest/get** — extracted content:
```json
{
  "url": "https://example.com",
  "timestamp": "20231215120000",
  "archiveUrl": "https://web.archive.org/web/20231215120000/https://example.com",
  "title": "Example Domain",
  "content": "Extracted page text..."
}
```

## Examples

Search with date range:
```bash
./scripts/wayback_search search "https://example.com" --from 20200101 --to 20201231
```

Search all subpages of a domain:
```bash
./scripts/wayback_search search "example.com" --match domain --status 200 -n 50
```

Deduplicate by content:
```bash
./scripts/wayback_search search "https://example.com" --collapse digest
```

Get page as it appeared on a specific date:
```bash
./scripts/wayback_search get "https://example.com" -t 20200615
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [nc9](https://github.com/nc9)
- **Source:** [nc9/skills](https://github.com/nc9/skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-nc9-skills-wayback
- Seller: https://agentstack.voostack.com/s/nc9
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
