21

I skimmed through their documentation and found it a bit overwhelming at first. I know you can search for items by entering a UPC (the number below a 1D barcode), but I couldn't find a word about it in the API.

What I want to do is perform a product lookup by doing a UPC search after scanning a barcode.

A.H.
  • 63,967
  • 15
  • 92
  • 126
mxk
  • 43,056
  • 28
  • 105
  • 132

4 Answers4

16

Here is a page from the https://webservices.amazon.com/paapi5/documentation/use-cases/search-with-external-identifiers.html which shows how you can use the ItemLookup method to find a specific product by UPC.

Note that default IdType for the ItemLookup is ASIN, but you can change it to something else like UPC if you need to

Marcello B.
  • 4,177
  • 11
  • 45
  • 65
quickcel
  • 506
  • 2
  • 8
  • 15
  • 3
    perfect, thanks! On a side note... it's interesting to see how even Amazon still don't understand what RESTful service APIs are. I stumbled upon this: Using ItemLookup (REST) The following ItemLookup example demonstrates a request for item information for an ASIN. http://webservices.amazon.com/onca/xml?Service=AWSECommerceService &SubscriptionId=[ID] &Operation=ItemLookup &ItemId=[An ASIN] that URL violates every principle behind a RESTful interface design... but well, as long as it does the job, who am I to complain :) – mxk Aug 04 '09 at 13:49
  • Unfortunately the link is broken :( Any chance you can find the page again and correct the link? Thanks! – cagcowboy Oct 11 '12 at 07:52
  • I guess it's now called the "Product Advertising API", but I updated the link above to this: http://docs.amazonwebservices.com/AWSECommerceService/2011-08-01/DG/ItemLookup.html – quickcel Oct 11 '12 at 12:57
  • url changed to https://webservices.amazon.com/paapi5/documentation/use-cases/search-with-external-identifiers.html – Mahmoud Aug 07 '21 at 17:34
11

Be carefull if you want to use the Amazon web services API on a mobile device !

We've found this in the Amazon.com Product Advertising API License Agreement:

4) Usage Requirements

(e) You will not, without our express prior written approval, use any Product Advertising Content on or in connection with any site or application designed or intended for use with a mobile phone or other handheld device, or any television set-top box ....

Link to Amazon.com Product Advertising API License Agreement

Any Ideas for an alternative ItemLookup method to find a specific product by UPC/Barcode ?

Damith
  • 62,401
  • 13
  • 102
  • 153
Matthias K.
  • 111
  • 1
  • 5
0

Yes sure, the Amazon web service APIs does support barcode/UPC queries. Any information / documentation are to be found here.

If you want to generate barcodes, maybe this helps?

Cheers, Tim

Math
  • 3,334
  • 4
  • 36
  • 51
Tim
  • 1
0

With IdType request parameters ( see documentation here ) not only for upc, but also support ean and isbn query

bataz
  • 1
  • 2