---
title: "Douyin の E コマース 商品SKU情報 API (V1)"
description: "アイテムIDに基づくDouyin E-commerce商品のSKU情報を取得します。カタログのレビュー中に、既知の商品の購入可能なバリエーションを検査するために使用します。"
lastUpdated: false
aiUsagePrompt: true
---

# Douyin の E コマース 商品SKU情報 API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin-ec/get-item-sku-info/v1\"")'
  :summary='JSON.parse("\"商品SKU情報 (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-e-commerce/product-sku-info-v1-ja.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"このAPIサービスのアクセストークン。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"itemId\",\"in\":\"query\",\"description\":\"Douyin E-commerce上のアイテムのユニークID。\",\"required\":true,\"schema\":{\"type\":\"string\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"description\":\"抖音Eコマースの商品情報、SKUバリエーション、および選択された詳細。商品が利用できない場合、結果にはメッセージフィールドのみが含まれます。他の成功したテキスト値は変更なく渡されます。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"抖音Eコマースの商品ID、文字列として返されます。\"},\"name\":{\"type\":\"string\",\"description\":\"商品タイトル。\"},\"description\":{\"type\":\"string\",\"description\":\"商品説明テキスト。これは空文字列で構成されることもあります。\"},\"mainImg\":{\"type\":\"string\",\"description\":\"主要な商品画像のURL。\"},\"salePrice\":{\"type\":\"integer\",\"description\":\"商品レベルの販売価格値。レスポンスでは通貨単位は指定されていません。\"},\"originalPrice\":{\"type\":\"integer\",\"description\":\"商品の元の価格値。レスポンスでは通貨単位は指定されていません。\"},\"sellNum\":{\"type\":\"integer\",\"description\":\"商品の販売数。レスポンスでは測定期間は指定されていません。\"},\"shopId\":{\"type\":\"integer\",\"description\":\"商品を掲載するショップのID。\"},\"skus\":{\"type\":\"array\",\"description\":\"商品のSKUバリアントが返されます。\",\"items\":{\"type\":\"object\",\"description\":\"一つのSKUバリアント。\",\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"SKU バリエーションの ID。\"},\"shopId\":{\"type\":\"integer\",\"description\":\"SKUを掲載するショップのID。\"},\"productId\":{\"type\":\"string\",\"description\":\"親商品のID、文字列として返されます。\"},\"price\":{\"type\":\"integer\",\"description\":\"このSKUの販売価格値。レスポンスでは通貨単位は指定されていません。\"},\"type\":{\"type\":\"integer\",\"description\":\"プラットフォームから返されるSKUのタイプコード。\"},\"salePropertyValues\":{\"type\":\"array\",\"description\":\"このSKUに選択された販売仕様値。\",\"items\":{\"type\":\"object\",\"description\":\"選択された販売仕様とその値。\",\"properties\":{\"seq\":{\"type\":\"integer\",\"description\":\"この販売仕様のシーケンス値。\"},\"pairId\":{\"type\":\"integer\",\"description\":\"販売仕様と値のペアの識別子。\"},\"pic\":{\"type\":\"string\",\"description\":\"このオプションの画像URL。空文字列で構成されることもあります。\"},\"property\":{\"type\":\"object\",\"description\":\"販売仕様。\",\"properties\":{\"PropertyId\":{\"type\":\"integer\",\"description\":\"販売仕様ID。\"},\"PropertyName\":{\"type\":\"string\",\"description\":\"販売仕様の名前。\"},\"SpecType\":{\"type\":\"integer\",\"description\":\"プラットフォームから返される仕様タイプコード。\"}}},\"value\":{\"type\":\"object\",\"description\":\"この販売仕様の選択された値。\",\"properties\":{\"ValueName\":{\"type\":\"string\",\"description\":\"選択した値の名前。\"},\"DisplayValueName\":{\"type\":\"string\",\"description\":\"選択した値の表示名。\"}}}}}}}}},\"category\":{\"type\":\"object\",\"description\":\"商品のカテゴリ階層。\",\"properties\":{\"firstCid\":{\"type\":\"integer\",\"description\":\"第一階層のカテゴリID。\"},\"firstCName\":{\"type\":\"string\",\"description\":\"第一級カテゴリ名。\"},\"secondCid\":{\"type\":\"integer\",\"description\":\"第二級カテゴリID。\"},\"secondCName\":{\"type\":\"string\",\"description\":\"第二級カテゴリ名。\"},\"thirdCid\":{\"type\":\"integer\",\"description\":\"第三級カテゴリID。0の値は未設定のレベルを表す。\"},\"thirdCName\":{\"type\":\"string\",\"description\":\"第三級カテゴリ名。このレベルが未設定の場合は空文字列となり得る。\"},\"fourthCid\":{\"type\":\"integer\",\"description\":\"第四級カテゴリID。0の値は未設定のレベルを表す。\"},\"fourthCName\":{\"type\":\"string\",\"description\":\"第四級カテゴリ名。このレベルが未設定の場合は空文字列となり得る。\"}}},\"detail_info\":{\"type\":\"object\",\"description\":\"追加の商品詳細、画像、仕様。\",\"properties\":{\"detail_imgs\":{\"type\":\"array\",\"description\":\"商品詳細セクションで返される画像。\",\"items\":{\"type\":\"object\",\"description\":\"製品の詳細画像。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"プラットフォームから返される画像リソースURI。\"},\"url_list\":{\"type\":\"array\",\"description\":\"画像の利用可能なURL。\",\"items\":{\"type\":\"string\"}},\"width\":{\"type\":\"integer\",\"description\":\"画像のピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"画像のピクセル単位の高さ。\"}}}},\"detail_imgs_new\":{\"type\":\"array\",\"description\":\"画像タイプを持つ商品詳細画像エントリ。\",\"items\":{\"type\":\"object\",\"description\":\"製品の詳細画像のエントリ。\",\"properties\":{\"image\":{\"type\":\"object\",\"description\":\"エントリの画像リソース。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"プラットフォームから返される画像リソースURI。\"},\"url_list\":{\"type\":\"array\",\"description\":\"画像の利用可能なURL。\",\"items\":{\"type\":\"string\"}},\"width\":{\"type\":\"integer\",\"description\":\"画像のピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"画像のピクセル単位の高さ。\"}}},\"pic_type\":{\"type\":\"string\",\"description\":\"プラットフォームから返される画像タイプ値。\"}}}},\"title_image\":{\"type\":\"object\",\"description\":\"商品詳細ヘッダーで返される画像。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"プラットフォームから返される画像リソースURI。\"},\"url_list\":{\"type\":\"array\",\"description\":\"画像の利用可能なURL。\",\"items\":{\"type\":\"string\"}},\"width\":{\"type\":\"integer\",\"description\":\"画像のピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"画像のピクセル単位の高さ。\"}}},\"product_format\":{\"type\":\"array\",\"description\":\"商品仕様エントリのグループ。\",\"items\":{\"type\":\"object\",\"description\":\"一つの製品仕様グループ。\",\"properties\":{\"format\":{\"type\":\"array\",\"description\":\"このグループ内の仕様エントリ。\",\"items\":{\"type\":\"object\",\"description\":\"一つの製品仕様。\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"商品仕様の名前。\"},\"property_id\":{\"type\":\"string\",\"description\":\"商品仕様ID、文字列として返される。\"},\"message\":{\"type\":\"array\",\"description\":\"この商品仕様の表示値。\",\"items\":{\"type\":\"object\",\"description\":\"製品仕様の表示値。\",\"properties\":{\"desc\":{\"type\":\"string\",\"description\":\"仕様値の表示テキスト。\"}}}}}}}}}},\"jump_url\":{\"type\":\"string\",\"description\":\"商品詳細ページへのナビゲーションリンク。リンクにはアプリ固有のスキームを使用することがあります。\"}}},\"message\":{\"type\":\"string\",\"description\":\"商品が利用できないというメッセージ。成功したレスポンスには、このフィールドのみが`商品不存在`の値で含まれます。\"}}}}},\"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/douyin-ec/get-item-sku-info/v1\"")' />

