---
title: "アマゾン カテゴリ別の商品 API (V1)"
description: "特定の国のマーケットプレイスでの数値カテゴリノードに対するページングされたAmazon商品を取得します。設定可能な結果のソート機能を使用して、カテゴリをブラウズしたり、商品セットを比較したり、カテゴリ固有の商品候補を収集したりするために使用します。"
lastUpdated: false
aiUsagePrompt: true
---

# アマゾン カテゴリ別の商品 API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/amazon/get-category-products/v1\"")'
  :summary='JSON.parse("\"カテゴリ別の商品 (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/amazon/products-by-category-v1-ja.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"このAPIサービスの認証トークン。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"categoryId\",\"in\":\"query\",\"description\":\"カテゴリURLのノードクエリパラメータから取得される数値のカテゴリノードID。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"country\",\"in\":\"query\",\"description\":\"Amazon商品の国コード。\\n\\n利用可能な値：\\n- `US`: アメリカ合衆国\\n- `AU`: オーストラリア\\n- `BR`: ブラジル\\n- `CA`: カナダ\\n- `CN`: 中国\\n- `FR`: フランス\\n- `DE`: ドイツ\\n- `IN`: インド\\n- `IT`: イタリア\\n- `MX`: メキシコ\\n- `NL`: オランダ\\n- `SG`: シンガポール\\n- `ES`: スペイン\\n- `TR`: トルコ\\n- `AE`: アラブ首長国連邦\\n- `GB`: イギリス\\n- `JP`: 日本\\n- `SA`: サウジアラビア\\n- `PL`: ポーランド\\n- `SE`: スウェーデン\\n- `BE`: ベルギー\\n- `EG`: エジプト\\n- `ZA`: 南アフリカ\\n- `IE`: アイルランド\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"US\",\"description\":\"Amazonの国。\",\"enum\":[\"US\",\"AU\",\"BR\",\"CA\",\"CN\",\"FR\",\"DE\",\"IN\",\"IT\",\"MX\",\"NL\",\"SG\",\"ES\",\"TR\",\"AE\",\"GB\",\"JP\",\"SA\",\"PL\",\"SE\",\"BE\",\"EG\",\"ZA\",\"IE\"]}},{\"name\":\"sortBy\",\"in\":\"query\",\"description\":\"並べ替え方法。\\n\\n利用可能な値：\\n- `RELEVANCE`: 関連性\\n- `LOWEST_PRICE`: 最低価格\\n- `HIGHEST_PRICE`: 最高価格\\n- `REVIEWS`: レビュー\\n- `NEWEST`: 最新\\n- `BEST_SELLERS`: ベストセラー\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"RELEVANCE\",\"description\":\"Amazonのソート項目。\",\"enum\":[\"RELEVANCE\",\"LOWEST_PRICE\",\"HIGHEST_PRICE\",\"REVIEWS\",\"NEWEST\",\"BEST_SELLERS\"]}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"ページングのページ番号。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"要求されたカテゴリとマーケットプレイスに対して返されるAmazonの商品リスト。\",\"properties\":{\"total_products\":{\"type\":\"integer\",\"description\":\"カテゴリに対して報告された一致する商品の総数。この値はページによって異なる可能性があります。\"},\"country\":{\"type\":\"string\",\"description\":\"この結果のAmazonマーケットプレイスの国コード。\"},\"domain\":{\"type\":\"string\",\"description\":\"この結果のAmazonマーケットプレイスのドメイン。\"},\"products\":{\"type\":\"array\",\"description\":\"要求されたページに対して返される商品リスト。ページ上のリスト数は商品の数を使用します。\",\"items\":{\"type\":\"object\",\"description\":\"カテゴリ結果からの一つのAmazon商品リスト。\",\"properties\":{\"asin\":{\"type\":\"string\",\"description\":\"リストのAmazon標準識別番号（ASIN）。\"},\"product_title\":{\"type\":\"string\",\"description\":\"検索結果に表示される製品タイトル。\"},\"product_url\":{\"type\":\"string\",\"description\":\"Amazon上の製品リストへのリンク。\"},\"product_photo\":{\"type\":\"string\",\"description\":\"検索結果に表示される製品画像へのリンク。\"},\"product_byline\":{\"type\":\"string\",\"description\":\"製品タイトルと共に表示されるバイラインテキスト（利用可能な場合）。\"},\"product_byline_links\":{\"type\":\"array\",\"description\":\"製品バイラインと共に表示されるリンク（利用可能な場合）。\",\"items\":{\"type\":\"object\",\"description\":\"商品のタイトルに関連する一つのリンク。\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"バイラインリンクの表示可能なラベル。\"},\"link\":{\"type\":\"string\",\"description\":\"バイラインリンクの目的URL。\"}}}},\"has_variations\":{\"type\":\"boolean\",\"description\":\"検索結果がリストにバリエーションがあることを示しているかどうか。\"},\"book_format\":{\"type\":\"string\",\"description\":\"この個々のリストに表示されるフォーマットラベル（利用可能な場合）。\"},\"book_formats\":{\"type\":\"array\",\"description\":\"代替的なリストまたは購入オプションのエントリ、利用可能な場合。ラベルには版名やその他の購入オプションが含まれることがあります。\",\"items\":{\"type\":\"object\",\"description\":\"別のリストまたは表示される購入オプション。\",\"properties\":{\"asin\":{\"type\":\"string\",\"description\":\"この代替リストまたは購入オプションに関連するASIN。\"},\"format\":{\"type\":\"string\",\"description\":\"代替リストまたは購入オプションの表示ラベル。\"},\"price\":{\"type\":\"string\",\"description\":\"この購入オプションが利用可能な場合の表示価格。\"},\"original_price\":{\"type\":\"string\",\"description\":\"この購入オプションが利用可能な場合の元の表示価格。\"},\"num_offers\":{\"type\":\"integer\",\"description\":\"この購入オプションに関する報告されたオファーの数。\"}}}},\"product_price\":{\"type\":[\"string\",\"null\"],\"description\":\"現在表示されている価格、テキストまたはnullとして返されます。テキストには通貨記号が含まれることがあります。\"},\"product_original_price\":{\"type\":[\"string\",\"null\"],\"description\":\"現在の価格の隣に表示される元の価格、利用できない場合はnull。\"},\"currency\":{\"type\":[\"string\",\"null\"],\"description\":\"表示価格の通貨コード、利用できない場合はnull。\"},\"unit_count\":{\"type\":[\"integer\",\"null\"],\"description\":\"単価価格の報告数、利用できない場合はnull。\"},\"unit_price\":{\"type\":\"string\",\"description\":\"単価価格の表示テキスト、利用可能な場合。通貨記号と単位ラベルが含まれることがあります。\"},\"product_num_offers\":{\"type\":\"integer\",\"description\":\"商品のオファー数の報告数。\"},\"product_minimum_offer_price\":{\"type\":[\"string\",\"null\"],\"description\":\"商品の最低オファー価格の報告数、表示テキストまたはnullとして返されます。\"},\"coupon_text\":{\"type\":\"string\",\"description\":\"リストに表示されるクーポンテキスト、利用可能な場合。\"},\"product_star_rating\":{\"type\":[\"string\",\"null\"],\"description\":\"表示される平均星評価、テキストまたはnullとして返されます。\"},\"product_num_ratings\":{\"type\":\"integer\",\"description\":\"商品の評価数（報告値）。\"},\"sales_volume\":{\"type\":[\"string\",\"null\"],\"description\":\"販売量の表示テキスト、数量と期間が含まれることがあります。nullになり得ます。\"},\"is_best_seller\":{\"type\":\"boolean\",\"description\":\"検索結果が商品をベストセラーとしてマークしているかどうか。\"},\"is_amazon_choice\":{\"type\":\"boolean\",\"description\":\"検索結果が商品をAmazonのチョイスとしてマークしているかどうか。\"},\"climate_pledge_friendly\":{\"type\":\"boolean\",\"description\":\"検索結果にClimate Pledge Friendlyバッジが表示されているかどうか。\"},\"product_badge\":{\"type\":\"string\",\"description\":\"商品に表示されるバッジテキスト、利用可能な場合。\"},\"is_prime\":{\"type\":\"boolean\",\"description\":\"検索結果が商品をPrime対象としてマークしているかどうか。\"},\"delivery\":{\"type\":[\"string\",\"null\"],\"description\":\"配送の表示テキスト、利用できない場合はnull。日付や配送条件が含まれることがあります。\"},\"kindle_unlimited\":{\"type\":\"boolean\",\"description\":\"Amazonがこの商品をKindle Unlimitedで利用可能としてマークするかどうか。\"}}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"有効でないリクエストパラメータまたはボディ。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"有効でないまたは無効なアクセストークン。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"権限拒否。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"リクエストレートまたは日次クォーターリミットを超過。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"内部サーバーエラー。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"サービスが一時的に利用できない。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"グローバルプロダクションAPI（デフォルト）\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/amazon/get-category-products/v1\"")' />

