Amazon API - Instant Video results

前端 未结 2 1058
小蘑菇
小蘑菇 2021-01-31 13:13

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

2条回答
  •  独厮守ぢ
    2021-01-31 13:25

    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 . 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

提交回复
热议问题