如何在亚马逊商品广告 API 中获得评论排名?

发布于 2024-12-23 12:57:17 字数 439 浏览 1 评论 0原文

使用亚马逊 API 似乎无法再获取产品的评论排名信息。检查此链接,注释显示:

自 2010 年 11 月 8 日起,请求中仅返回 iframe URL 内容。

然而,使用他们建议获取 Iframe 的参数进行测试,但现在似乎连 Iframe 都不再工作了。因此,即使在最新的 API 参考中的“激励客户购买”一章中,“评论”部分也完全缺失。

但是:由于我也非常感兴趣是否仍然可以以某种方式获取评论排名信息 - 甚至可能不使用亚马逊 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:

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

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.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

乱了心跳 2024-12-30 12:57:17

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

我能够检索评论的 iframe URL,并且能够在将评论嵌入到 .html 页面后看到评论 iframe。我使用以下属性来检索 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>&alinkCode=xm2&asin=1451648537&atag=<YourAssociateTag>&exp=2012-01-06T02%3A10%3A38Z&summary=0&truncate=256&v=2&sig=kjWPue1N75%2FiI1hW67XYApWxnKeT2tlT%2FJ1rw4WLlUo%3D</IFrameURL>
        <HasReviews>true</HasReviews>
    </CustomerReviews>
</Item>

请注意,您将无法使用此 iframe URL,因为 (1) 我已删除了我的 Amazon Key 和关联用于创建签名的标签,并且 (2) 它在调用后 24 小时后过期。

如果您使用与我使用的属性相同的属性,请密切关注 VersionAssociateTag字段,您将获得包含 iframe URL 的结果。

然后,我将 url 嵌入到 iframe 中:

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

如下所示:

Amazon Review IFrame

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

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

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

但是,使用他们建议的参数进行测试以获得 Iframe,但似乎现在连 Iframe 都不再工作了。

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

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

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)

The relevant part of the response:

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

Note that you will not be able to use this iframe URL due to the fact that (1) I've removed my Amazon Key and the Associate Tag that was used to create the signature and (2) it expires 24 hours after the call.

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.

I then embedded the url in an iframe:

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

Which looked like the following:

Amazon Review IFrame

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

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:

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

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

丑丑阿 2024-12-30 12:57:17

我知道你说过你不想屏幕抓取,但由于这是唯一可用的解决方案,我已经使用屏幕抓取解决方案一段时间了,它还没有给我带来问题,尽管我同意它很脆弱。如果我的屏幕抓取代码没有达到预期效果,它会记录一个错误,以便我调整代码,并且它会优雅地降级,仅显示一个链接以在 iFrame 中打开评论信息。该错误尚未触发,该解决方案对我们来说非常有效。

I know you said you don't want to screen scrape, but as that is the only solution available, I have been using the screen scraping solution for some time and it has not caused me a problem yet, although I agree it is fragile. If my screen scraping code does not get what it expects, it will log an error for me to adjust the code, and it will degrade gracefully to just display a link to open the review information in an iFrame. This error has yet to trigger and the solution has worked great for us.

四叶草在未来唯美盛开 2024-12-30 12:57:17

亚马逊已完全取消对从其 API 访问评级/评论信息的支持。文档提到了客户评级形式的响应元素,但这也不起作用。

使用观点进行 Google 购物以获取某些评论。我遇到了一个很好的此文章

Amazon has completely removed support for accessing rating/review information from their API. The docs mention a Response Element in the form of customer rating, but that doesn't work either.

Google shopping using Viewpoints for some reviews. I came across a good article for this

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文