Skip to main content

Notes

  • Keyless for every read here. Rate limiting answers 429, possibly with Retry-After.
  • Queries use the Lucene-like Advanced Search syntax: field:term, AND by default, ranges with [a TO b], e.g. publicdate:[2008-02-01 TO 2008-03-01] AND contributor:smithsonian.
  • An item is addressed by its identifier; metadata.get lists its files.
  • Wayback timestamps are yyyyMMddhhmmss, 1 to 14 digits (20060101 is fine).

Endpoints

Search items

  • Sorted paged results stop at the 10,000th; for more use search.scrape.
  • Send output=json; the docs’ example does.

Scrape all matching items

  • Answers carry items, count, total and cursor; send cursor back until none is returned. With a cursor, total counts from the cursor on.

Get an item’s metadata and files

  • A missing item answers an empty array [], not an error.

Get part of an item’s metadata

  • The value comes wrapped as {“result”: …}; a missing path answers an error field.

Find the closest Wayback snapshot of a URL

  • No capture answers {“archived_snapshots”: {}}.

List Wayback captures of a URL

  • Set limit: a popular URL has a very large number of captures. Page with showResumeKey/resumeKey; offset scales poorly.