SlideShare a Scribd company logo
1 of 14
Worldcat (and other) APIs

         Steve Henry
    University of Maryland
What is an API?
• An “Application Programming Interface.”
• Wikipedia: An application programming
  interface (API) is a source code based
  specification intended to be used as an
  interface by software components to
  communicate with each other. An API may
  include specifications for routines, data
  structures, object classes, and variables.
Huh??
• You use it to pass information between two
  programs, often on the Web
• Web-based API = “Web services”
Two Kinds of APIs
• SOAP
  – We don’t care about this one
• REST
  – This is the one you want
• What’s a RESTful API
  – I don’t really know, but it looks like an OPAC
    canned search
Canned OPAC Searches
• Base:
  – http://catalog.umd.edu/
• Path
  – F/?
• Query Parameters (“?” signals start of
  parameters):
  – func=find-c&
  – ccl_term=(wsu=texas+rock+music)
• http://catalog.umd.edu/F/?func=find-
  c&ccl_term=(wsu=texas+rock+music)
RESTful API Requests
• They look similar to canned OPAC searches
• Base:
  – http://www.worldcat.org/
• Path
  – webservices/catalog/search/opensearch?
• Query
  – q=texas%20rock%20music&
  – wskey=p21UMn6mINQV2uXvborGIWDxYMG7YxwnkE
    SLcxFQrpcwPog0cUDylripgHgzJkx93o2fPPHT1OldL8LE
All Together Now
• http://www.worldcat.org/webservices/catalog
  /search/opensearch?q=texas%20rock&wskey=
  p21UMn6mINQV2uXvborGIWDxYMG7YxwnkE
  SLcxFQrpcwPog0cUDylripgHgzJkx93o2fPPHT1
  OldL8LE
Another Example
• Base
  – http://www.worldcat.org/
• Path
  – webservices/catalog/content/53138893?
  – Note: an OCLC number is part of the path
• Queries (Developer Key in this case)
  – wskey=6omTbWBPu4oEuQ4gnXEx2YwjwMfQMDD
    zOoVubVlEackZrX9r0yKs7u7hmUiABnXH85bUunlQ
    Euyoz9iD
Single Record in MARCxml
• http://www.worldcat.org/webservices/catalog
  /content/53138893?wskey=6omTbWBPu4oEu
  Q4gnXEx2YwjwMfQMDDzOoVubVlEackZrX9r0
  yKs7u7hmUiABnXH85bUunlQEuyoz9iD
Other Worldcat APIs
• http://oclc.org/developer/webservices
• Basic API (Open to anyone)
  • Only allows un-fielded keyword search
  • Results in RSS, Atom, or formatted citations only
• Search API (For institutions contributing to
  Worldcat)
  • More options for searching and output than Basic API
• xISBN (Retrieves related ISBNs)
• Identities (names, corporate names, subjects)
Using APIs with Yahoo Pipes
• An example in Yahoo Pipes
  – http://pipes.yahoo.com/mspal/worldcatopensearchsi
    mple
  – This pipe simply allows you to search Worldcat using
    an API request rather than the Worldcat interface.
    This is how you would create a widget for Libguides
    for example
  – To see under the hood, create a Yahoo account and
    click “view source”
  – You can also clone the pipe and experiment with
    making changes
Mashing It UP
• An example using both the Worldcat Basic API and the
  Last.FM API
   – http://pipes.yahoo.com/mspal/lastfmandworldcat
   – (You might need to click “Run pipe” before seeing results)
   – This one uses the Last.FM to retrieve the last few tracks a
     user has heard
   – Album and artist info are retrieved and used to build a
     query to search the Worldcat API
   – Worldcat search results than are presented with links into
     Worldcat
   – You can view results for a different user simply by entering
     a user in the search box
Useful Books
• Engard, Nicole. Library Mashups: Exploring New
  Ways to Deliver Library Data. Medford N.J.:
  Information Today Inc., 2009.
• Matthews, Martin. Dynamic Web Programming: a
  Beginner’s Guide. New York: McGraw-Hill, 2010.
• Makice, Kevin. Twitter API: Up and Running.
  Sebastopol Calif.: O’Reilly, 2009.
• Pruett, Mark. “Yahoo! Pipes”. Sebastopol, Calif.:
  O’Reilly, 2007.
Links
• OCLC Web Services
   – http://oclc.org/developer/webservices
• Last.FM API
   – http://www.last.fm/api/intro
• Yahoo Pipes
   – http://pipes.yahoo.com
• Handout from a workshop on Yahoo Pipes, RSS feeds, and Worldcat
   – http://www.lib.umd.edu/JUNK/shenry/wcl-handout.pdf
• Running Bibliography on Music, APIs, and Libraries
   – http://www.mendeley.com/groups/1910831/music-apis-and-
     mashups-for-libraries/
• Me
   – shenry@umd.edu

More Related Content

Similar to Worldcat (and other) APIs

Harnessing Free Content with Web Service APIs
Harnessing Free Content with Web Service APIsHarnessing Free Content with Web Service APIs
Harnessing Free Content with Web Service APIsALATechSource
 
