Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/plibither8/wayback

🏛 Microservice that redirects to archived version of the URL if found, otherwise saves it to the Internet Archive
https://github.com/plibither8/wayback

archive internet-archive microservice now wayback wayback-machine zeit

Last synced: 3 months ago
JSON representation

🏛 Microservice that redirects to archived version of the URL if found, otherwise saves it to the Internet Archive

Awesome Lists containing this project

README

        

# 🏛️ wayback

Microservice that redirects to [archived version](https://web.archive.org/web/) of the URL if found, otherwise saves it to the [**Internet Archive**](https://archive.org).

**Base URL:** [wayback.now.sh](https://wayback.now.sh)

## Usage

**`GET /:url`**

URL must be safely encoded. Eg: `encodeURIComponent()` in JavaScript.

Checks whether a cached/archived version of the webpage on the *URL* is available.

- If available => redirect to the most recent archived version of the webpage.
- If not available => redirect to _save webpage_ link of the Wayback Machine.

**Example:** [wayback.now.sh/mihir.ch](https://wayback.now.sh/mihir.ch) redirects to most recent archived version of [https://mihir.ch](https://mihir.ch) on the Wayback Machine.

## License

[MIT](LICENSE)