Amazon API example?

2Votes

Is there any examples available on how to use the Amazon API?  Specifically I want to look up a book title and get the cover image and a price if possible.

asked 5 years ago by Scott Griepentrog amazon api

Your Comment


1 Answers

1Votes
$response = Eden_Amazon_Ecs::i(AMAZON_PRIVATE_KEY, AMAZON_PUBLIC_KEY)
			->setService('AWSECommerceService')
			->setTimestamp()
			->setVersion('2009-03-31')
			->setOperation('ItemSearch')
			->setKeyword($keyword) //your keyword. eg: Harry Potter
			->setSearchIndex()
			->setResponseGroup('Large')
			->setCountry() //default is US
			->setIdType('EAN')
			->setAssociateTag(ASSOC_TAG) // your amazon tag( affiliate tag )
			->setPage(1) //this is the pagination
			->getResponse();

Note that this will return XML feed format.
answered 5 years ago by Clark Galgo
nice one clark
— commented 4 years ago by Christian Blanquera

Your Comment


Your Answer



© 2012 Openovate Labs. All rights reserved.