我正在使用Amazon Web Services API在我的网站上搜索MP3下载。它有效,返回标题,艺术家,价格和各种其他统计数据,但结果中没有任何地方是专辑名称。在亚马逊的网站上,它列出了所有下载的专辑名称(example),因此名称显然存在于某处。
以下是我的参数(省略了签名和accesskey):
<Argument Name="Operation" Value="ItemSearch"/>
<Argument Name="Service" Value="AWSECommerceService"/>
<Argument Name="Count" Value="20"/>
<Argument Name="Version" Value="2010-11-01"/>
<Argument Name="Keywords" Value="u2 joshua tree"/>
<Argument Name="Timestamp" Value="2011-06-30T23:10:40Z"/>
<Argument Name="ResponseGroup" Value="ItemAttributes,Offers,Images"/>
<Argument Name="SearchIndex" Value="MP3Downloads"/>
我尝试将RelatedItems
添加到ResponseGroup,并将RelationshipType=AuthorityTitle
添加为另一个参数,但这给了我奇怪的结果,甚至U2都没有。 (如果你很好奇,API PDF版本2010-11-01的第143页)
这是其中一首歌的XML结果,对不起它的眼睛很难看。这首歌是在专辑“The Joshua Tree(Remastered)”中(参见上面的“例子”搜索),但没有在任何地方列出。
<Item>
<ASIN>B001NB6YKU</ASIN>
<DetailPageURL>
http://www.amazon.com/Running-To-Stand-Still/dp/B001NB6YKU%3FSubscriptionId%3DAKIAJELHRUWLOWHPHOAQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB001NB6YKU
</DetailPageURL>
<ItemLinks>
<ItemLink>
<Description>Technical Details</Description>
<URL>
http://www.amazon.com/Running-To-Stand-Still/dp/tech-data/B001NB6YKU%3FSubscriptionId%3DAKIAJELHRUWLOWHPHOAQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB001NB6YKU
</URL>
</ItemLink>
<ItemLink>
<Description>All Customer Reviews</Description>
<URL>
http://www.amazon.com/review/product/B001NB6YKU%3FSubscriptionId%3DAKIAJELHRUWLOWHPHOAQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB001NB6YKU
</URL>
</ItemLink>
<ItemLink>
<Description>All Offers</Description>
<URL>
http://www.amazon.com/gp/offer-listing/B001NB6YKU%3FSubscriptionId%3DAKIAJELHRUWLOWHPHOAQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB001NB6YKU
</URL>
</ItemLink>
</ItemLinks>
<SmallImage>
<URL>
http://ecx.images-amazon.com/images/I/41uvtenuwNL._SL75_.jpg
</URL>
<Height Units="pixels">69</Height>
<Width Units="pixels">75</Width>
</SmallImage>
<MediumImage>
<URL>
http://ecx.images-amazon.com/images/I/41uvtenuwNL._SL160_.jpg
</URL>
<Height Units="pixels">146</Height>
<Width Units="pixels">160</Width>
</MediumImage>
<LargeImage>
<URL>
http://ecx.images-amazon.com/images/I/41uvtenuwNL.jpg
</URL>
<Height Units="pixels">457</Height>
<Width Units="pixels">500</Width>
</LargeImage>
<ImageSets>
<MerchantId>A17SFUTIVB227Z</MerchantId>
<ImageSet Category="primary">
<SwatchImage>
<URL>
http://ecx.images-amazon.com/images/I/41uvtenuwNL._SL30_.jpg
</URL>
<Height Units="pixels">27</Height>
<Width Units="pixels">30</Width>
</SwatchImage>
<SmallImage>
<URL>
http://ecx.images-amazon.com/images/I/41uvtenuwNL._SL75_.jpg
</URL>
<Height Units="pixels">69</Height>
<Width Units="pixels">75</Width>
</SmallImage>
<ThumbnailImage>
<URL>
http://ecx.images-amazon.com/images/I/41uvtenuwNL._SL75_.jpg
</URL>
<Height Units="pixels">69</Height>
<Width Units="pixels">75</Width>
</ThumbnailImage>
<TinyImage>
<URL>
http://ecx.images-amazon.com/images/I/41uvtenuwNL._SL110_.jpg
</URL>
<Height Units="pixels">101</Height>
<Width Units="pixels">110</Width>
</TinyImage>
<MediumImage>
<URL>
http://ecx.images-amazon.com/images/I/41uvtenuwNL._SL160_.jpg
</URL>
<Height Units="pixels">146</Height>
<Width Units="pixels">160</Width>
</MediumImage>
<LargeImage>
<URL>
http://ecx.images-amazon.com/images/I/41uvtenuwNL.jpg
</URL>
<Height Units="pixels">457</Height>
<Width Units="pixels">500</Width>
</LargeImage>
</ImageSet>
</ImageSets>
<ItemAttributes>
<Binding>MP3 Download</Binding>
<Creator Role="Primary Contributor">U2</Creator>
<Genre>rock-music</Genre>
<Label>U2 /Island Catalog</Label>
<Manufacturer>U2 /Island Catalog</Manufacturer>
<ProductGroup>Digital Music Track</ProductGroup>
<ProductTypeName>DOWNLOADABLE_MUSIC_TRACK</ProductTypeName>
<PublicationDate>2007-11-20</PublicationDate>
<Publisher>U2 /Island Catalog</Publisher>
<ReleaseDate>2007-11-20</ReleaseDate>
<RunningTime Units="seconds">257</RunningTime>
<Studio>U2 /Island Catalog</Studio>
<Title>Running To Stand Still</Title>
<TrackSequence>5</TrackSequence>
</ItemAttributes>
<OfferSummary>
<LowestNewPrice>
<Amount>99</Amount>
<CurrencyCode>USD</CurrencyCode>
<FormattedPrice>$0.99</FormattedPrice>
</LowestNewPrice>
<TotalNew>1</TotalNew>
<TotalUsed>0</TotalUsed>
<TotalCollectible>0</TotalCollectible>
<TotalRefurbished>0</TotalRefurbished>
</OfferSummary>
<Offers>
<TotalOffers>0</TotalOffers>
<TotalOfferPages>0</TotalOfferPages>
</Offers>
</Item>