itemIdstringobligatoire
Unique product identifier on Taobao/Tmall (item ID).
https://api.sandbase.ai/v1/api/taobao/item/detailGet a Taobao or Tmall product by item ID: title, images, price, SKU options, delivery and seller details.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns the details of one Taobao or Tmall product: title, images, price ranges, SKU options, delivery info and shop details. It needs one input, the product itemId.
seller.shop_id and seller.shop_title.curl -X POST "https://api.sandbase.ai/v1/api/taobao/item/detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"itemId": "920640959876"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
itemId | string | Yes | Unique product identifier on Taobao/Tmall (item ID). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"delivery": {
"area_id": "110101",
"delivery_fee": "0.00",
"from": null,
"to": "东城区"
},
"item": {
"brandName": null,
"cat_id": null,
"cat_name": null,
"desc_imgs": [
"//img.alicdn.com/imgextra/i3/835893472/O1CN01gbHmUp1bWECvcBSVR_!!835893472.jpg"
],
"desc_url": "//mdetail.tmall.com/templates/pages/desc?id=920640959876",
"detail_url": "//item.taobao.com/item.htm?id=920640959876",
"images": [
"//img.alicdn.com/bao/uploaded/i2/835893472/O1CN01BI37Zo1bWECZtseXB_!!46116860184…"
],
"num_iid": "920640959876",
"properties": [
{
"name": "品牌",
"value": "BASEUS/倍思"
}
],
"properties_cut": "品牌 / 型号 / 使用方式 / 售后服务 / 蓝牙版本 / 保修期 / 耳机类别 / 降噪类型 / 套餐类型 / 是否同时支持两部手机 / 颜色分类",
"sales": null,
"sku_base": [
{
"activity_price": "139",
"price": "400",
"promotion_price": "219",
"propPath": "1627207:38429888978;5919063:6536025",
"quantity": "200",
"skuId": "5964173351608"
}
]
},
"seller": {
"evaluates": null,
"seller_id": null,
"seller_title": null,
"shop_icon": "//img.alicdn.com/imgextra/i1/O1CN01pz5irY1bhDKceJor2_!!6000000003496-2-tps-144-1…",
"shop_id": "70617482",
"shop_title": "baseus倍思旗舰店",
"shop_url": "//store.taobao.com/shop/view_shop.htm?user_number_id=",
"user_type": "C"
}
}
| Field | Meaning |
|---|---|
item.title | Product title as shown on the listing. |
item.images[] / item.desc_imgs[] | Image URLs. images holds the main gallery. desc_imgs holds the images from the description section. The URLs start with //. |
item.skus.price / item.skus.promotion_price / item.skus.activity_price | Price summary across all SKUs. Each value is a string and can be a single number or a range such as 219 - 229. |
item.skus.quantity | Total stock quantity across all SKUs, as a string. |
item.sku_base[] | One row per SKU combination. Each row has skuId, price, promotion_price, activity_price, quantity and a propPath that points to the chosen option values. |
item.sku_props[] | The option groups, such as color or bundle type. Each group has a name, a pid and a list of values with vid, name and sometimes image. |
item.properties[] | Product attributes as name and value pairs, such as brand and model. |
item.detail_url / item.desc_url | Links to the product page and to the description page. |
delivery.delivery_fee / delivery.to | Delivery fee and the destination area name. delivery.area_id holds the matching area code. |
seller.shop_id / seller.shop_title / seller.shop_url | Shop ID, shop name and shop page link of the seller. |
item.htm?id=...) as itemId. The response returns it as item.num_iid.propPath is a list of pid:vid pairs joined by ;. Match them to item.sku_props[].pid and item.sku_props[].values[].vid to find the option names for a SKU.null for a given item, such as item.sales, item.video and seller.seller_id.$0.021429 per successful call. Failed calls are not charged.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/taobao/item/detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"itemId": "920640959876"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
itemIdstringobligatoireUnique product identifier on Taobao/Tmall (item ID).
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Taobao Product DetailsCette API Taobao | $0.021429 par appel | JSON |
Taobao | $0.021429 par appel | JSON |
Taobao | $0.021429 par appel | JSON |
Taobao | $0.028571 par appel | JSON |
Taobao | $0.028571 par appel | JSON |
Taobao | $0.028571 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/taobao/item/detail avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.021429 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : itemId (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Taobao Product Details fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Taobao séparément.