Amazon Services
Amazon Marketplace Web Service (Amazon MWS) Documentation

Deprecation Notice:

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.

Amazon MWS Documentation

GetProductCategoriesForASIN

Returns the parent product categories that a product belongs to, based on ASIN.

Description

The GetProductCategoriesForASIN operation is the same as the GetProductCategoriesForSKU operation except that it uses a MarketplaceId and an ASIN to uniquely identify a product.

Availability

This operation is available in all marketplaces.

Throttling

Maximum request quota Restore rate Hourly request quota
20 requests One request every five seconds 720 requests per hour
This quota and restore rate is shared with GetProductCategoriesForSKU. Operations in the Products API section that send lists of items as input parameters have restore rates that are measured by item. For information on per-item throttling, see Throttling in the Products API. For definitions of throttling terminology and for a complete explanation of throttling, see Throttling: Limits to how often you can submit requests in the Amazon MWS Developer Guide.

Request parameters

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  

Response elements

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

Examples

Example query request

For information about standard request requirements, see Required request parameters.

Show example code Hide example code

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

↑ Top

Example response

For information about standard response formatting, see Response format.

Show example code Hide example code

<?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 &#x26; Accessories</ProductCategoryName>
          <Parent>
            <ProductCategoryId>2232464011</ProductCategoryId>
              <ProductCategoryName>Bikes &#x26; 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>

↑ Top