<p>特定の国のマーケットプレイスでの数値カテゴリノードに対するページングされたAmazon商品を取得します。設定可能な結果のソート機能を使用して、カテゴリをブラウズしたり、商品セットを比較したり、カテゴリ固有の商品候補を収集したりするために使用します。</p>

## パラメータ

<div class="api-doc-table api-doc-table--params">

| 名前 | パラメーターの場所 | タイプ | 必須 | デフォルト | 説明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | はい | - | このAPIサービスの認証トークン。 |
| <code>categoryId</code> | query | <code>string</code> | はい | - | カテゴリURLのノードクエリパラメータから取得される数値のカテゴリノードID。 |
| <code>country</code> | query | <code>string</code> | いいえ | <code>US</code> | Amazon商品の国コード。<br /><br><br>利用可能な値：<br /><br>- <code>US</code>: アメリカ合衆国<br /><br>- <code>AU</code>: オーストラリア<br /><br>- <code>BR</code>: ブラジル<br /><br>- <code>CA</code>: カナダ<br /><br>- <code>CN</code>: 中国<br /><br>- <code>FR</code>: フランス<br /><br>- <code>DE</code>: ドイツ<br /><br>- <code>IN</code>: インド<br /><br>- <code>IT</code>: イタリア<br /><br>- <code>MX</code>: メキシコ<br /><br>- <code>NL</code>: オランダ<br /><br>- <code>SG</code>: シンガポール<br /><br>- <code>ES</code>: スペイン<br /><br>- <code>TR</code>: トルコ<br /><br>- <code>AE</code>: アラブ首長国連邦<br /><br>- <code>GB</code>: イギリス<br /><br>- <code>JP</code>: 日本<br /><br>- <code>SA</code>: サウジアラビア<br /><br>- <code>PL</code>: ポーランド<br /><br>- <code>SE</code>: スウェーデン<br /><br>- <code>BE</code>: ベルギー<br /><br>- <code>EG</code>: エジプト<br /><br>- <code>ZA</code>: 南アフリカ<br /><br>- <code>IE</code>: アイルランド |
| <code>sortBy</code> | query | <code>string</code> | いいえ | <code>RELEVANCE</code> | 並べ替え方法。<br /><br><br>利用可能な値：<br /><br>- <code>RELEVANCE</code>: 関連性<br /><br>- <code>LOWEST_PRICE</code>: 最低価格<br /><br>- <code>HIGHEST_PRICE</code>: 最高価格<br /><br>- <code>REVIEWS</code>: レビュー<br /><br>- <code>NEWEST</code>: 最新<br /><br>- <code>BEST_SELLERS</code>: ベストセラー |
| <code>page</code> | query | <code>integer</code> | いいえ | <code>1</code> | ページングのページ番号。 |

