Amazon API Access with PHP and XML 1.0
Now everybody heard of Amazon.com. What not everybody knows that Amazon released an API to access its huge catalogs. What this basically means is that each developer can access the information from Amazon following some simple protocols and every site owner can enhance his own website with content and features from Amazon.
The Amazon API comes as a simple Webservice. Here are the first Web services that they have exposed:
- Product Display : The ability to search for and retrieve product information from the Amazon.com catalog.
- Shopping Cart : The ability to add Amazon.com products to shopping carts, wish lists, and registries from third party locations.
No matter of your intentions, you will first need to register and obtain a valid developer token. You can get your token here at this address: http://www.amazon.com/webservices
The current listed implementation of Amazon webservices uses Keyword searches. It has basically the same results as searching the books catalog online. As any developer/webmaster can see in the "Amazon.com Web Services Developers Kit v 1.0" document, a lot of other Amazon features are exposed. This would imply extending the base structure I present here.
There are multiple approaches from a developer's point of view. The simplest one deals with SOAP and web services classes already implemented in PHP. You could also extend the PEAR's XMLParser object to parse Amazon results. The reason I did not choose these directions is because they require additional extensions installed with PHP. What I currently use is the XML parsing package that comes embedded in PHP, so it is slightly more general.
What basically happens in this implementation is that the search word entered by the used is embedded into a XML url that is then retrieved from Amazon.com. Then PHP builds a nice display for the information received.
More popular Web service
- Twitter 1.0 (4 years, 1 month 26 days ago)
- Contacts importer 0.1 (3 years, 11 months 13 days ago)
- API 1.0 (3 years, 4 months 24 days ago)
- GDataGmailer 1.0 (4 years, 4 months 12 days ago)
- Open Inviter 1.6.2 (4 years, 6 months 4 days ago)
Listing Files

amazon_layout.php- 2.7 KB
- 10/02/2005 18:11:28

amazon.php- 3.5 KB
- 10/02/2005 18:11:28

amazon_class.php- 13.1 KB
- 10/02/2005 18:11:28

amazon_search_layout.php- 1.9 KB
- 10/02/2005 18:11:28

amazon_search_teaser.php- 951 Bytes
- 10/02/2005 18:11:28

amazon_config.php- 6.2 KB
- 10/02/2005 18:11:28

amazon_search_config.php- 2.4 KB
- 10/02/2005 18:11:28
- FREE MySQL Cloud Database Super Simple, Zero-Management MySQL Cloud DB. Use It FREE!
- Pinterest clone Start your own pin board social network today. Get Pintastic and start your own pinterest clone network.
- MYRE Real Estate Software Professional Real Estate solutions by MYREPHP PROGRAMMING!