<p>アイテムIDに基づくDouyin E-commerce商品のSKU情報を取得します。カタログのレビュー中に、既知の商品の購入可能なバリエーションを検査するために使用します。</p>

## ハイライト

::: warning ガイダンス
<p>このバージョンは完全なSKU情報を返しますが、リクエストの成功率は比較的低いです。</p>
:::

## パラメータ

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

| 名前 | パラメーターの場所 | タイプ | 必須 | デフォルト | 説明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | はい | - | このAPIサービスのアクセストークン。 |
| <code>itemId</code> | query | <code>string</code> | はい | - | Douyin E-commerce上のアイテムのユニークID。 |

</div>

## コードサンプル

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin-ec/get-item-sku-info/v1?token=YOUR_API_KEY&itemId=VALUE'
```

```text [🤖 AIプロンプト]
私はJustOneAPIの"商品SKU情報 (V1)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/douyin-ec/get-item-sku-info/v1?token=YOUR_API_KEY&itemId=VALUE
APIエンドポイント: BASE_URL + /api/douyin-ec/get-item-sku-info/v1?token=YOUR_API_KEY&itemId=VALUE
HTTPメソッド: GET
認証: "token"クエリパラメーターをURLに追加します。
OpenAPI定義: https://docs.justoneapi.com/openapi/douyin-e-commerce/product-sku-info-v1-ja.json

