Product API レスポンスモデル

response_format: "standard" (デフォルト) では、商品エンドポイントは以下の型を返します。正規の TypeScript: packages/shared/src/products.ts

エンドポイント: detail · search · image search · parse

レスポンスエンベロープ {#envelope}

Endpoint
detail, parse{ product: StandardProductDetail, request_id }
search, search-by-imageStandardProductList & { request_id }
upload-image{ channel, image_id, request_id }

StandardProductDetail {#standard-product-detail}

商品ページとチェックアウト向けの完全な商品スナップショットです。注文へのマッピング: search/detail idlines[].id (offer_id / Taobao mi_id still accepted), variants[].sku_idspec_id (Procurement orders)。

ID とチャネル

フィールド説明
idstringTaobao = mi_id(注文 lines[].id定期的に変わるため長期キャッシュしないでください)。1688 = offerId。Weidian は現在 prod_weidian_{source_product_id}
channelstring1688, taobao, または weidian
source_product_idstring1688 = offerId (same as id); Taobao = original item_id
source_urlstring正規の商品ページ URL

ローカライズ済みテキスト (title, description)

フィールド説明
originalstringマーケットプレイスのテキスト (通常は中国語)
translatedstring | nullリクエストされた language の翻訳
languagestringtranslated のロケール
descriptionobject | null長文詳細 (多くの場合 HTML)

価格 (price, price_tiers[])

すべての金額は CNY yuan (fen ではありません)。promotion_amount が設定されていれば優先し、なければ display_amount を使用します。

フィールド説明
price.original_amountnumberプロモーション前の定価
price.display_amountnumber購入者向け価格 (CNY)
price.promotion_amountnumber | null該当する場合のプロモーション単価
price.original_currency / display_currencystring常に CNY
price_tiers[]array1688 卸売数量割引(新オファーは ≥2 から)。Taobao では空
min_order_quantitynumber | null1688 MOQ
distribution_min_quantitynumber | null1688 ドロップシップ最小数量

メディア (images[], videos)

フィールド説明
images[].urlstring画像 CDN URL
images[].typeenummain, gallery, または variant
videos.main / videos.detailstring | null1688 動画。Taobao は null

属性とバリエーション

SKU 選択と注文明細に使うのは variants[] だけです。

フィールド役割
attributes[]CPV 仕様。表示専用で、SKU 解決には使用しません
variants[]価格、在庫、仕様を持つ購入可能な SKU マトリクス

バリエーションオブジェクト (variants[])

フィールド説明
sku_idstring注文作成時に spec_id として渡します
upstream_sku_idstring | null1688 の数値 skuId
attributes[]array仕様ディメンション (色、サイズなど)
attributes[].name / valuestring表示用ラベル(language 指定時は翻訳済み)
attributes[].original_name / original_valuestringグループ化・照合用の安定した中国語キー
attributes[].prop_idstring | null上流の属性 ID(文字列。Taobao prop_id;1688 attributeId)。ある場合は名称より優先
attributes[].value_idstring | null上流の属性値 ID(文字列。Taobao value_id)。1688 に valueId がない場合は null
attributes[].imagestring | null仕様オプション画像
priceobjectSKU レベルの元建て価格
stocknumber利用可能数量。0 = 在庫切れ
imagestring | nullSKU のメイン画像
shippingobject | null1688 SKU 梱包寸法(下表)。Taobao は null
min_order_quantitynumber | null1688 MOQ(商品レベル値を各 SKU に付与)
distributionobject | null1688 ドロップシップ価格

SKU 梱包寸法(variants[].shipping

1688 上流の productShippingInfo.skuShippingDetailsSkuShippingDetail)からマッピング。Taobao には相当データがなく常に null。空または 0 の寸法/重量は null に正規化。SKU に寸法データが無い場合、shipping 自体が null

フィールド説明
width_cmnumber | null幅、cm(出品者申告)
length_cmnumber | null長さ、cm
height_cmnumber | null高さ、cm
weight_kgnumber | null重量、kg
official_width_cmnumber | null公式計測の幅、cm
official_length_cmnumber | null公式計測の長さ、cm
official_height_cmnumber | null公式計測の高さ、cm
official_weight_kgnumber | null公式計測の重量、kg
ai_weight_kgnumber | nullAI 予測重量、kg
ai_weight_accuracystring | null当該リーフカテゴリでの AI 重量精度(例: 80%
sourcestring | null寸法ソース(例: 商家自填

運賃見積もりでは official_* を優先し、次に出品者申告の寸法/重量、さらに ai_weight_kgai_weight_accuracy を信頼度の目安に)を使います。

販売者、配送、メタデータ

フィールド説明
seller.id / seller.namestring店舗 ID と表示名
seller.shop_urlstring | null店舗リンク
shipping.shipping_fromstring | null国内発送地域
shipping.domestic_shipping_feeobject | null元建ての推定国内送料
metadata.raw_categorystring | nullupstream カテゴリ
metadata.brandstring | null申告ブランド
metadata.updated_atstringISO 8601 の最終同期時刻
trade_scorestring | null1688 品質スコア

例 (省略)

{
  "product": {
    "id": "554456348334",
    "channel": "1688",
    "source_product_id": "554456348334",
    "title": {
      "original": "...",
      "translated": "...",
      "language": "en"
    },
    "price": {
      "display_amount": 29.9,
      "promotion_amount": 24.9
    },
    "variants": [
      {
        "sku_id": "b266e0...",
        "upstream_sku_id": "12123313",
        "stock": 100,
        "shipping": {
          "width_cm": 10,
          "length_cm": 10,
          "height_cm": 10,
          "weight_kg": 1.2,
          "official_width_cm": 5,
          "official_length_cm": 12,
          "official_height_cm": 14,
          "official_weight_kg": 0.001,
          "ai_weight_kg": 0.001,
          "ai_weight_accuracy": "80%",
          "source": "商家自填"
        }
      }
    ]
  },
  "request_id": "req_..."
}

チャネル別フィールド提供状況

フィールド1688TaobaoWeidian
videos, price_tiers, trade_score場合による
variants[].shipping, distribution
variants[].attributes[].prop_id✓ (attributeId)✓ (prop_id)
variants[].attributes[].value_id— (null)✓ (value_id)
注文用の source_product_idofferIdmi_idプラットフォーム ID

StandardProductList {#standard-product-list}

searchimage search から返されます。各 items[] エントリはサマリーです。SKU マトリクスは detail を呼び出してください。

フィールド説明
channelstringクエリしたマーケットプレイス
keywordstringキーワードのエコー (純粋な画像検索では空)
page / page_sizenumber適用されたページネーション
totalnumberupstream の合計 (概算の場合があります)
items[]arrayStandardProductListItem オブジェクト
pic_region_infoobject画像検索: 検出されたクロップ領域

StandardProductListItem

フィールド説明
id, channel, source_product_id, source_urlstringdetail 取得には source_product_id を使用します
titleLocalizedTitleリスティングタイトル
priceProductPriceCNY yuan のサマリー価格
imagestringサムネイル URL
seller.namestring店舗名

Upload-image レスポンス {#upload-image-response}

フィールド説明
channelstring画像を保存したマーケットプレイス
image_idstringimage search で再利用します

バリエーション選択 {#variant-selection}

  1. detail を読み込み、product.variants を確認します。
  2. ディメンションピッカー用に attributes[].original_name でグループ化します(prop_id がある場合は ID でも可)。
  3. ユーザーの各選択でバリエーションを絞り込み、在庫切れの選択肢を無効化します。
  4. 一致した sku_idsource_product_idorder preview に渡します。

照合キー: Taobao で prop_id + value_id がある場合は ID を優先します(安定した CPV 識別子で、多数の SKU が同じ属性名を共有する場合の取り違えを防げます)。UI のグループ化は original_name + original_value にフォールバック。name / value は表示専用。ラベルから意味タイプを推測しないでください。

{
  "prop_id": "1627207",
  "value_id": "43553464153",
  "name": "Color Classification",
  "value": "[Special for Bicycle Maintenance] Professional 46-Piece Set",
  "original_name": "颜色分类",
  "original_value": "【自行车维修专用】专业46件套",
  "image": "https://img.alicdn.com/..."
}

1688 も同じ形で、prop_idattributeIdvalue_idnull(上流 SkuAttribute に valueId なし)です。

Get Support

Need integration help? Contact Developer Support at support@hiobuy.com · Response within 1–2 business days

Email support