简体   繁体   English

使用Amazon Product Advertising API按规格查找产品

[英]Find products by specifications with Amazon Product Advertising API

I am trying to find smartphones with the amazon product advertising api. 我正在尝试使用亚马逊产品广告api查找智能手机。 http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl

On the amazon website you can set various filters like "storage" "features keywords". 在亚马逊网站上,您可以设置各种过滤器,例如“存储”,“功能关键字”。 http://www.amazon.com/s/ref=sr_nr_n_1?rh=n%3A2335752011%2Cn%3A!2335753011%2Cn%3A2407749011&bbn=2335753011&ie=UTF8&qid=1361393129&rnid=2335753011 http://www.amazon.com/s/ref=sr_nr_n_1?rh=n%3A2335752011%2Cn%3A!2335753011%2Cn%3A2407749011&bbn=2335753011&ie=UTF8&qid=1361393129&rnid=2335753011

For example I want to find smartphones from Samsung with Android OS that are cheaper than 250 USD with at least 32 GB storage. 例如,我想找到三星的智能手机,其Android OS至少要便宜250美元,并且至少要有32 GB的存储空间。

        ItemSearchRequest request = new ItemSearchRequest();            
        request.SearchIndex = "Electronics";
        //this browsenode is for amazon.de (cell phones)
        request.BrowseNode = "1384526031";
        request.MaximumPrice = "250";
        // ? request.Storage = 32 
        // ? request.OperatingSystem = "Android"            
        request.ResponseGroup = new string[] { "Large" };

        ItemSearch itemSearch = new ItemSearch();
        itemSearch.AssociateTag = "xxx";
        itemSearch.Request = new ItemSearchRequest[] { request };
        itemSearch.AWSAccessKeyId = ConfigurationManager.AppSettings["accessKeyId"];

        ItemSearchResponse response = amazonClient.ItemSearch(itemSearch);

        foreach (var item in response.Items[0].Item)
        {
            Console.WriteLine(item.ItemAttributes.Title);
        }

My problem is that the ItemSearchRequst class doesn't have properties like "storage" or "features" or "operating system". 我的问题是ItemSearchRequst类没有诸如“存储”或“功能”或“操作系统”之类的属性。

I have been finding this information for more than a week but there is indeed no documentation for this feature. 我已经找到此信息一个多星期了,但实际上没有此功能的文档。 I believe Amazon wants to keep this, together with product technical detail and product reviews for itself. 我相信亚马逊希望将其与产品技术细节和产品评论一起保留下来。 However you can filter some of these keywords (such as operating system), but not all, from itemsearch with responsegroup('Large') 但是,您可以使用带有responsegroup('Large') itemsearch过滤掉其中一些关键字(例如操作系统),但不是全部

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM