homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Can you get info from amazon by passing just an IBSN
Making amazon AWS script

 8:27 am on Feb 3, 2006 (gmt 0)

I want to create a completely customizable amazon AWS script. I've got this so far:

<snipped personal url, see TOS [webmasterworld.com]>

Now, it is dynamic but the problem is, its not automatically updated along with amazon. You have to manually enter all the info into a form, like price, title, etc. And you have to update them yourself with new prices and such. I couldn't find much in the amazon PHP developer section on amazon.com and I was wondering if there was a way I could just pass a IBSN to the amazon server and retrieve all the results from product info. That would make the script so much better.

I don't just want an RSS feed because I want to specify the exact products I wish to display in the categories which I define(not amazon categories, but categories that I create myself). I haven't found anything in PHP that actually does this.

[edited by: coopster at 2:54 pm (utc) on Feb. 3, 2006]
[edit reason] no personals please [/edit]



 3:03 pm on Feb 3, 2006 (gmt 0)

Welcome to WebmasterWorld, Archbob.

I'm not certain, but perhaps this relative thread regarding Ebay and Amazon APIs Integration with PHP [webmasterworld.com] will give you some ideas or direction?


 3:58 pm on Feb 3, 2006 (gmt 0)

The operator for one product is "ItemLookup" you simply enter the isbn or asin and it fetches all data.

The url for that operator would be:

&AWSAccessKeyId=[Your Access Key ID Here]
&ItemId=[An ASIN]

You should also read the amazon tos, price and availability information cant be older then 24 hours, so if you store it in a db make sure you refresh it every 24 hours.

I hope that helps a bit.


 8:42 pm on Feb 3, 2006 (gmt 0)

I'd just want to display the info straight from amazon. I'm guessing there's no way to do it without an Access Key?


 8:52 pm on Feb 3, 2006 (gmt 0)

Just get one by creating a account here:


Its free and fruity.

edit: hope linking to amazon aws signup isnt a TOS no-no


 9:45 pm on Feb 3, 2006 (gmt 0)

Ok, I got one and I'm looking at this page now:

However, I see all the parameters except the one I want: Price.

I'm looking at the Response group parameter hoping to find it now. You guys know which parameter it is. Parsing will not be much of a problem one I find the parameter.


 9:55 pm on Feb 3, 2006 (gmt 0)

Just parse the xml, price data is in there.

&AWSAccessKeyId=[Your Access Key ID Here]
&ItemId=[An ASIN]

Maybe also look @ the ResponseGroup parameter, that defines the amount of data returned.


 10:04 pm on Feb 3, 2006 (gmt 0)


Thats what you get from the return. The price of the item at hand is $29.99 which is nowhere to be found in the return from file-get-content. I even tried response Large, and still it doesn't always have the price.


 10:25 pm on Feb 3, 2006 (gmt 0)

Dunno why that feed doesn't contain a price value, try it with another asin, if i remember correctly amazon has 2 price operators ListPrice and OurPrice, so look out for those.


 10:35 pm on Feb 3, 2006 (gmt 0)

Is my method right:
print "$var<br>";

What your seeing is var.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved