Also get tired of the difference between UPC and EAN.
UPC = 12 digits, EAN = 13 digits
If you just click on UPC 738678251584 (12 digits) or EAN 3253581057803 (13 digits) on Amazon.com, it will show as UPC in the description, but using the API, you must specify EAN when the search is.
We have products with both, and you need to specify the type of search accordingly or it will not be found.
Edit : OR you can simply add 0 to any 12-digit numbers and always look for EAN. This is probably the best solution. By definition, "0" + UPC = EAN
This request worked for me (searchType is a UPC or EAN):
ItemLookup itemLookup = new ItemLookup() { AssociateTag = "XXXXX-20", }; itemLookup.AWSAccessKeyId = ACCESS_ID; ItemLookupRequest itemLookupRequest = new ItemLookupRequest(); itemLookupRequest.IdTypeSpecified = true; itemLookupRequest.IdType = searchType; itemLookupRequest.SearchIndex = "All"; itemLookupRequest.ItemId = upcEanList; itemLookupRequest.ResponseGroup = new[] { "OfferSummary", "ItemAttributes" }; itemLookup.Request = new ItemLookupRequest[] { itemLookupRequest };
source share