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.
SellerSKUに応じた、商品の親カテゴリーを返します。
GetProductCategoriesForSKUオペレーションは、マーケットプレイスのルートまでさかのぼった親カテゴリーも含め、商品が属するカテゴリーの名前とIDを返します。
このオペレーションはすべてのマーケットプレイスで利用できます。
最大リクエストクォータ | 回復レート | 時間あたりのリクエストクォータ |
---|---|---|
20リクエスト | 5秒あたり1回のリクエスト | 1時間あたり720リクエスト |
すべてのAmazon MWSオペレーションに必須とされるリクエストパラメータについて詳しくは、Amazon MWS開発者ガイドの必須のリクエストパラメーターを参照してください。
名前 | 説明 | 必須 | 有効値 |
---|---|---|---|
MarketplaceId | マーケットプレイスID。カテゴリー構造を取得するマーケットプレイスを指定。 タイプ:xs:string |
はい | MarketplaceId値の一覧については、Amazon MWS開発者ガイドのAmazon MWSエンドポイントとMarketplaceId値を参照してください。 |
SellerSKU | 指定したマーケットプレイスにある商品を識別するために使用。SellerSKUは出品者のSellerIdにより限定されます。SellerIdは、送信する各AmazonマーケットプレイスWebサービス(Amazon MWS)オペレーションに含まれます。 タイプ:xs:string |
はい |
名前 | 説明 |
---|---|
Self | 送信した商品のProductCategoryIdを含む。また、マーケットプレイスのルートカテゴリーまでさかのぼって親カテゴリーのProductCategoryIdも含まれます。 |
ProductCategoryId | 商品カテゴリー(またはブラウズノード)のID。 |
ProductCategoryName | 商品カテゴリー(またはブラウズノード)の名前。 |
標準のリクエスト要件について詳しくは、必須のリクエストパラメーターを参照してください。
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
標準のレスポンスフォーマットについて詳しくは、レスポンスフォーマットを参照してください。
<?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>