PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Looking up a Specific Amazon Item by ASIN

The itemLookup() method provides the ability to fetch a particular Amazon item when the ASIN is known.

Example 713. Looking up a Specific Amazon Item by ASIN

<?php
$amazon 
= new Zend_Service_Amazon('AMAZON_API_KEY''US''AMAZON_SECRET_KEY');
$item $amazon->itemLookup('B0000A432X');

The itemLookup() method also accepts an optional second parameter for handling search options. For full details, including a list of available options, please see the relevant Amazon documentation.

Image information

To retrieve images information for your search results, you must set ResponseGroup option to Medium or Large.

Zend Framework