How can I lookup data about a book from its barcode number?

Posted by Joel Spolsky on Stack Overflow See other posts from Stack Overflow or by Joel Spolsky
Published on 2008-09-20T03:28:34Z Indexed on 2010/06/11 4:33 UTC
Read the original article Hit count: 244

Filed under:
|
|
|
|

I'm building the world's simplest library application. All I want to be able to do is scan in a book's UPC (barcode) using a typical scanner (which just types the numbers of the barcode into a field) and then use it to look up data about the book... at a minimum, title, author, year published, and either the Dewey Decimal or Library of Congress catalog number.

The goal is to print out a tiny sticker ("spine label") with the card catalog number that I can stick on the spine of the book, and then I can sort the books by card catalog number on the shelves in our company library. That way books on similar subjects will tend to be near each other, for example, if you know you're looking for a book about accounting, all you have to do is find SOME book about accounting and you'll see the other half dozen that we have right next to it which makes it convenient to browse the library.

There seem to be lots of web APIs to do this, including Amazon and the Library of Congress. But those are all extremely confusing to me. What I really just want is a single higher level function that takes a UPC barcode number and returns some basic data about the book.

© Stack Overflow or respective owner

Related posts about language-agnostic

Related posts about api