Get the product category with Amazon Product Advertising API

廉价感情. 提交于 2019-12-13 04:43:36

问题


With the Amazon Product Advertising API, I am able to retrieve the products list with ISBN, ASIN, and UPC. I have all the information like Title, Image, Best Sellers Rank etc. Now I want to retrieve the product category. In the response, I'm getting the following Product attributes

<ItemAttributes>
            <Binding>Office Product</Binding>
            <Brand>3M</Brand>
            <CatalogNumberList>
                <CatalogNumberListElement>MMMTP5851100</CatalogNumberListElement>
            </CatalogNumberList>
            <Color>NA</Color>
            <EAN>0778853213952</EAN>
            <EANList>
                <EANListElement>0778853213952</EANListElement>
                <EANListElement>0823019692079</EANListElement>
                <EANListElement>0800011321299</EANListElement>
                <EANListElement>0804993541201</EANListElement>
                <EANListElement>0801593278209</EANListElement>
                <EANListElement>0051141366623</EANListElement>
                <EANListElement>0809302061470</EANListElement>
                <EANListElement>0638084746578</EANListElement>
                <EANListElement>0739197517144</EANListElement>
            </EANList>
            <Feature>Tough, moisture resistant polyester film.</Feature>
            <Feature>Preserve and protect keepsake photos and documents.</Feature>
            <Feature>Keep frequently used documents neat and legible.</Feature>
            <ItemDimensions>
                <Height Units="hundredths-inches">438</Height>
                <Length Units="hundredths-inches">263</Length>
                <Weight Units="Hundredths Pounds">41</Weight>
                <Width Units="hundredths-inches">125</Width>
            </ItemDimensions>
            <Label>3M Office Products</Label>
            <ListPrice>
                <Amount>1012</Amount>
                <CurrencyCode>USD</CurrencyCode>
                <FormattedPrice>$10.12</FormattedPrice>
            </ListPrice>
            <Manufacturer>3M Office Products</Manufacturer>
            <Model>TP5851100</Model>
            <MPN>TP5851-100</MPN>
            <NumberOfItems>1</NumberOfItems>
            <PackageDimensions>
                <Height Units="hundredths-inches">120</Height>
                <Length Units="hundredths-inches">520</Length>
                <Weight Units="Hundredths Pounds">10</Weight>
                <Width Units="hundredths-inches">270</Width>
            </PackageDimensions>
            <PackageQuantity>1</PackageQuantity>
            <PartNumber>TP5851-100</PartNumber>
            <ProductGroup>Office Product</ProductGroup>
            <ProductTypeName>OFFICE_PRODUCTS</ProductTypeName>
            <PublicationDate>2014-03-14</PublicationDate>
            <Publisher>3M Office Products</Publisher>
            <Size>100-Pouches</Size>
            <Studio>3M Office Products</Studio>
            <Title>Scotch Thermal Laminating Pouches, 2.32 x 3.70-Inches, Business Card Size, 100-Pack (TP5851-100)</Title>
            <UPC>638084746578</UPC>
            <UPCList>
                <UPCListElement>638084746578</UPCListElement>
                <UPCListElement>739197517144</UPCListElement>
                <UPCListElement>801593278209</UPCListElement>
                <UPCListElement>051141366623</UPCListElement>
                <UPCListElement>778853213952</UPCListElement>
                <UPCListElement>800011321299</UPCListElement>
                <UPCListElement>809302061470</UPCListElement>
                <UPCListElement>804993541201</UPCListElement>
                <UPCListElement>823019692079</UPCListElement>
            </UPCList>
        </ItemAttributes>

I want the exact category of the product because I want to calculate the Amazon Referral Fee and Variable Closing Fee based on the information at https://sellercentral.amazon.com/gp/help/external/200336920?language=en_US&ref=efph_200336920_cont_19211

and for that, I need the exact category. Based on each category Seller has to pay a percentage of the price to Amazon as Amazon referral fee. So is there any way that I can retrieve the exact category?

Edit: I have tried with browse nodes in response. It gives me the category nodes. There is also an isRootCategory response value which tells either the category is root or not. e.g for a cloth item it gives me root category of Clothing, Shoes and Jewellary. But to calculate the refferal fee, that product must have a root category of 'Clothing & Accessories'. So that refferal fee of 17% can be calculated based on the item price.

来源:https://stackoverflow.com/questions/50657366/get-the-product-category-with-amazon-product-advertising-api

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