即时视频结果

发布于 2024-12-13 15:39:15 字数 682 浏览 1 评论 0原文

我正在查询亚马逊的产品广告 API 以获取即时视频(流媒体)结果。一切工作正常 - 除了缺少一些信息:

  1. 结果中不包含描述。例如,在亚马逊网站上,电影“Food, Inc”(http://www.amazon.com/Food-Inc/dp/B002VRZEYM)的描述是“美国企业控制食品内部的不讨人喜欢的外观” 行业。”。但是,当通过 API 查询时,根本不会返回任何描述。

  2. 电视节目的标题不包含在结果中。例如,如果您在亚马逊网站 (http://www.amazon.com/gp/product/B000N2VRJ8),您将获取电视节目的全名、季号、剧集编号和剧集名称。但是,当通过 API 查询时,仅返回剧集名称。

有谁知道这些问题的解决方案?仅供参考,我用于搜索的 nodeId 是 2858778011。

I am querying Amazon's Product Advertising API for Instant Video (streaming) results. Everything is working fine -- except that there is some missing information:

  1. Descriptions are not included in results. For example, on Amazon's website the movie "Food, Inc" (http://www.amazon.com/Food-Inc/dp/B002VRZEYM) has the description "An unflattering look inside America's corporate controlled food industry.". When queried via the API, however, no description is returned at all.

  2. Titles of TV shows are not included in results. For example, if you search for the 2nd episode of season 1 of Arrested Development (called "Top Banana") on Amazon's website (http://www.amazon.com/gp/product/B000N2VRJ8), you will get the full name of the TV show, season #, episode #, and episode name. When queried by the API, however, only the episode name is returned.

Does anyone know of a solution to these problems? FYI, the nodeId I am using for my search is 2858778011.

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

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

发布评论

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

评论(2

回忆凄美了谁 2024-12-20 15:39:15

为了获取更多详细信息,您需要在请求中设置 ResponseGroup 参数。请参阅 ItemLookup 文档的 ResponseGroup 部分查看您可以使用的不同响应组。

例如,将 ResponseGroup 参数设置为 LargeMediumSmall 甚至 ItemAttributes > 会给你描述:

美国企业控制的食品行业内部的不讨人喜欢的视角。

对于 Food, Inc (B002VRZEYM) 和标题

顶级香蕉

发展受阻第一季第 2 集的

In order to get more details, you'll need to set the ResponseGroup parameter in your request. See the ResponseGroup section of the ItemLookup documentation to see the different Response Groups that you can use.

For example, setting the ResponseGroup parameter to Large or Medium or Small or even ItemAttributes will give you the description:

An unflattering look inside America's corporate controlled food industry.

for Food, Inc (B002VRZEYM) and the Title:

Top Banana

for Arrested Development season 1 episode 2 (B000N2VRJ8).

少女的英雄梦 2024-12-20 15:39:15

我在尝试查询 Amazon API 以获取 Prime 即时视频内容时遇到了同样的问题。虽然这个问题有点老了,但可能有些像我这样的人对详细答案感兴趣,尤其是第二部分(2.)。

  1. 就像乔纳森·斯普纳(Jonathan Spooner)已经说过的那样,你必须设置一个响应组
    返回您感兴趣的数据。官方文档:响应组 - 产品广告API
    对于您的情况,我认为 ResponseGroup Small 应该可以。

  2. 如果您想获取包含某一集的电视节目的标题,您还必须在请求中设置响应组 RelatedItems(您可以在一个中设置多个响应组)要求)。您还必须命名一个 RelationshipType,否则请求将失败。对于剧集-季节 - 关系,您选择剧集

    使用 RelatedItems,结果将包含名为 的节点。您会在那里找到季项,其标题应类似于“发展受阻 - 第 1 季 [HD]”。

注意:如果您确实只想要电视节目标题,您可以解析它的季节名称或者您可以使用季节 ASIN 进行另一个 ItemLookup:设置响应组再次使用 RelatedItems,但这次使用 RelationshipType=Season。这将返回季节 - 电视剧 - 关系。相关项目通常包含电视节目。 (但标题无论如何都可以有一个像 [HD] 这样的后缀)

这里有一个包含所有关系类型的列表:关系类型 - 产品广告 API

I had the same problem, while trying to query the Amazon API for Prime Instant Video content. Although this question is kinda old, there are probably some people like me who are interested in a detailed answer, especially for the second part (2.).

  1. Like Jonathan Spooner already said, you have to set a response group
    that returns the data you're interested in. Official documentation: Response Groups - Product Advertising API.
    In your case, I think, the ResponseGroup Small should do.

  2. If you want to get the title of a TV show, which contains a certain episode, you have to set the response group RelatedItems in your request, too (you can set multiple response groups in one request). You will also have to name a RelationshipType, otherwise the request will fail. For Episode -- Season - Relationships you choose Episode.

    With RelatedItems, the result will contain a node named <RelatedItems>. You will find the season item in there, which's title should be something like " Arrested Development - Season 1 [HD]".

Note: If you really just want the TV show title, you could either parse the season name for it or you could make another ItemLookup with the seasons ASIN: set the response group RelatedItems again, but this time with RelationshipType=Season. This will return Season - TV Series - Relationships. The related item will contain the TV Show in general. (But the title could have a suffix like [HD] anyway)

Here you have a list with all relationship types: Relationship Types - Product Advertising API

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