2 comments

[ 3.1 ms ] story [ 15.5 ms ] thread
> One of my favorite parts of Open Library is that practically every page is an API. All that is required is adding “.json” to the end. Here are some examples:

>

>Search

>https://openlibrary.org/search?q=lord+of+the+rings is our search page for humans…

>https://openlibrary.org/search.json?q=lord+of+the+rings is our Search API!

This is a really intuitive way to do this.

It is also spider-friendly as to its static pages. See robots.txt

Take the page URL for any work, add .json and you get bibliographic information, including the page URL(s) for the author(s).

For example,

    https://openlibrary.org/works/OL1234567W.json
All the page URLs for Works and Authors are available as gzip'd XML at

    https://openlibrary.org/static/sitemaps/