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.
source share