Produkt-API-Antwortmodelle

Mit response_format: "standard" (Standard) geben Produkt-Endpoints die folgenden Typen zurück. Kanonisches TypeScript: packages/shared/src/products.ts.

Endpoints: Detail · Suche · Bildsuche · Parse

Response-Envelope {#envelope}

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

StandardProductDetail {#standard-product-detail}

Vollständiger Produktsnapshot für Produktseiten und Checkout. Mapping auf Bestellungen: search/detail idlines[].id (offer_id / Taobao mi_id still accepted), variants[].sku_idspec_id (Beschaffungsbestellungen).

Identität & Channel

FeldTypBeschreibung
idstringTaobao = mi_id (Bestell-lines[].id; ändert sich regelmäßig — nicht langfristig cachen). 1688 = offerId. Weidian derzeit prod_weidian_{source_product_id}
channelstring1688, taobao oder weidian
source_product_idstring1688 = offerId (same as id); Taobao = original item_id
source_urlstringKanonische Produktseiten-URL

Lokalisierter Text (title, description)

FeldTypBeschreibung
originalstringMarketplace-Text (typischerweise Chinesisch)
translatedstring | nullÜbersetzung für angefragtes language
languagestringLocale von translated
descriptionobject | nullAusführliches Detail (oft HTML)

Preise (price, price_tiers[])

Alle Beträge CNY Yuan (nicht Fen). Bevorzugen Sie promotion_amount, wenn gesetzt, sonst display_amount.

FeldTypBeschreibung
price.original_amountnumberListenpreis vor Aktionen
price.display_amountnumberKäuferseitiger Preis (CNY)
price.promotion_amountnumber | nullAktions-Stückpreis, falls zutreffend
price.original_currency / display_currencystringImmer CNY
price_tiers[]array1688-Großhandelsstaffeln (neue Angebote ab ≥2); leer bei Taobao
min_order_quantitynumber | null1688 MOQ
distribution_min_quantitynumber | null1688-Dropship-Mindestmenge

Medien (images[], videos)

FeldTypBeschreibung
images[].urlstringBild-CDN-URL
images[].typeenummain, gallery oder variant
videos.main / videos.detailstring | null1688-Videos; Taobao null

Attribute vs. Varianten

Nur variants[] steuert SKU-Auswahl und Bestellpositionen.

FeldRolle
attributes[]CPV-Spezifikationen - nur Anzeige, nicht für SKU-Auflösung
variants[]Kaufbare SKU-Matrix mit Preis, Bestand und Spezifikationen

Variantenobjekt (variants[])

FeldTypBeschreibung
sku_idstringBei Order Create als spec_id übergeben
upstream_sku_idstring | nullNumerische 1688-skuId
attributes[]arraySpezifikationsdimensionen (Farbe, Größe, …)
attributes[].name / valuestringAnzeige-Labels (lokalisiert gemäß language)
attributes[].original_name / original_valuestringStabile chinesische Schlüssel zum Gruppieren / Abgleichen
attributes[].prop_idstring | nullUpstream-Attribut-ID als String (Taobao prop_id; 1688 attributeId). Bevorzugen gegenüber Namensetext
attributes[].value_idstring | nullUpstream-Wert-ID als String (Taobao value_id). 1688 ohne valueId → null
attributes[].imagestring | nullOptions-/Swatch-Bild
priceobjectSKU-Preis in Yuan
stocknumberVerfügbare Menge; 0 = nicht vorrätig
imagestring | nullSKU-Hauptbild
shippingobject | null1688-SKU-Paketmaße (Tabelle unten); Taobao null
min_order_quantitynumber | null1688-MOQ (Produktwert auf jeder SKU)
distributionobject | null1688-Dropship-Preise

SKU-Paketmaße (variants[].shipping)

Gemappt aus 1688-Upstream productShippingInfo.skuShippingDetails (SkuShippingDetail). Taobao hat kein Äquivalent — immer null. Leere oder 0-Maße/Gewichte werden zu null normalisiert; ohne Dimensionsdaten ist shipping selbst null.

FeldTypBeschreibung
width_cmnumber | nullBreite, cm (Händlerangabe)
length_cmnumber | nullLänge, cm
height_cmnumber | nullHöhe, cm
weight_kgnumber | nullGewicht, kg
official_width_cmnumber | nullOffiziell gemessene Breite, cm
official_length_cmnumber | nullOffiziell gemessene Länge, cm
official_height_cmnumber | nullOffiziell gemessene Höhe, cm
official_weight_kgnumber | nullOffiziell gemessenes Gewicht, kg
ai_weight_kgnumber | nullKI-vorhergesagtes Gewicht, kg
ai_weight_accuracystring | nullKI-Gewichtgenauigkeit für die Blattkategorie (z. B. 80%)
sourcestring | nullMaßquelle (z. B. 商家自填)

Für Frachtschätzungen official_* bevorzugen, dann Händlerangaben, dann ai_weight_kg (mit ai_weight_accuracy als Konfidenzhinweis).

Verkäufer, Versand & Metadaten

FeldTypBeschreibung
seller.id / seller.namestringShop-ID und Anzeigename
seller.shop_urlstring | nullStorefront-Link
shipping.shipping_fromstring | nullInländische Versandregion
shipping.domestic_shipping_feeobject | nullGeschätzte Inlandgebühr in Yuan
metadata.raw_categorystring | nullUpstream-Kategorie
metadata.brandstring | nullAngegebene Marke
metadata.updated_atstringLetzte Synchronisierung nach ISO 8601
trade_scorestring | null1688-Qualitätsscore

Beispiel (gekürzt)

{
  "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_..."
}

Feldverfügbarkeit nach Channel

Feld1688TaobaoWeidian
videos, price_tiers, trade_scoreVariiert
variants[].shipping, distribution
variants[].attributes[].prop_id✓ (attributeId)✓ (prop_id)
variants[].attributes[].value_id— (null)✓ (value_id)
source_product_id für BestellungenofferIdmi_idPlattform-ID

StandardProductList {#standard-product-list}

Aus Suche und Bildsuche. Jeder items[]-Eintrag ist eine Zusammenfassung - Detail aufrufen für SKU-Matrix.

FeldTypBeschreibung
channelstringAbgefragter Marketplace
keywordstringEcho des Keywords (leer bei reiner Bildsuche)
page / page_sizenumberAngewendete Paginierung
totalnumberUpstream-Gesamtzahl (kann ungefähr sein)
items[]arrayStandardProductListItem-Objekte
pic_region_infoobjectBildsuche: erkannte Crop-Region

StandardProductListItem

FeldTypBeschreibung
id, channel, source_product_id, source_urlstringsource_product_id verwenden, um Detail abzurufen
titleLocalizedTitleListing-Titel
priceProductPriceSummary-Preis in CNY Yuan
imagestringThumbnail-URL
seller.namestringShop-Name

Upload-image-Antwort {#upload-image-response}

FeldTypBeschreibung
channelstringMarketplace, der das Bild gespeichert hat
image_idstringIn Bildsuche wiederverwenden

Variantenauswahl {#variant-selection}

  1. Detail laden → product.variants lesen.
  2. Nach attributes[].original_name für Dimensionsauswahlen gruppieren (oder nach prop_id, falls vorhanden).
  3. Varianten bei jeder Benutzerauswahl filtern; nicht vorrätige Optionen deaktivieren.
  4. Passende sku_id und source_product_id an Order Preview übergeben.

Abgleichsschlüssel: Bei Taobao prop_id + value_id bevorzugen, wenn gesetzt (stabile CPV-Identitäten; vermeiden Vertauschungen, wenn viele SKUs denselben Attributnamen teilen). Für UI-Gruppierung auf original_name + original_value zurückfallen. name / value nur zur Anzeige. Semantische Typen nicht aus Labels ableiten.

{
  "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/..."
}

Bei 1688 dieselbe Form: prop_idattributeId und value_id: null (Upstream-SkuAttribute ohne valueId).

Get Support

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

Email support