Design Shrine Style Interiors & Web Design Resources

RSS Design, Web, Interior & Style Portal

Open Library API: Cataloging 13 Million Books

Article or RSS item submitted by Ty Wenzel • May 28th, 2008 • Category: Web 2.0 | API | Mashups | 34 views

The Open Library is a project of the non-profit Internet Archive , whose long-term goal is to present “one web page for every book ever published.” A recent release of the Open Library brought the total number of book records to over 13.4 million, including over 234,000 records with full-text for the book. A new public Open Library API was also announced to give read access to the Open Library (and note that the addition of the Open Library API profile here means there are now 14 different book-oriented APIs on ProgrammableWeb ).

Consider one of my favorite books on the Python programming language: David Beazley’s Python Essential Reference, 3rd Edition . You can find the Open Library record for the book at

http://www.openlibrary.org/b/OL7668717M

On that page, you will see metadata about the book (e.g., title, author, language, the ISBN, etc.), as well as links to booksellers and libraries that might be able to sell you a copy of the book. Something that might be surprising is that you (and anyone else) can edit the record and see the history of revisions to the record. Think of Open Library as a big book-oriented wiki.

Using this book as an example, let’s look at how to apply the three parts of the Open Library API:

  • get (to get an object)
  • things (to query for objects)
  • versions (to look for versions of objects)
  • Note that a good place to try out the API is the Open Library API Sandbox , which allows you to issue a query to the API and see the response.

    First, you can issue the following get query:

    curl http://www.openlibrary.org/api/get?key=/b/OL7668717M

    to get a JSON object that holds metadata about the book. In fact, you can get the JSON response to show up nicely in the browser by attaching the following parameters to the URL

    &prettyprint=true&text=true

    to pretty-print the response and send it as plain text

    Second, let’s figure out how to get the Open Library identifier for this book (which you needed for the get query) using a things query. If you have an ISBN-10 for the book (i.e., 0672328623) , you can use direct a query whose value is

    {"type":"\/type\/edition", "isbn_10":"0672328623"}

    to generate the corresponding response .

    You can use a things query to search for books by title. Here you can specify a wildcard (*) at the end of a field, whose name you need to mark with ~

    {"type":"\/type\/edition",
     "title~":"Python Essential Reference*"}

    to generate a response containing the corresponding Open Library identifier.

    Third, we can get at the different versions of a record in Open Library by performing a versions query whose value is

    {"key": "\/b\/OL7668717M",
     "sort":"-created", "limit":10}

    to generate a JSON object holding version data for the record .

    There’s plenty more to explore in the documentation of the API, including the list of types supported in the API.

    It’ll be interesting to see whether it will get a following primarily in the library community or in the larger world. The announcement of the API on the code4lib list (a “forum for discussion of computer programming in the area of libraries and information science”) immediately prompted the question of why the API was not implemented using SRU (a protocol used, for example, at the Library of Congress). The ranges of responses in the thread (SRU is “incomprehensible to non-librarians ” to “non librarian students look at the [SRU] document and start working with it straight away. “) should be familiar to anyone who has struggled with the questions of whether to adopt an existing standard or protocol or to create one’s own. How could concepts that are crystal clear to one group appear so obscure to another group? Who exactly is the audience for a given API? How do you accommodate multiple audiences in the design of an API?


    Link to the Source
    adobe-indesign-cs3-5-0-windows-pc-*unregistered*-cs-3 Adobe InDesign CS3 (5.0) Windows PC *UNREGISTERED* CS 3
    US $299.00 (0 Bid)
    End Date: Saturday Nov-22-2008 8:55:11 PST
    Bid now | Buy it now | Add to watch list
    adobe-photoshop-cs3-extended-for-windows-pc Adobe Photoshop CS3 Extended for Windows (PC)
    US $249.00 (0 Bid)
    End Date: Saturday Nov-22-2008 9:22:48 PST
    Bid now | Add to watch list
    adobe-photoshop-cs3-extended-for-windows-pc Adobe Photoshop CS3 Extended for Windows (PC)
    US $249.00 (0 Bid)
    End Date: Saturday Nov-22-2008 9:23:38 PST
    Bid now | Add to watch list
    adobe-after-effects-cs3-professional-cs-3-pro-windows Adobe After Effects CS3 Professional - CS 3 Pro Windows
    US $399.00 (0 Bid)
    End Date: Saturday Nov-22-2008 11:04:25 PST
    Bid now | Buy it now | Add to watch list
    photoshop-user-magazine-oct-nov-2007-issue-adobe-cs3 Photoshop User Magazine Oct/Nov 2007 Issue Adobe CS3
    US $6.99
    End Date: Saturday Nov-22-2008 11:35:44 PST
    Buy it now | Add to watch list
    adobe-photoshop-cs3-photography-7-course-training-pack Adobe Photoshop CS3 Photography 7 Course Training Pack
    US $34.99
    End Date: Saturday Nov-22-2008 12:16:35 PST
    Buy it now | Add to watch list
    adobe-photoshop-cs3-photographer-5-course-training-pack Adobe Photoshop CS3 Photographer 5 Course Training Pack
    US $24.99
    End Date: Saturday Nov-22-2008 12:26:35 PST
    Buy it now | Add to watch list
    adobe-cs3-3-creative-suite-3-3-master-collection-win Adobe CS3.3 Creative Suite 3.3 Master Collection WIN
    US $1,599.99
    End Date: Saturday Nov-22-2008 12:43:05 PST
    Buy it now | Add to watch list
    adobe-cs3-creative-suite-3-production-premium-mac-full Adobe CS3 Creative Suite 3 Production Premium MAC Full
    US $999.99
    End Date: Saturday Nov-22-2008 12:43:23 PST
    Buy it now | Add to watch list
    adobe-creative-suite-cs3-web-standard-upgrade-mac Adobe Creative Suite CS3 Web Standard Upgrade MAC
    US $269.95
    End Date: Saturday Nov-22-2008 13:20:11 PST
    Buy it now | Add to watch list
    Share, E-Mail or Print the Style:
    • E-mail this story to a friend!
    • Print this article!
    • e-mail
    • Digg
    • StumbleUpon
    • del.icio.us
    • Facebook
    • Mixx
    • Reddit
    • Technorati
    • YahooMyWeb
    • Google
    • TwitThis
    • Pownce
    • Live
    • Wists
    • ThisNext
    Share This Post

    If you liked this, You might also like:

    1. 40 Downloadable Open Source Social Software Applications
    2. While large scale social sites like Flickr, Digg, Youtube and Myspace have predominated the web-o-sphere over the past few years...
    3. MICROSOFT: Open Source is a Bigger Threat than Google
    4. Speaking at a conference in New York, Microsoft’s chief architect, Ray Ozzie, said open source is a bigger threat to...
    5. 50 Open Source Resources for Writers
    6. 50 Awesome Open Source Resources for Online Writers Published on Tuesday April 29th , 2008 By Christina Laun With the...
    7. Open Source Free Website Templates, CSS Tools, Generators and more
    8. I found this very useful post that I thought you all might like to know about.  The site itself is...
    9. NY Open Thread 609
    10. Free Space…Welcome to cinema, Nougat and Akino luna! See pics of our apartments at or ATNY Flickr page and...
    11. Sloan Foundation gives Wikimedia Foundation $3 million
    12. Talk about hot foundation-on-foundation action. On Tuesday, the Alfred P. Sloan Foundation announced it was giving the Wikimedia Foundation–which runs...
    13. Google Releases API for Book Search
    14. [Editor’s note: Today’s post comes from Raymond Yee, who we are very happy to have joining us as a regular...
    15. Downloadpedia - Best Open Source Software for Windows
    16. This is the updated list of the best open source software. The only way to have TRUE “Open Source Windows”...
    17. OPEN SOURCE GOD: 480+ Open Source Applications
    18. Open source software is booming: here we round up over 480 open source applications for you to use or build...
    19. Book Review: Two Books on Sustainability
    20. Natural Capitalism: Creating the Next Industrial Revolution (2000) by Paul Hawken, Amory Lovins, & L. Hunter Lovins Back Bay Books...

    Tagged as: , , , ,
    Daily Deals

    Leave a Reply