</div>

## コードサンプル

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/amazon/get-category-products/v1?token=YOUR_API_KEY&categoryId=VALUE'
```

```text [🤖 AIプロンプト]
私はJustOneAPIの"カテゴリ別の商品 (V1)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/amazon/get-category-products/v1?token=YOUR_API_KEY&categoryId=VALUE
APIエンドポイント: BASE_URL + /api/amazon/get-category-products/v1?token=YOUR_API_KEY&categoryId=VALUE
HTTPメソッド: GET
認証: "token"クエリパラメーターをURLに追加します。
OpenAPI定義: https://docs.justoneapi.com/openapi/amazon/products-by-category-v1-ja.json

パラメーター:
- token (query): このAPIサービスの認証トークン。 (必須)
- categoryId (query): カテゴリURLのノードクエリパラメータから取得される数値のカテゴリノードID。 (必須)
- country (query): Amazon商品の国コード。

利用可能な値：
- `US`: アメリカ合衆国
- `AU`: オーストラリア
- `BR`: ブラジル
- `CA`: カナダ
- `CN`: 中国
- `FR`: フランス
- `DE`: ドイツ
- `IN`: インド
- `IT`: イタリア
- `MX`: メキシコ
- `NL`: オランダ
- `SG`: シンガポール
- `ES`: スペイン
- `TR`: トルコ
- `AE`: アラブ首長国連邦
- `GB`: イギリス
- `JP`: 日本
- `SA`: サウジアラビア
- `PL`: ポーランド
- `SE`: スウェーデン
- `BE`: ベルギー
- `EG`: エジプト
- `ZA`: 南アフリカ
- `IE`: アイルランド
- sortBy (query): 並べ替え方法。