パラメーター:
- token (query): このAPIサービスのアクセストークン。 (必須)
- itemId (query): Douyin E-commerce上のアイテムのユニークID。 (必須)

返信形式：実際の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/douyin-ec/get-item-sku-info/v1?token=YOUR_API_KEY&itemId=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/douyin-ec/get-item-sku-info/v1?token=YOUR_API_KEY&itemId=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/douyin-ec/get-item-sku-info/v1?token=YOUR_API_KEY&itemId=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/douyin-ec/get-item-sku-info/v1?token=YOUR_API_KEY&itemId=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/douyin-ec/get-item-sku-info/v1?token=YOUR_API_KEY&itemId=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/douyin-e-commerce/product-sku-info-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> | - | 抖音Eコマースの商品情報、SKUバリエーション、および選択された詳細。商品が利用できない場合、結果にはメッセージフィールドのみが含まれます。他の成功したテキスト値は変更なく渡されます。 |
| <code>data.id</code> | <code>string</code> | 抖音Eコマースの商品ID、文字列として返されます。 |
| <code>data.name</code> | <code>string</code> | 商品タイトル。 |
| <code>data.description</code> | <code>string</code> | 商品説明テキスト。これは空文字列で構成されることもあります。 |
| <code>data.mainImg</code> | <code>string</code> | 主要な商品画像のURL。 |
| <code>data.salePrice</code> | <code>integer</code> | 商品レベルの販売価格値。レスポンスでは通貨単位は指定されていません。 |
| <code>data.originalPrice</code> | <code>integer</code> | 商品の元の価格値。レスポンスでは通貨単位は指定されていません。 |
| <code>data.sellNum</code> | <code>integer</code> | 商品の販売数。レスポンスでは測定期間は指定されていません。 |
| <code>data.shopId</code> | <code>integer</code> | 商品を掲載するショップのID。 |
| <code>data.skus</code> | <code>array</code> | 商品のSKUバリアントが返されます。 |
| <code>data.skus[]</code> | <code>object</code> | 一つのSKUバリアント。 |
| <code>data.skus[].id</code> | <code>integer</code> | SKU バリエーションの ID。 |
| <code>data.skus[].shopId</code> | <code>integer</code> | SKUを掲載するショップのID。 |
| <code>data.skus[].productId</code> | <code>string</code> | 親商品のID、文字列として返されます。 |
| <code>data.skus[].price</code> | <code>integer</code> | このSKUの販売価格値。レスポンスでは通貨単位は指定されていません。 |
| <code>data.skus[].type</code> | <code>integer</code> | プラットフォームから返されるSKUのタイプコード。 |
| <code>data.skus[].salePropertyValues</code> | <code>array</code> | このSKUに選択された販売仕様値。 |
| <code>data.skus[].salePropertyValues[]</code> | <code>object</code> | 選択された販売仕様とその値。 |
| <code>data.skus[].salePropertyValues[].seq</code> | <code>integer</code> | この販売仕様のシーケンス値。 |
| <code>data.skus[].salePropertyValues[].pairId</code> | <code>integer</code> | 販売仕様と値のペアの識別子。 |
| <code>data.skus[].salePropertyValues[].pic</code> | <code>string</code> | このオプションの画像URL。空文字列で構成されることもあります。 |
| <code>data.skus[].salePropertyValues[].property</code> | <code>object</code> | 販売仕様。 |
| <code>data.skus[].salePropertyValues[].property.PropertyId</code> | <code>integer</code> | 販売仕様ID。 |
| <code>data.skus[].salePropertyValues[].property.PropertyName</code> | <code>string</code> | 販売仕様の名前。 |
| <code>data.skus[].salePropertyValues[].property.SpecType</code> | <code>integer</code> | プラットフォームから返される仕様タイプコード。 |
| <code>data.skus[].salePropertyValues[].value</code> | <code>object</code> | この販売仕様の選択された値。 |
| <code>data.skus[].salePropertyValues[].value.ValueName</code> | <code>string</code> | 選択した値の名前。 |
| <code>data.skus[].salePropertyValues[].value.DisplayValueName</code> | <code>string</code> | 選択した値の表示名。 |
| <code>data.category</code> | <code>object</code> | 商品のカテゴリ階層。 |
| <code>data.category.firstCid</code> | <code>integer</code> | 第一階層のカテゴリID。 |
| <code>data.category.firstCName</code> | <code>string</code> | 第一級カテゴリ名。 |
| <code>data.category.secondCid</code> | <code>integer</code> | 第二級カテゴリID。 |
| <code>data.category.secondCName</code> | <code>string</code> | 第二級カテゴリ名。 |
| <code>data.category.thirdCid</code> | <code>integer</code> | 第三級カテゴリID。0の値は未設定のレベルを表す。 |
| <code>data.category.thirdCName</code> | <code>string</code> | 第三級カテゴリ名。このレベルが未設定の場合は空文字列となり得る。 |
| <code>data.category.fourthCid</code> | <code>integer</code> | 第四級カテゴリID。0の値は未設定のレベルを表す。 |
| <code>data.category.fourthCName</code> | <code>string</code> | 第四級カテゴリ名。このレベルが未設定の場合は空文字列となり得る。 |
| <code>data.detail_info</code> | <code>object</code> | 追加の商品詳細、画像、仕様。 |
| <code>data.detail_info.detail_imgs</code> | <code>array</code> | 商品詳細セクションで返される画像。 |
| <code>data.detail_info.detail_imgs[]</code> | <code>object</code> | 製品の詳細画像。 |
| <code>data.detail_info.detail_imgs[].uri</code> | <code>string</code> | プラットフォームから返される画像リソースURI。 |
| <code>data.detail_info.detail_imgs[].url_list</code> | <code>array</code> | 画像の利用可能なURL。 |
| <code>data.detail_info.detail_imgs[].url_list[]</code> | <code>string</code> | - |
| <code>data.detail_info.detail_imgs[].width</code> | <code>integer</code> | 画像のピクセル単位の幅。 |
| <code>data.detail_info.detail_imgs[].height</code> | <code>integer</code> | 画像のピクセル単位の高さ。 |
| <code>data.detail_info.detail_imgs_new</code> | <code>array</code> | 画像タイプを持つ商品詳細画像エントリ。 |
| <code>data.detail_info.detail_imgs_new[]</code> | <code>object</code> | 製品の詳細画像のエントリ。 |
| <code>data.detail_info.detail_imgs_new[].image</code> | <code>object</code> | エントリの画像リソース。 |
| <code>data.detail_info.detail_imgs_new[].image.uri</code> | <code>string</code> | プラットフォームから返される画像リソースURI。 |
| <code>data.detail_info.detail_imgs_new[].image.url_list</code> | <code>array</code> | 画像の利用可能なURL。 |
| <code>data.detail_info.detail_imgs_new[].image.url_list[]</code> | <code>string</code> | - |
| <code>data.detail_info.detail_imgs_new[].image.width</code> | <code>integer</code> | 画像のピクセル単位の幅。 |
| <code>data.detail_info.detail_imgs_new[].image.height</code> | <code>integer</code> | 画像のピクセル単位の高さ。 |
| <code>data.detail_info.detail_imgs_new[].pic_type</code> | <code>string</code> | プラットフォームから返される画像タイプ値。 |
| <code>data.detail_info.title_image</code> | <code>object</code> | 商品詳細ヘッダーで返される画像。 |
| <code>data.detail_info.title_image.uri</code> | <code>string</code> | プラットフォームから返される画像リソースURI。 |
| <code>data.detail_info.title_image.url_list</code> | <code>array</code> | 画像の利用可能なURL。 |
| <code>data.detail_info.title_image.url_list[]</code> | <code>string</code> | - |
| <code>data.detail_info.title_image.width</code> | <code>integer</code> | 画像のピクセル単位の幅。 |
| <code>data.detail_info.title_image.height</code> | <code>integer</code> | 画像のピクセル単位の高さ。 |
| <code>data.detail_info.product_format</code> | <code>array</code> | 商品仕様エントリのグループ。 |
| <code>data.detail_info.product_format[]</code> | <code>object</code> | 一つの製品仕様グループ。 |
| <code>data.detail_info.product_format[].format</code> | <code>array</code> | このグループ内の仕様エントリ。 |
| <code>data.detail_info.product_format[].format[]</code> | <code>object</code> | 一つの製品仕様。 |
| <code>data.detail_info.product_format[].format[].name</code> | <code>string</code> | 商品仕様の名前。 |
| <code>data.detail_info.product_format[].format[].property_id</code> | <code>string</code> | 商品仕様ID、文字列として返される。 |
| <code>data.detail_info.product_format[].format[].message</code> | <code>array</code> | この商品仕様の表示値。 |
| <code>data.detail_info.product_format[].format[].message[]</code> | <code>object</code> | 製品仕様の表示値。 |
| <code>data.detail_info.product_format[].format[].message[].desc</code> | <code>string</code> | 仕様値の表示テキスト。 |
| <code>data.detail_info.jump_url</code> | <code>string</code> | 商品詳細ページへのナビゲーションリンク。リンクにはアプリ固有のスキームを使用することがあります。 |
| <code>data.message</code> | <code>string</code> | 商品が利用できないというメッセージ。成功したレスポンスには、このフィールドのみが<code>商品不存在</code>の値で含まれます。 |

</div>

## レスポンス例

<ApiExampleSection :api='JSON.parse("\"/api/douyin-ec/get-item-sku-info/v1\"")' />

