Search for barcodes for games, books, CDs

I want to write my own media library and wondered if there are any free .Net APIs there to identify the product based on a given barcode? There are .Net APIs as secondary points to return cover art for books, CDs, games, etc. Based on barcode.

+4
source share
3 answers

You can also use amazon web services . You will need an account and an API key (free) and download the toolkit for Visual Studio .

To answer your specific question, barcode scanning returns the UPC. You can use the ItemLookup command for the Amazon web service for this search by setting IdType to "UPC" and ItemId to the corresponding UPC (barcode scan).

For more information, go to the API Reference in the Amazon Developer's Guide .

Here is a very simple C # code example:

  com.amazon.webservices.ItemLookup itemLookup = new com.amazon.webservices.ItemLookup(); itemLookup.AWSAccessKeyId = "XXXXXXXXXXXXXXXXXXXXXX"; com.amazon.webservices.ItemLookupRequest request = new com.amazon.webservices.ItemLookupRequest(); request.IdType = com.amazon.webservices.ItemLookupRequestIdType.UPC; request.ItemId = new String[] { "00028000133177" }; request.ResponseGroup = new String[] { "Small", "AlternateVersions" }; itemLookup.Request = new com.amazon.webservices.ItemLookupRequest[] { request }; try { com.amazon.webservices.ItemLookupResponse itemLookupResponse = com.amazon.webservices.AWSECommerceService.ItemLookup(itemLookup); com.amazon.webservices.Item item = itemLookupResponse.Items[0].Item[0]; System.Console.WriteLine(item.ItemAttributes.Title); } catch (Exception e) { System.Console.Error.WriteLine(e); } 

It should be noted that I wrote a program for this. I found that Amazon does not always correspond to each UPC (which is expected), but most of my items are found in Amazon. Once you find a match, you might want to keep the ASIN / UPC connection somewhere so that you can reference the ASIN (Amazon ID) element in the future.

+6
source

Try the following: http://www.ozgrid.com/barcodes/barcode-reader.htm

EDIT1: API for requesting a barcode www.upcdatabase.com: http://www.upcdatabase.com/xmlrpc.asp I cannot provide a lot of information about this, but it can help you. This page has C # VB APIs for barcode queries.

+1
source
0
source

All Articles