利用可能な値：
- `RELEVANCE`: 関連性
- `LOWEST_PRICE`: 最低価格
- `HIGHEST_PRICE`: 最高価格
- `REVIEWS`: レビュー
- `NEWEST`: 最新
- `BEST_SELLERS`: ベストセラー
- page (query): ページングのページ番号。

返信形式：実際のContent-Typeに応じて、JSONまたはテキストを安全に処理する。

レスポンスの処理とエラーコード：
1. API の処理結果はレスポンス本文の「code」フィールドで判定します。code が 0 なら成功です。
2. 推奨タイムアウト：リクエストのタイムアウトは 120 秒に設定してください。120 秒が長すぎる場合でも、最低 60 秒を確保してください。一部のリクエストは、結果を受け取る前にタイムアウトすることがあります。
3. 処理結果コード：
   - 0: 成功
   - 100: 無効または停止中のトークン
   - 301: データの取得に失敗しました。再試行してください。
   - 302: 呼び出し頻度の上限を超えました
   - 303: 日次の利用上限を超えました
   - 400: パラメーターが無効です
   - 500: サーバー内部エラー
   - 600: アクセス権限がありません
   - 601: 残高不足
   - 602: トークンの予算上限に達しました
4. コード 601 はアカウントの共有残高不足を示します。コード 602 は使用中の API トークン固有の累積予算上限に達したことを示します。トークンに予算上限を設定しても、共有残高から資金が移動することはありません。

お手伝いください。私が好むプログラミング言語でこのAPIを呼び出し、レスポンスを処理するスクリプトを作成してください。
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # オープンAPIサーバーによって提供される

url = BASE_URL + "/api/amazon/get-category-products/v1?token=YOUR_API_KEY&categoryId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // オープンAPIサーバーによって提供される
const url = BASE_URL + "/api/amazon/get-category-products/v1?token=YOUR_API_KEY&categoryId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // オープンAPIサーバーによって提供される
        final String url = BASE_URL + "/api/amazon/get-category-products/v1?token=YOUR_API_KEY&categoryId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // オープンAPIサーバーによって提供される

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/amazon/get-category-products/v1?token=YOUR_API_KEY&categoryId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // オープンAPIサーバーによって提供される
$url = $BASE_URL . '/api/amazon/get-category-products/v1?token=YOUR_API_KEY&categoryId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/amazon/products-by-category-v1-ja.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI定義 (JSON)]</a>
</div>

## レスポンスフィールド

成功したレスポンスのキーフィールド（`code = 0`）。

<div class="api-doc-table api-doc-table--response">

