Skip to content

Instantly share code, notes, and snippets.

@pbinkley
Created April 12, 2023 21:42
Show Gist options
  • Save pbinkley/58b10e145b923716bb44dc5653b93c66 to your computer and use it in GitHub Desktop.
Save pbinkley/58b10e145b923716bb44dc5653b93c66 to your computer and use it in GitHub Desktop.
Zotero lookup engine for Wayback Machine (note: it has to use the API, so it returns json)
{
"_name": "Wayback Machine",
"_alias": "Wayback",
"_description": "Wayback Machine Lookup",
"_icon": null,
"_hidden": false,
"_urlTemplate": "http://archive.org/wayback/available?url={z:url}",
"_urlParams": [],
"_urlNamespaces": {
"z": "http://www.zotero.org/namespaces/openSearch#"
},
"_iconSourceURI": "https://archive.org/offshoot_assets/assets/ia-logo-2c2c2c.03bd7e88c8814d63d0fcb35fc01f37c3.svg"
}
@pbinkley
Copy link
Author

To install: edit your engines.json file (Instructions). Note that this lookup engine will return a json file with a link to the requested page in the Wayback Machine, rather than taking you straight to the Wayback Machine. This is because the Wayback Machine public interface uses the Memento API, which expects the URI not to be URL-encoded, but Zotero always URL-encodes it. We therefore use the Wayback Machine API, which allows the URI to be passed encoded in a parameter and returns a json response. (Please let me know if I've got this wrong, and there's a way to pass an encoded URI directly to the Wayback Machine.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment