'SearchIndex=“全部”'不适用于亚马逊产品 API
我在亚马逊产品 API 中使用 SearchIndex="All" 但没有得到任何结果。当我指定类别时,我确实得到了结果。
有谁知道这个搜索索引是否有任何限制?
谢谢
I am using SearchIndex="All" in the Amazon Product API and getting no results. When I specify the category, I do get results.
Does anyone know if there are any restrictions on this search index or ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
由于没有可供查看的代码片段,因此我可能会偏离基础,但请确保您在请求中使用
Operation=ItemSearch
。如果您下载了开发人员指南 PDF,从第 253 页开始就有大量重要信息,其中包括限制以及必要的包含内容和示例。
干杯
Since there's no code snippet to look at, I may be off-base here, but make sure you are using
Operation=ItemSearch
in your request.If you have the Developer's Guide PDF downloaded, there's a lot of great information starting on page 253 which includes restrictions and necessary inclusions and examples.
Cheers
由于亚马逊上列出的商品数量众多,因此存在一定的限制。因此,他们所做的就是强迫您使用“SearchIndex”。这不是一个很好的名字,但它意味着该部门与亚马逊主页上列出的部门类似。这些部门包括图书、电子等。
这里摘录自 API 开发指南 2010-11-01 版第 103 页。请务必使用与 API 调用相同版本的开发指南,因为版本之间的功能会发生变化。您可以下载开发指南:
http://www.onlineinvestingai .com/publicFiles/Amazon-Product-Advertising-API-Dev-Guide-2010-11-01.pdf 。
我将其上传到上面的链接,因为在亚马逊开发网站上几乎不可能找到它。
亚马逊产品广告 API 实际上相当容易使用。困难的部分是在亚马逊网站上查找文档。
希望有帮助。该文档很长,一开始很难理解,但在尝试不同的搜索并查看结果后,它就起作用了。
这里还有两个可能有用的文档(针对同一版本的 API):
入门指南:
http://www .onlineinvestingai.com/publicFiles/Amazon-Product-Advertising-API-Getting-Started-Guide-2010-11-01.pdf
快速参考卡:
http://www .onlineinvestingai.com/publicFiles/Amazon-Product-Advertising-API-Quick-Reference-Card-2010-11-01.pdf
There are certain limitations due to the large number of items listed at Amazon. So, what they do is force you to use a "SearchIndex". It's not a very good name, but it means the department similar to those listed on the Amazon homepage. These departments include Books, Electronics, etc.
Here is excerpt from page 103 of the API Dev Guide version 2010-11-01. Be sure to use the same version of the Dev Guide as your API call because the functionality changes between versions. You can download the Dev Guide:
http://www.onlineinvestingai.com/publicFiles/Amazon-Product-Advertising-API-Dev-Guide-2010-11-01.pdf .
I uploaded it to the above link because it is nearly impossible to find on the Amazon Dev site.
The Amazon Product Advertising API is actually fairly easy to use. The hard part is finding the documentation on the Amazon site.
Hope that helps. The document is long and difficult to understand at first, but after you try different searches and see the results it works.
Here are two more documents (for the same version of the API) that may be helpful:
Getting Started Guide:
http://www.onlineinvestingai.com/publicFiles/Amazon-Product-Advertising-API-Getting-Started-Guide-2010-11-01.pdf
Quick Reference Card:
http://www.onlineinvestingai.com/publicFiles/Amazon-Product-Advertising-API-Quick-Reference-Card-2010-11-01.pdf
看看我的朋友,您在搜索(全部)中所需要做的就是仅使用关键字,不要在请求中分配任何其他参数,您将得到结果,但只有 50 个结果,因为亚马逊会强制您识别类别。
look my friend all you need to do in searching (All) is using just keyword don't assign any other parameters in the request and you will have results but only 50 result because amazon will inforce you to identify category .
这是一个老问题,但今天使用产品广告 API,我除了死胡同和试图寻找答案的挫败感之外什么也没找到。希望这能帮助很多通过签名并需要开始搜索的人。
那里列出的许多 c# 示例都使用以下内容:
问题是该示例使用“Title”进行搜索,但我也没有得到任何结果。使用“关键字”,您将看到返回的结果,搜索索引设置为“全部”,
这应该可以解决您的问题。
This is an old question, but working with the Product Advertising API today, I have found nothing but dead ends and frustration trying to find answers. Hoping this will help a lot of folks that get pass the signing and need to start searching.
A lot of the c# examples that are listed out there use the following:
The problem is the that the example is using "Title" to search on and I am not getting any results with this either. Use "Keywords" and you will see results come back with the SearchIndex set to "All"
This should resolve your issue.