OCLC Introduces an API for Anyone to Access Book Data

Posted on 3 minute read

× This article was imported from this blog's previous content management system (WordPress), and may have errors in formatting and functionality. If you find these errors are a significant barrier to understanding the article, please let me know.

OCLC announced on Monday the availability of a new API for querying the WorldCat database: the WorldCat Basic API. This is a big deal -- it opens up part of the metadata in WorldCat to anyone who wants it (for non-commercial purposes). Previously, access to WorldCat data through the developer network was limited to institutions that are members of OCLC. Data returned includes text strings for author names and book titles, ISBN and OCLC identifiers, a link to the HTML display of the record on WorldCat.org, and an optional HTML-formatted citation.

Getting access to the API is pretty easy. One signs up for an API key that plugs into the URL when making a request. The key are limited to 1,000 queries per day. Requests are made to the API using a REST-style URL, and results are returned in RSS or Atom format.

This is incredibly useful for finding out data when what you have is an ISBN. For example, an API request for ISBN 0-8161-1889-2 would look like this:

http://worldcat.org/webservices/catalog/search/worldcat/opensearch?
q=0816118892&
start=1&
count=10&
wskey=omitted&
format=atom&
cformat=mla

...returns a results set with this data:


    xmlns:oclcterms="http://purl.org/oclc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
  OCLC Worldcat Search: 0816118892
  http://worldcat.org/webservices/catalog/search/worldcat/opensearch?q=0816118892&start=1&count=10&format=atom&wskey=[omitted]
  2009-12-16T13:54:55-05:00
  Search results for 0816118892 at http://worldcat.org/webservices/catalog
  2
  1
  10
  
        href="http://worldcat.org/webservices/catalog/search/worldcat/opensearch?q=0816118892&start=1&count=10&wskey=[omitted]"
     type="text/html"/>
        href="http://worldcat.org/webservices/catalog/search/worldcat/opensearch?q=0816118892&start=1&count=10&wskey=[omitted]&format=atom"
     type="application/atom+xml"/>
        href="http://worldcat.org/webservices/catalog/search/worldcat/opensearch?q=0816118892&start=1&count=10&wskey=[omitted]&format=atom"
     type="application/atom+xml"/>
        href="http://worldcat.org/webservices/catalog/search/worldcat/opensearch?q=0816118892&start=2&count=10&wskey=[omitted]&format=atom"
     type="application/atom+xml"/>
        href="http://worldcat.org/webservices/catalog/opensearch.description.xml"/>
     
  
     
        Crawford, Walt.
     

     MARC for library use : understanding integrated USMARC
           http://worldcat.org/oclc/18909048
     2008-04-03T16:22:32Z
     

Crawford, Walt.
        MARC for Library Use: Understanding Integrated
        USMARC
. [Professional librarian series]. Boston: G.K. Hall, 1989.
        


     urn:ISBN:0816118876
     urn:ISBN:9780816118878
     urn:ISBN:0816118892
     urn:ISBN:9780816118892
     18909048
  
  
  
     
        Crawford, Walt.
     

     MARC for library use : understanding integrated USMARC
           http://worldcat.org/oclc/473475190
     2009-12-11T02:48:57Z
     

Crawford, Walt.
        MARC for Library Use: Understanding Integrated
        USMARC
. Boston, Mass: G.K. Hall, 1989.


     urn:ISBN:0816118876
     urn:ISBN:9780816118878
     urn:ISBN:0816118892
     urn:ISBN:9780816118892
     473475190
  

From that, one can provide information about other editions of the same work and links back to OCLC for more information and to have people use the locate-in-a-library feature of WorldCat.org.

The WorldCat Basic API joins other free WorldCat services. Unlike the WorldCat Basic API, these services embed pre-formatted HTML into the page without having to understand any coding at all: the "list" widget for displaying a list of items already created in WorldCat; the "keyword search" widget for displaying the results of a search in WorldCat; the "search box" widget that lets users enter a search term and be taken to the full-blown WorldCat.org; and embedded search WorldCat links for pre-constructing a search that leads into the full-blown WorldCat.org. All of these are free for non-commercial use, as described by the OCLC Affiliate Services Terms and Conditions.

If I were to have a complaint about the WorldCat Basic API, it would not be about the API itself but rather how it is described on the WorldCat Affiliate Services page. Those that have been following OCLC's efforts in providing developer API access into WorldCat data know about other services such as the WorldCat Search API, xISBN/xISSN, and the Registry Search. What isn't clear from any of the pages is "What is the definition of affiliate?" and "Given different tiers of affiliate status, who has access to (how much of) what?" Since OCLC is a cooperative organization, does "Affiliate" mean a member of the cooperative? In a conversation with Roy Tennant on the code4lib IRC channel, he cleared this up this question: in this case "affiliate" means more of the Internet-era definition of the word where a site offers services for other developers to consume. One is still left with the second question, though, as to what services are available at what limits to which categories of consumers. For instance, the page describing the xISBN service lists several tiers: free for any non-commercial use up to 500 requests/day, free (presumably with no daily limit) to all OCLC cataloging members, and available on a subscription baseis for non-commercial use that exceeds 500 requests per day or for commercial use. There a similar tiers described in other services, but there isn't an acknowledgement of these tiers on the main WorldCat affiliates page or a convenient list of what is possible in what tiers. I hope OCLC will consider revising the description of these services to include these details.