| フィールドパス | タイプ | 説明 |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | 要求されたカテゴリとマーケットプレイスに対して返されるAmazonの商品リスト。 |
| <code>data.total_products</code> | <code>integer</code> | カテゴリに対して報告された一致する商品の総数。この値はページによって異なる可能性があります。 |
| <code>data.country</code> | <code>string</code> | この結果のAmazonマーケットプレイスの国コード。 |
| <code>data.domain</code> | <code>string</code> | この結果のAmazonマーケットプレイスのドメイン。 |
| <code>data.products</code> | <code>array</code> | 要求されたページに対して返される商品リスト。ページ上のリスト数は商品の数を使用します。 |
| <code>data.products[]</code> | <code>object</code> | カテゴリ結果からの一つのAmazon商品リスト。 |
| <code>data.products[].asin</code> | <code>string</code> | リストのAmazon標準識別番号（ASIN）。 |
| <code>data.products[].product_title</code> | <code>string</code> | 検索結果に表示される製品タイトル。 |
| <code>data.products[].product_url</code> | <code>string</code> | Amazon上の製品リストへのリンク。 |
| <code>data.products[].product_photo</code> | <code>string</code> | 検索結果に表示される製品画像へのリンク。 |
| <code>data.products[].product_byline</code> | <code>string</code> | 製品タイトルと共に表示されるバイラインテキスト（利用可能な場合）。 |
| <code>data.products[].product_byline_links</code> | <code>array</code> | 製品バイラインと共に表示されるリンク（利用可能な場合）。 |
| <code>data.products[].product_byline_links[]</code> | <code>object</code> | 商品のタイトルに関連する一つのリンク。 |
| <code>data.products[].product_byline_links[].text</code> | <code>string</code> | バイラインリンクの表示可能なラベル。 |
| <code>data.products[].product_byline_links[].link</code> | <code>string</code> | バイラインリンクの目的URL。 |
| <code>data.products[].has_variations</code> | <code>boolean</code> | 検索結果がリストにバリエーションがあることを示しているかどうか。 |
| <code>data.products[].book_format</code> | <code>string</code> | この個々のリストに表示されるフォーマットラベル（利用可能な場合）。 |
| <code>data.products[].book_formats</code> | <code>array</code> | 代替的なリストまたは購入オプションのエントリ、利用可能な場合。ラベルには版名やその他の購入オプションが含まれることがあります。 |
| <code>data.products[].book_formats[]</code> | <code>object</code> | 別のリストまたは表示される購入オプション。 |
| <code>data.products[].book_formats[].asin</code> | <code>string</code> | この代替リストまたは購入オプションに関連するASIN。 |
| <code>data.products[].book_formats[].format</code> | <code>string</code> | 代替リストまたは購入オプションの表示ラベル。 |
| <code>data.products[].book_formats[].price</code> | <code>string</code> | この購入オプションが利用可能な場合の表示価格。 |
| <code>data.products[].book_formats[].original_price</code> | <code>string</code> | この購入オプションが利用可能な場合の元の表示価格。 |
| <code>data.products[].book_formats[].num_offers</code> | <code>integer</code> | この購入オプションに関する報告されたオファーの数。 |
| <code>data.products[].product_price</code> | <code>string &#124; null</code> | 現在表示されている価格、テキストまたはnullとして返されます。テキストには通貨記号が含まれることがあります。 |
| <code>data.products[].product_original_price</code> | <code>string &#124; null</code> | 現在の価格の隣に表示される元の価格、利用できない場合はnull。 |
| <code>data.products[].currency</code> | <code>string &#124; null</code> | 表示価格の通貨コード、利用できない場合はnull。 |
| <code>data.products[].unit_count</code> | <code>integer &#124; null</code> | 単価価格の報告数、利用できない場合はnull。 |
| <code>data.products[].unit_price</code> | <code>string</code> | 単価価格の表示テキスト、利用可能な場合。通貨記号と単位ラベルが含まれることがあります。 |
| <code>data.products[].product_num_offers</code> | <code>integer</code> | 商品のオファー数の報告数。 |
| <code>data.products[].product_minimum_offer_price</code> | <code>string &#124; null</code> | 商品の最低オファー価格の報告数、表示テキストまたはnullとして返されます。 |
| <code>data.products[].coupon_text</code> | <code>string</code> | リストに表示されるクーポンテキスト、利用可能な場合。 |
| <code>data.products[].product_star_rating</code> | <code>string &#124; null</code> | 表示される平均星評価、テキストまたはnullとして返されます。 |
| <code>data.products[].product_num_ratings</code> | <code>integer</code> | 商品の評価数（報告値）。 |
| <code>data.products[].sales_volume</code> | <code>string &#124; null</code> | 販売量の表示テキスト、数量と期間が含まれることがあります。nullになり得ます。 |
| <code>data.products[].is_best_seller</code> | <code>boolean</code> | 検索結果が商品をベストセラーとしてマークしているかどうか。 |
| <code>data.products[].is_amazon_choice</code> | <code>boolean</code> | 検索結果が商品をAmazonのチョイスとしてマークしているかどうか。 |
| <code>data.products[].climate_pledge_friendly</code> | <code>boolean</code> | 検索結果にClimate Pledge Friendlyバッジが表示されているかどうか。 |
| <code>data.products[].product_badge</code> | <code>string</code> | 商品に表示されるバッジテキスト、利用可能な場合。 |
| <code>data.products[].is_prime</code> | <code>boolean</code> | 検索結果が商品をPrime対象としてマークしているかどうか。 |
| <code>data.products[].delivery</code> | <code>string &#124; null</code> | 配送の表示テキスト、利用できない場合はnull。日付や配送条件が含まれることがあります。 |
| <code>data.products[].kindle_unlimited</code> | <code>boolean</code> | Amazonがこの商品をKindle Unlimitedで利用可能としてマークするかどうか。 |

</div>

## レスポンス例

<ApiExampleSection :api='JSON.parse("\"/api/amazon/get-category-products/v1\"")' />

