如何仅从Amazon的Product Advertising API获得产品名称? [英] How do I get just the product name from Amazon's Product Advertising API?

查看:376
本文介绍了如何仅从Amazon的Product Advertising API获得产品名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我觉得这里一定缺少一个非常简单的东西,但是我似乎无法弄清楚如何从产品广告API中单独获得产品名称。

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.

从API中,我可以看到品牌(第一年)和颜色(城市时尚),但标题返回 Ignite婴儿推车第一年,城市时尚,没有其他明显的获取途径只是点燃小推车部分,甚至甚至是亚马逊在其页面上使用的标题(第一年点燃小推车)。

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").

我已经考虑剥离<来自标题的code>颜色和品牌到达那里,但它们在构造上并非总是如此可预测的。有些产品使用不同的分隔符,有些产品使用尺寸而不是颜色,等等。

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?

推荐答案

截至2018年12月19日,API不支持此功能。您可能会很幸运,标题也是产品名称,但是根本没有任何字段包含产品的简称。

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

这篇关于如何仅从Amazon的Product Advertising API获得产品名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