获取亚马逊回购(“以旧换新")价格 [英] Fetching Amazon buyback ("trade-in") price

查看:25
本文介绍了获取亚马逊回购(“以旧换新")价格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过 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

这是一个示例回购 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

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 或其他方式获取它,我相信亚马逊会更喜欢只解析页面(还有它查询会更快).

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 当您执行 ItemLookup 搜索时,它在 ItemAttributes 部分中,如此示例调用所示(我相信这是 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

这篇关于获取亚马逊回购(“以旧换新")价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