'SearchIndex=“全部”'不适用于亚马逊产品 API

发布于 2024-08-04 23:01:28 字数 106 浏览 5 评论 0原文

我在亚马逊产品 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 技术交流群。

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

发布评论

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

评论(4

撩人痒 2024-08-11 23:01:28

由于没有可供查看的代码片段,因此我可能会偏离基础,但请确保您在请求中使用 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

夏有森光若流苏 2024-08-11 23:01:28

由于亚马逊上列出的商品数量众多,因此存在一定的限制。因此,他们所做的就是强迫您使用“SearchIndex”。这不是一个很好的名字,但它意味着该部门与亚马逊主页上列出的部门类似。这些部门包括图书、电子等。

这里摘录自 API 开发指南 2010-11-01 版第 103 页。请务必使用与 API 调用相同版本的开发指南,因为版本之间的功能会发生变化。您可以下载开发指南:
http://www.onlineinvestingai .com/publicFiles/Amazon-Product-Advertising-API-Dev-Guide-2010-11-01.pdf

我将其上传到上面的链接,因为在亚马逊开发网站上几乎不可能找到它。

跨索引搜索

ItemSearch 请求要求您指定搜索索引。这是因为在亚马逊数据库中搜索数百万种产品将花费太长时间。但是,产品广告 API 确实允许您使用全部或混合搜索索引跨多个搜索索引进行搜索。

所有搜索索引

您可以使用全部
搜索索引以对所有搜索索引进行 ItemSearch 搜索。但是,此请求有许多限制:
您可以在请求中使用的唯一参数是关键字,并且您不能对结果进行排序等。

<块引用>

注意:您不能在 ItemLookup 请求中使用 All 搜索索引。

亚马逊产品广告 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.

Searching Across Indices

ItemSearch requests require that you specify a search index. This is because searching across the millions of products in Amazon databases would take too long. Product Advertising API does, however, enable you to search across multiple search indices using the All or Blended search indices.

All Search Index

You can use the All
search index to do an ItemSearch search through all search indices. There are, however, a number of restrictions placed on this request:
the only parameter that you can use in the request is Keywords, and you cannot, for example, sort results.

Note: You cannot use the All search index in an ItemLookup request.

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

分开我的手 2024-08-11 23:01:28

看看我的朋友,您在搜索(全部)中所需要做的就是仅使用关键字,不要在请求中分配任何其他参数,您将得到结果,但只有 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 .

月棠 2024-08-11 23:01:28

这是一个老问题,但今天使用产品广告 API,我除了死胡同和试图寻找答案的挫败感之外什么也没找到。希望这能帮助很多通过签名并需要开始搜索的人。

那里列出的许多 c# 示例都使用以下内容:

ItemSearchRequest request = new ItemSearchRequest();
request.SearchIndex = "Books";
request.Title = "WCF";
request.ResponseGroup = new string[] { "Small" };

问题是该示例使用“Title”进行搜索,但我也没有得到任何结果。使用“关键字”,您将看到返回的结果,搜索索引设置为“全部”,

ItemSearchRequest request = new ItemSearchRequest();
request.SearchIndex = "All";
request.Keywords = "WCF";
request.ResponseGroup = new string[] { "Small" };

这应该可以解决您的问题。

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:

ItemSearchRequest request = new ItemSearchRequest();
request.SearchIndex = "Books";
request.Title = "WCF";
request.ResponseGroup = new string[] { "Small" };

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"

ItemSearchRequest request = new ItemSearchRequest();
request.SearchIndex = "All";
request.Keywords = "WCF";
request.ResponseGroup = new string[] { "Small" };

This should resolve your issue.

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