如何通过亚马逊的 MWS API 获取产品信息?
我正在尝试自动添加和管理我们在亚马逊上的产品。查看 MWS API 的 API 文档,似乎没有办法确定产品是否已被其他卖家添加到亚马逊,如果是,其属性是什么。
我们正在为我们销售的所有产品构建一个新的产品数据库,并有一个专门用于亚马逊属性数据字段(ASIN 等)的表。如果产品信息已经在亚马逊上,我们希望通过 API 提取该数据并将其存储到我们自己的数据库中。
如果您尝试通过 CSV 添加产品,并且该产品已存在于亚马逊上(并且您的属性有任何不同(“m”!=“medium”),您将收到错误消息。在这种情况下,您可以直接使用 希望不再上传 CSV 文件,并且拥有我们自己的亚马逊属性产品表。
现有的产品信息,只需上传包含特定 ASIN/SKU/UPC 的价格和数量的 CSV我们 还利用亚马逊的产品广告API 来确定这一点还是可以通过 MWS 来完成?
Amazon 的 API 文档并不十分出色,而且我们正在
使用 Ruby 进行整理。
I'm trying to automate the addition to and management of our products on Amazon. Looking at the API documentation for the MWS API it doesn't look like there's a way to determine if a product has already been added to Amazon by another seller and if so what its attributes are.
We are building a new product database for all the products we sell and have a table specifically for Amazon attribute data fields (ASIN, etc.). If Product information is already on Amazon, we'd like to pull that data via API and store it to our own database as well.
If you attempt to add a product via CSV and that product already exists on Amazon (and your attributes are in any way different ("m" != "medium") you'll receive and error. In that case you can just piggy back that existing product information and just upload a CSV with your price and quantity for a particular ASIN/SKU/UPC. We'd like to do away with uploading CSV files and again, have our own product table for Amazon attributes.
Will I need to also leverage Amazon's Product Advertising API to determine this or can it be done via MWS?
The documentation for Amazon's APIs aren't exactly fantastic and it's been slow going trying to sort through it all.
We're working with Ruby.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
亚马逊的商家网络服务 API 仅限于您的商家帐户。所以你的问题的答案是,是的,你需要使用亚马逊的产品广告 API 来获取尚未列出的产品信息。
话虽这么说,您应该意识到,对产品广告 API 施加了新的限制,将您每天可以进行的调用数量限制为 2,000 个。除此之外,您还必须获得一个与您的帐户绑定的关联 ID,并且需要随任何请求一起发送。
此外,我发现使用产品广告 API 收集的信息有时与网站不同步,并且不得不从网站本身抓取信息。这会产生更多开销,但您可以放心数据是最新的。当然,这仅在您已经拥有 ASIN 或严格处理书籍(使用 ISBN 作为 ASIN)或音乐 CD(我相信使用 UPC 作为 ASIN)时才有用。
Amazon's Merchant Web Services API is limited to your Merchant account. So the answer to your question is that yes you will need to use Amazon's Product Advertising API to get information about products that aren't already listed.
That being said you should be aware that there are new restrictions being placed on the Product Advertising API that will limit the number of calls that you can make on a daily basis to 2,000. In addition to this you will have to get an Associate ID that will be tied to your account and needs to be sent with any request.
Also, I find that the information collected using the Product Advertising API is sometimes out of sync with the site and have resorted to scraping the info from the site itself. This has more overhead but you can be assured that the data is current. Of course this is only useful if you already have an ASIN or are dealing strictly with books (which use the ISBN as an ASIN) or Music CDs (which I believe use the UPC as an ASIN).
您可以在 MWS 产品 API 中找到此功能。具体来说是 GetMatchingProductForId 操作。
http://docs.developer.amazonservices.com/en_US/products/Products_GetMatchingProductForId.html
(这个 API 在最初提出问题时可能不可用)
The MWS Products API is where you will find this functionality. Specifically the GetMatchingProductForId operation.
http://docs.developer.amazonservices.com/en_US/products/Products_GetMatchingProductForId.html
(This API probably wasn't available at the time of the original question)