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 ASIN.
The GetProductCategoriesForASIN operation is the same as the GetProductCategoriesForSKU operation except that it uses a MarketplaceId and an ASIN to uniquely identify a product.
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 whose
category structure should be returned. Type: xs:string |
Yes | For a list of MarketplaceId values, see Amazon MWS endpoints and MarketplaceId values in the Amazon MWS Developer Guide. |
ASIN | Identifies the product in given the Marketplace. 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> ASIN=B002KT3XQM &AWSAccessKeyId=AKIAEXAMPLEFWR4TJ7ZQ &Action=GetProductCategoriesForASIN &MWSAuthToken=amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE &MarketplaceId=ATVPDKIKX0DER &SellerId=A1IMEXAMPLEWRC &SignatureMethod=HmacSHA256 &SignatureVersion=2 &Timestamp=2012-12-04T22%3A51%3A51Z &Version=2011-10-01 &Signature=%2BIEXAMPLE%2FvjuBYraHxZawj6F63rOVHx4PNEXAMPLEs%3D
For information about standard response formatting, see Response format.
<?xml version="1.0"?> <GetProductCategoriesForASINResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01"> <GetProductCategoriesForASINResult> <Self> <ProductCategoryId>2420095011</ProductCategoryId> <ProductCategoryName>Compression Shorts</ProductCategoryName> <Parent> <ProductCategoryId>2419332011</ProductCategoryId> <ProductCategoryName>Men</ProductCategoryName> <Parent> <ProductCategoryId>2371051011</ProductCategoryId> <ProductCategoryName>Clothing</ProductCategoryName> <Parent> <ProductCategoryId>3403201</ProductCategoryId> <ProductCategoryName>Bikes & Accessories</ProductCategoryName> <Parent> <ProductCategoryId>2232464011</ProductCategoryId> <ProductCategoryName>Bikes & Scooters</ProductCategoryName> <Parent> <ProductCategoryId>3375301</ProductCategoryId> <ProductCategoryName>Categories</ProductCategoryName> <Parent> <ProductCategoryId>3375251</ProductCategoryId> <ProductCategoryName>Categories</ProductCategoryName> </Parent> </Parent> </Parent> </Parent> </Parent> </Parent> </Self> </GetProductCategoriesForASINResult> <ResponseMetadata> <RequestId>fbce5b62-67cc-4ab8-86f3-EXAMPLE22e4e</RequestId> </ResponseMetadata> </GetProductCategoriesForASINResponse>