Amazon Marketplace Web Service (MWS) will no longer be available after March 31, 2024. All MWS developers must migrate to Selling Partner API (SP-API) to avoid service disruptions. Refer to the Migration Hub for more information.
Returns the parent product categories that a product belongs to, based on SellerSKU.
The GetProductCategoriesForSKU operation returns the product category name and identifier that a product belongs to, including parent categories back to the root for the marketplace.
This operation is available in all marketplaces.
Maximum request quota | Restore rate | Hourly request quota |
---|---|---|
20 requests | One request every five seconds | 720 requests per hour |
For more information about the request parameters that are required for all Amazon MWS operations, see Required request parameters in the Amazon MWS Developer Guide.
Name | Description | Required | Valid values |
---|---|---|---|
MarketplaceId | A marketplace identifier. Specifies the marketplace from
which category structures are returned. Type: xs:string |
Yes | For a list of MarketplaceId values, see Amazon MWS endpoints and MarketplaceId values in the Amazon MWS Developer Guide. |
SellerSKU | Used to identify products in the given marketplace.
SellerSKU is qualified by your
SellerId, which is included with every
Amazon Marketplace Web Service (Amazon MWS) operation that you
submit. Type: xs:string |
Yes |
Name | Description |
---|---|
Self | Contains the ProductCategoryId for the product that you submitted. Also contains a ProductCategoryId for each of the parent categories of the product, up to the root for the Marketplace. |
ProductCategoryId | Identifier for a product category (or browse node). |
ProductCategoryName | Name of a product category (or browse node). |
For information about standard request requirements, see Required request parameters.
POST /Products/2011-10-01 HTTP/1.1 Content-Type: x-www-form-urlencoded Host: mws.amazonservices.com User-Agent: <Your User Agent Header> AWSAccessKeyId=AKIAEXAMPLEFWR4TJ7ZQ &Action=GetProductCategoriesForSKU &MWSAuthToken=amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE &MarketplaceId=ATVPDKIKX0DER &SellerId=A1IMEXAMPLEWRC &SellerSKU=SKU2468 &SignatureMethod=HmacSHA256 &SignatureVersion=2 &Timestamp=2012-12-04T22%3A48%3A25Z &Version=2011-10-01 &Signature=nLBMEXAMPLE6ASMKD1YTcNk7E8vW6Qzha8cEXAMPLEY%3D
For information about standard response formatting, see Response format.
<?xml version="1.0"?> <GetProductCategoriesForSKUResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01"> <GetProductCategoriesForSKUResult> <Self> <ProductCategoryId>271578011</ProductCategoryId> <ProductCategoryName>Project Management</ProductCategoryName> <Parent> <ProductCategoryId>2675</ProductCategoryId> <ProductCategoryName>Management & Leadership</ProductCategoryName> <Parent> <ProductCategoryId>3</ProductCategoryId> <ProductCategoryName>Business & Investing</ProductCategoryName> <Parent> <ProductCategoryId>1000</ProductCategoryId> <ProductCategoryName>Subjects</ProductCategoryName> <Parent> <ProductCategoryId>283155</ProductCategoryId> <ProductCategoryName>Subjects</ProductCategoryName> </Parent> </Parent> </Parent> </Parent> </Self> <Self> <ProductCategoryId>684248011</ProductCategoryId> <ProductCategoryName>Management</ProductCategoryName> <Parent> <ProductCategoryId>468220</ProductCategoryId> <ProductCategoryName>Business & Finance</ProductCategoryName> <Parent> <ProductCategoryId>465600</ProductCategoryId> <ProductCategoryName>New, Used & Rental Textbooks</ProductCategoryName> <Parent> <ProductCategoryId>2349030011</ProductCategoryId> <ProductCategoryName>Specialty Boutique</ProductCategoryName> <Parent> <ProductCategoryId>283155</ProductCategoryId> <ProductCategoryName>Specialty Boutique</ProductCategoryName> </Parent> </Parent> </Parent> </Parent> </Self> </GetProductCategoriesForSKUResult> <ResponseMetadata> <RequestId>e058aabd-b4c3-48ba-9bfa-EXAMPLE9a267</RequestId> </ResponseMetadata> </GetProductCategoriesForSKUResponse>