亚马逊产品广告 API - 获得评论排名 [英] Amazon Product Advertising API - get review-rank

查看:41
本文介绍了亚马逊产品广告 API - 获得评论排名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用亚马逊 API 似乎不再可能获得产品的评论等级信息.检查 此链接 注释说:

Using the Amazon API it seems that it's not possible anymore to get the review rank information of a product. Checking this link the note says:

截至 2010 年 11 月 8 日,请求中仅返回 iframe 网址内容.

As of November 8, 2010, only the iframe URL is returned in the request content.

但是,使用他们建议的参数进行测试以获取 Iframe,但现在似乎 Iframe 也不再起作用了.因此,即使在激励客户购买"一章的最新 API 参考中,也完全没有评论"部分.

However, testing with the params they suggest to get the Iframe, but it seems that now even the Iframe doesn't work anymore. Thus, even in the latest API Reference in the chapter "Motivating Customers to Buy" the part "reviews" is completely missing.

但是:因为我也很感兴趣,如果仍然可以以某种方式获得评论排名信息 - 甚至可能不使用亚马逊 API 而是使用竞争对手的 API 来获取评论排名信息 - 我希望有人可以提供一些有用的信息主题.

However: Since I'm also very interested if it's still possible somehow to get the review rank information - maybe even not using the Amazon API but a competitor's API to get review rank information - I hope someone can provide something helpful on this topic.

推荐答案

序言:我不确定我是否完全理解您在此处寻找的内容,但无论如何我都会分享我的发现.

Preamble: I'm not sure that I understand exactly what you are looking for here but I'll share my findings anyways.

我能够检索评论的 iframe URL,并且能够在将评论 iframe 嵌入到 .html 页面后看到它.我使用以下属性来检索 iframe URL:

I was able to retrieve the iframe URL for the reviews and was able to see the reviews iframe after embedding it into an .html page. I used the following attributes to retrieve the iframe URL:

Operation=ItemLookup&
ItemId=1451648537&
ResponseGroup=Reviews&
TruncateReviewsAt="256"&
IncludeReviewsSummary="False"&
Version=2011-08-01                 <= important: can't be less than this version
AssociateTag=<YourAssociateTag>    <= required when using this version, can be anything (not verified by Amazon)

响应的相关部分:

<Item>
    <ASIN>1451648537</ASIN>
    <CustomerReviews>
        <IFrameURL>http://www.amazon.com/reviews/iframe?akid=<YourAmazonKey>&amp;alinkCode=xm2&amp;asin=1451648537&amp;atag=<YourAssociateTag>&amp;exp=2012-01-06T02%3A10%3A38Z&amp;summary=0&amp;truncate=256&amp;v=2&amp;sig=kjWPue1N75%2FiI1hW67XYApWxnKeT2tlT%2FJ1rw4WLlUo%3D</IFrameURL>
        <HasReviews>true</HasReviews>
    </CustomerReviews>
</Item>

请注意,您将无法使用此 iframe URL,因为 (1) 我已删除我的亚马逊密钥和用于创建签名的关联标签,并且 (2) 它已过期通话后 24 小时.

如果您使用我使用过的相同属性,密切注意 VersionAssociateTag 字段,您将获得包含 iframe URL 的结果.

If you use the same attributes that I've used, paying close attention to the Version and AssociateTag fields, you will get a result with an iframe URL included.

然后我将 url 嵌入到 iframe 中:

I then embedded the url in an iframe:

<html>
    <body>
        <iframe src="http://www.amazon.com/reviews/iframe?akid=<YourAmazonKey>&amp;alinkCode=xm2&amp;asin=1451648537&amp;atag=<YourAssociateTag>&amp;exp=2012-01-06T02%3A10%3A38Z&amp;summary=0&amp;truncate=256&amp;v=2&amp;sig=kjWPue1N75%2FiI1hW67XYApWxnKeT2tlT%2FJ1rw4WLlUo%3D"/>
    </body>
</html>

如下所示:

正如我在序言中所说,我不确定这是否是您正在寻找的,因为赏金的要求是​​:

As I said in the preamble, I'm unsure if this is what you are looking for since the requirements for the bounty was:

...获取亚马逊评论排名信息

...to get access to amazons reviewrank informations

这不完全是评论排名信息,而是实际评论,我认为评论排名信息的含义更符合数据本身(例如 100 条评论 @ 4 星等).但是,在您的问题中,您指出 iframe 不起作用:

This isn't exactly the review rank information but the actual reviews and I take the meaning of review rank info to be more along the lines of the data itself (such as 100 reviews @ 4 stars etc.). However, in your question you stated that the iframe did not work:

然而,使用他们建议的参数进行测试以获得 Iframe,但现在似乎 Iframe 也不再工作了.

However, testing with the params they suggest to get the Iframe, but it seems that now even the Iframe doesn't work anymore.

所以我认为我至少会为您提供获取和使用 iframe 的正确方法.

So I thought that I would at least provide you with the proper method of getting and using the iframe.

这篇关于亚马逊产品广告 API - 获得评论排名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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