itemIdstring필수
Unique product identifier on Taobao/Tmall (item ID).
https://api.sandbase.ai/v1/api/taobao/item/detail-v2Get a Taobao or Tmall product by item ID: title, images, video, prices, attributes, SKU options with stock, shop and shipping origin. Works for items that Taobao Product Details does not support.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns the details of one Taobao or Tmall product: title, main images, video, prices, attributes, SKU options with stock, shop info and shipping origin. It needs one input, the product itemId.
Use this API when Taobao Product Details returns an error for an item. Some Tmall items are not supported by that API but are returned here. The two APIs return different response formats.
shop_info.shop_id and shop_info.shop_name.curl -X POST "https://api.sandbase.ai/v1/api/taobao/item/detail-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"itemId": "925329371469"}'
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.
{
"item_id": 925329371469,
"product_url": "https://detail.tmall.com/item.htm?id=925329371469",
"title": "美格泰苏糖酸镁头痛成人女士补镁片刘国松国产儿童旗舰店补充剂",
"main_imgs": [
"https://img.alicdn.com/imgextra/i3/2928278102/O1CN01JAxqiL29im4Xo6k29_!!4611686018427386…"
],
"video_url": "https://cloud.video.taobao.com/play/u/3356902309/p/2/e/6/t/1/544143070438.mp4",
"currency": "CNY",
"price_info": {
"price": "152.00",
"origin_price": null
},
"category_id": 125038023,
"product_props": [
{
"品牌": "Magtein/美格泰"
}
],
"delivery_info": {
"area_from": ["广东省"],
"area_id": "",
"postage": ""
},
"shop_info": {
"shop_id": 163215406,
"seller_id": 2928278102,
"shop_name": "阿里健康大药房",
"shop_url": "https://shop163215406.taobao.com"
},
"sku_props": [
{
"pid": "1627207",
"prop_name": "颜色分类",
"values": [
{
"vid": "3232483",
"name": "一盒装(60粒)【专利L-苏糖酸镁】",
"imageUrl": "https://img.alicdn.com/imgextra/i1/2928278102/O1CN01a62a8d29im6CvCe6M_!!2928278102.jpg"
}
]
}
],
"skus": [
{
"skuid": "5807435681062",
"sale_price": "152.00",
"origin_price": "324.00",
"stock": 200,
"props_ids": "1627207:3232483",
"props_names": "颜色分类:一盒装(60粒)【专利L-苏糖酸镁】"
}
]
}
| Field | Meaning |
|---|---|
title / product_url | Product title and product page link. |
main_imgs[] / video_url | Main image URLs and the product video URL. |
price_info.price / price_info.origin_price | Displayed price and original price of the item, as strings in currency. |
product_props[] | Product attributes. Each entry is an object with one attribute name and its value, such as brand. |
sku_props[] | The option groups, such as color or bundle type. Each group has a pid, a prop_name and a list of values with vid, name and sometimes imageUrl. |
skus[] | One row per SKU combination with skuid, sale_price, origin_price, stock, props_ids and props_names. |
shop_info | Shop ID, seller ID, shop name and shop page link. |
delivery_info.area_from / delivery_info.postage | Shipping origin and postage. |
item.htm?id=...) as itemId.props_ids is a list of pid:vid pairs joined by ;. Match them to sku_props[].pid and sku_props[].values[].vid to find the option names, or read props_names directly.null or empty for a given item, such as comment_count, root_category_id, price_info.origin_price and delivery_info.postage.$0.02 per successful call. Failed calls are not charged.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/taobao/item/detail-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"itemId": "920640959876"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
itemIdstring필수Unique product identifier on Taobao/Tmall (item ID).
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Taobao | $0.02 / 호출 | JSON |
Taobao | $0.021429 / 호출 | JSON |
Taobao | $0.021429 / 호출 | JSON |
Taobao | $0.021429 / 호출 | JSON |
Taobao | $0.028571 / 호출 | JSON |
Taobao | $0.028571 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/taobao/item/detail-v2에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.02, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: itemId (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Taobao Product Details V2은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Taobao API 액세스를 별도로 신청할 필요는 없습니다.