How do I get just the product name from Amazon's Product Advertising API?

你说的曾经没有我的故事 提交于 2019-12-22 07:04:24

问题


So I feel like I must be missing something incredibly simple here, but I can't seem to figure out how to get a product's name alone from the Product Advertising API.

For instance, if I go to look at this product, I see that the product is listed as "The First Years Ignite Stroller", and the "City Chic" color is selected.

From the API, I can see Brand ("The First Years") and Color ("City Chic"), but Title returns "The First Years Ignite Stroller, City Chic", with no other apparent ways to get at just the "Ignite Stroller" part, or even the title Amazon uses on their page ("The First Years Ignite Stroller").

I've considered stripping off the Color and Brand from Title to get there, but they're not always so predictable in their construction. Some products have different separators, others have size variants instead of colors, etc.

Am I missing something obvious here?


回答1:


As of Dec-19, 2018, this is not supported in the API. You may get lucky that the title is also the product name, but there simply isn't any field that contains the 'short name' for the product.

I imagine Amazon want you to use their titles and not make up your own.

https://docs.aws.amazon.com/AWSECommerceService/latest/DG/RG_ItemAttributes.html



来源:https://stackoverflow.com/questions/9435609/how-do-i-get-just-the-product-name-from-amazons-product-advertising-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!