取亚马逊回购(QUOT;以旧换新")价格 [英] Fetching Amazon buyback ("trade-in") price
问题描述
有没有办法通过一个API来获取亚马逊回购(又名以旧换新)的价格教科书?我已经搜查了一段时间却找不到线索的人是如何得到这为他们的网站。
Is there a way to get the Amazon buyback (aka "trade-in") prices for textbooks through an API? I've searched around for a while but can't find a clue how people are getting this for their websites..
下面是亚马逊回购计划:amazon.com/buyback
Here is the Amazon BuyBack program: amazon.com/buyback
下面是一个例子回购网址:<一href=\"http://www.amazon.com/gp/search/s/ref=tradeinavs?url=rh%3Dn%3A2205237011%26i%3Dtextbooks-tradein&field-keywords=978-0321614018&Go.x=10&Go.y=17\" rel=\"nofollow\">http://www.amazon.com/gp/search/s/ref=tradeinavs?url=rh%3Dn%3A2205237011%26i%3Dtextbooks-tradein&field-keywords=978-0321614018&Go.x=10&Go.y=17
Here is an example buyback URL: http://www.amazon.com/gp/search/s/ref=tradeinavs?url=rh%3Dn%3A2205237011%26i%3Dtextbooks-tradein&field-keywords=978-0321614018&Go.x=10&Go.y=17
我知道,我可以只取页面和解析HTML,但如果有某种方式通过API或任何得到它,我敢肯定,亚马逊将preFER这只是解析页面(也将是更快的查询)。
I'm aware that I could just fetch the pages and parse the HTML, but if there is some way to get it through an API or whatever, I'm sure Amazon would prefer that to just parsing the page (also it would be faster to query).
推荐答案
借助商品广告API 有它在 ItemAttributes中
部分,当你做一个 ItemLookup
搜索,就表明了此示例调用(我相信这是perl的,但只是向你展示一个样品):
The Product Advertising API has it in the ItemAttributes
section when you do an ItemLookup
search, as shown by this sample call (I believe this is perl, but just to show you a sample):
my $request = {
Service => 'AWSECommerceService',
Operation => 'ItemLookup',
Version=>'2010-11-01',
ItemId => $itemId,
ResponseGroup => 'ItemAttributes',
};
snip
'ASIN' => '0136100570',
'ItemAttributes' => {
'NumberOfItems' => '1',
'IsEligibleForTradeIn' => '1',
'TradeInValue' => {
'Amount' => '3550',
'CurrencyCode' => 'USD',
'FormattedPrice' => '$35.50'
},
'ListPrice' => {
'Amount' => '18900',
'CurrencyCode' => 'USD',
'FormattedPrice' => '$189.00'
来源: https://forums.aws.amazon.com/message。 JSPA?MESSAGEID = 212679
这篇关于取亚马逊回购(QUOT;以旧换新&QUOT;)价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!