The WorldCat Search API
The WorldCat Search APIThe WorldCat Search API
The WorldCat Search APIOCLC Research
 
Library Mashups: What's New
Library Mashups: What's NewLibrary Mashups: What's New
Library Mashups: What's NewNicole Baratta
 
Library Mashups: What's New
Library Mashups: What's NewLibrary Mashups: What's New
Library Mashups: What's NewNicole Baratta
 
Mining public datasets using opensource tools: Zeppelin, Spark and Juju
Mining public datasets using opensource tools: Zeppelin, Spark and JujuMining public datasets using opensource tools: Zeppelin, Spark and Juju
Mining public datasets using opensource tools: Zeppelin, Spark and Jujuseoul_engineer
 
Module development
Module development Module development
Module development Araport
 
Library Mashups & APIs
Library Mashups & APIsLibrary Mashups & APIs
Library Mashups & APIslibrarywebchic
 
JSON REST API for WordPress
JSON REST API for WordPressJSON REST API for WordPress
JSON REST API for WordPressTaylor Lovett
 
Drupal and Apache Stanbol
Drupal and Apache StanbolDrupal and Apache Stanbol
Drupal and Apache StanbolAlkuvoima
 
Web 2.0 - Continuing impact on Library Catalogues
Web 2.0 - Continuing impact on Library CataloguesWeb 2.0 - Continuing impact on Library Catalogues
Web 2.0 - Continuing impact on Library Cataloguesdaveyp
 
Integration on Force.com Platform
Integration on Force.com PlatformIntegration on Force.com Platform
Integration on Force.com PlatformAmit Jain
 
Talis Insight 2007
Talis Insight 2007Talis Insight 2007
Talis Insight 2007daveyp
 
Designing RESTful APIs
Designing RESTful APIsDesigning RESTful APIs
Designing RESTful APIsanandology
 
Introduction to Google APIs
Introduction to Google APIsIntroduction to Google APIs
Introduction to Google APIsSiva Arunachalam
 
Rapid API Development ArangoDB Foxx
Rapid API Development ArangoDB FoxxRapid API Development ArangoDB Foxx
Rapid API Development ArangoDB FoxxMichael Hackstein
 
Semantic Pipes and Semantic Mashups
Semantic Pipes and Semantic MashupsSemantic Pipes and Semantic Mashups
Semantic Pipes and Semantic Mashupsgiurca
 

Similar to Worldcat (and other) APIs (20)

Harnessing Free Content with Web Service APIs
Harnessing Free Content with Web Service APIsHarnessing Free Content with Web Service APIs
Harnessing Free Content with Web Service APIs
 
The WorldCat Search API
The WorldCat Search APIThe WorldCat Search API
The WorldCat Search API
 
Library Mashups: What's New
Library Mashups: What's NewLibrary Mashups: What's New
Library Mashups: What's New
 
Library Mashups: What's New
Library Mashups: What's NewLibrary Mashups: What's New
Library Mashups: What's New
 
Web Services
Web ServicesWeb Services
Web Services
 
Mining public datasets using opensource tools: Zeppelin, Spark and Juju
Mining public datasets using opensource tools: Zeppelin, Spark and JujuMining public datasets using opensource tools: Zeppelin, Spark and Juju
Mining public datasets using opensource tools: Zeppelin, Spark and Juju
 
Module development
Module development Module development
Module development
 
Library Mashups & APIs
Library Mashups & APIsLibrary Mashups & APIs
Library Mashups & APIs
 
JSON REST API for WordPress
JSON REST API for WordPressJSON REST API for WordPress
JSON REST API for WordPress
 
Web APIs
Web APIsWeb APIs
Web APIs
 
Drupal and Apache Stanbol
Drupal and Apache StanbolDrupal and Apache Stanbol
Drupal and Apache Stanbol
 
Web 2.0 - Continuing impact on Library Catalogues
Web 2.0 - Continuing impact on Library CataloguesWeb 2.0 - Continuing impact on Library Catalogues
Web 2.0 - Continuing impact on Library Catalogues
 
Integration on Force.com Platform
Integration on Force.com PlatformIntegration on Force.com Platform
Integration on Force.com Platform
 
Talis Insight 2007
Talis Insight 2007Talis Insight 2007
Talis Insight 2007
 
Dave Pattern
Dave PatternDave Pattern
Dave Pattern
 
Widget Workshop
Widget WorkshopWidget Workshop
Widget Workshop
 
Designing RESTful APIs
Designing RESTful APIsDesigning RESTful APIs
Designing RESTful APIs
 
Introduction to Google APIs
Introduction to Google APIsIntroduction to Google APIs
Introduction to Google APIs
 
Rapid API Development ArangoDB Foxx
Rapid API Development ArangoDB FoxxRapid API Development ArangoDB Foxx
Rapid API Development ArangoDB Foxx
 
Semantic Pipes and Semantic Mashups
Semantic Pipes and Semantic MashupsSemantic Pipes and Semantic Mashups
Semantic Pipes and Semantic Mashups
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 

Worldcat (and other) APIs

  • 1. Worldcat (and other) APIs Steve Henry University of Maryland
  • 2. What is an API? • An “Application Programming Interface.” • Wikipedia: An application programming interface (API) is a source code based specification intended to be used as an interface by software components to communicate with each other. An API may include specifications for routines, data structures, object classes, and variables.
  • 3. Huh?? • You use it to pass information between two programs, often on the Web • Web-based API = “Web services”
  • 4. Two Kinds of APIs • SOAP – We don’t care about this one • REST – This is the one you want • What’s a RESTful API – I don’t really know, but it looks like an OPAC canned search
  • 5. Canned OPAC Searches • Base: – http://catalog.umd.edu/ • Path – F/? • Query Parameters (“?” signals start of parameters): – func=find-c& – ccl_term=(wsu=texas+rock+music) • http://catalog.umd.edu/F/?func=find- c&ccl_term=(wsu=texas+rock+music)
  • 6. RESTful API Requests • They look similar to canned OPAC searches • Base: – http://www.worldcat.org/ • Path – webservices/catalog/search/opensearch? • Query – q=texas%20rock%20music& – wskey=p21UMn6mINQV2uXvborGIWDxYMG7YxwnkE SLcxFQrpcwPog0cUDylripgHgzJkx93o2fPPHT1OldL8LE
  • 7. All Together Now • http://www.worldcat.org/webservices/catalog /search/opensearch?q=texas%20rock&wskey= p21UMn6mINQV2uXvborGIWDxYMG7YxwnkE SLcxFQrpcwPog0cUDylripgHgzJkx93o2fPPHT1 OldL8LE
  • 8. Another Example • Base – http://www.worldcat.org/ • Path – webservices/catalog/content/53138893? – Note: an OCLC number is part of the path • Queries (Developer Key in this case) – wskey=6omTbWBPu4oEuQ4gnXEx2YwjwMfQMDD zOoVubVlEackZrX9r0yKs7u7hmUiABnXH85bUunlQ Euyoz9iD
  • 9. Single Record in MARCxml • http://www.worldcat.org/webservices/catalog /content/53138893?wskey=6omTbWBPu4oEu Q4gnXEx2YwjwMfQMDDzOoVubVlEackZrX9r0 yKs7u7hmUiABnXH85bUunlQEuyoz9iD
  • 10. Other Worldcat APIs • http://oclc.org/developer/webservices • Basic API (Open to anyone) • Only allows un-fielded keyword search • Results in RSS, Atom, or formatted citations only • Search API (For institutions contributing to Worldcat) • More options for searching and output than Basic API • xISBN (Retrieves related ISBNs) • Identities (names, corporate names, subjects)
  • 11. Using APIs with Yahoo Pipes • An example in Yahoo Pipes – http://pipes.yahoo.com/mspal/worldcatopensearchsi mple – This pipe simply allows you to search Worldcat using an API request rather than the Worldcat interface. This is how you would create a widget for Libguides for example – To see under the hood, create a Yahoo account and click “view source” – You can also clone the pipe and experiment with making changes
  • 12. Mashing It UP • An example using both the Worldcat Basic API and the Last.FM API – http://pipes.yahoo.com/mspal/lastfmandworldcat – (You might need to click “Run pipe” before seeing results) – This one uses the Last.FM to retrieve the last few tracks a user has heard – Album and artist info are retrieved and used to build a query to search the Worldcat API – Worldcat search results than are presented with links into Worldcat – You can view results for a different user simply by entering a user in the search box
  • 13. Useful Books • Engard, Nicole. Library Mashups: Exploring New Ways to Deliver Library Data. Medford N.J.: Information Today Inc., 2009. • Matthews, Martin. Dynamic Web Programming: a Beginner’s Guide. New York: McGraw-Hill, 2010. • Makice, Kevin. Twitter API: Up and Running. Sebastopol Calif.: O’Reilly, 2009. • Pruett, Mark. “Yahoo! Pipes”. Sebastopol, Calif.: O’Reilly, 2007.
  • 14. Links • OCLC Web Services – http://oclc.org/developer/webservices • Last.FM API – http://www.last.fm/api/intro • Yahoo Pipes – http://pipes.yahoo.com • Handout from a workshop on Yahoo Pipes, RSS feeds, and Worldcat – http://www.lib.umd.edu/JUNK/shenry/wcl-handout.pdf • Running Bibliography on Music, APIs, and Libraries – http://www.mendeley.com/groups/1910831/music-apis-and- mashups-for-libraries/ • Me – shenry@umd.edu

Editor's Notes

  1. http://www.worldcat.org/webservices/catalog/search/opensearch?q=texas%20rock&wskey=p21UMn6mINQV2uXvborGIWDxYMG7YxwnkESLcxFQrpcwPog0cUDylripgHgzJkx93o2fPPHT1OldL8LE
  2. http://www.worldcat.org/webservices/catalog/content/53138893?wskey=6omTbWBPu4oEuQ4gnXEx2YwjwMfQMDDzOoVubVlEackZrX9r0yKs7u7hmUiABnXH85bUunlQEuyoz9iD