返回 Skill 列表
extension
分类: 开发与工程无需 API Key

wayback-newest

从Wayback Machine中找到URL的最近归档版本。当用户想要查看网页的最新捕获、最新归档或当前版本时使用。

person作者: jakexiaohubgithub

Find Newest Wayback Machine Capture

Find the most recent archived snapshot of a URL from the Wayback Machine.

Usage

npx tsx scripts/oldest-newest.ts <url> --newest-only [options]

Arguments

| Argument | Required | Description | |----------|----------|-------------| | url | Yes | The URL to search for |

Options

| Option | Description | |--------|-------------| | --full | Include archive URL in output | | --json | Output as JSON | | --no-cache | Bypass cache and fetch fresh data from API |

Output

Default (compact):

2024-01-15 14:30 (2 days ago)

With --full:

🆕 NEWEST:
  2024-01-15 14:30 (2 days ago)
  https://web.archive.org/web/20240115143000id_/https://example.com

Script Execution

npx tsx scripts/oldest-newest.ts <url> --newest-only

Run from the wayback plugin directory: ~/.claude/plugins/cache/wayback/

CDX API Endpoint

https://web.archive.org/cdx/search/cdx?url={URL}&output=json&limit=1&filter=statuscode:200&fastLatest=true

The fastLatest=true parameter efficiently returns the most recent capture without scanning the entire index.

Caching

CDX API responses are cached for 1 hour. Use --no-cache to bypass.

Related Skills

  • wayback-oldest - Find the earliest capture
  • wayback-range - Show both oldest and newest with archive span
  • wayback-list - List all snapshots with pagination