itemIdstring필수
The unique ID of the item on Douyin E-commerce.
https://api.sandbase.ai/v1/api/douyin/ec/item-skusGet the SKU list of a Douyin shop product by item ID: variant options with price and stock.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns SKU and product page data for one Douyin Shop item. You send the item ID as itemId. The response includes the title, category, price, images, product attributes and a sample of buyer comments.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/ec/item-skus" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"itemId": "3734619545235751048"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
itemId | string | Yes | The unique ID of the item on Douyin E-commerce. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"category": {
"firstCName": "个人护理",
"firstCid": 1000003462,
"fourthCName": "",
"fourthCid": 0,
"secondCName": "面部洗护",
"secondCid": 1000003463,
"thirdCName": "防晒霜",
"thirdCid": 1000003485
},
"description": "",
"detail_info": {
"ai_question": null,
"detail_config": [
{
"main_content": [
{
"content": [
"售卖价,由商家依照《价格法》规定的定价原则及定价依据通过商家后台页面自主填写(适用政府指导价或者政府定价除外),如商品未通过商家后台参加促销活动(如优惠券、满减…"
],
"default_show": false,
"links": [
{
"key": "抖音电商平台价格标签说明",
"link": "https://school.jinritemai.com/doudian/web/article/aHzox7KpPT94"
}
],
"title": "价格说明",
"type": 0
}
],
"main_title": "",
"main_type": 0
}
],
"detail_imgs": [
{
"height": 1262,
"uri": "ecom-shop-material/jpeg_m_7a451b88b93bf8db3dfc0ec3c89386aa_sx_420641_www790-1262",
"url_list": [
"https://p3-item.ecombdimg.com/img/ecom-shop-material/jpeg_m_7a451b88b93bf8db3dfc…"
],
"width": 790
}
],
"detail_imgs_new": [
{
"image": {
"height": 1262,
"uri": "ecom-shop-material/jpeg_m_7a451b88b93bf8db3dfc0ec3c89386aa_sx_420641_www790-1262",
"url_list": [
"https://p3-item.ecombdimg.com/img/ecom-shop-material/jpeg_m_7a451b88b93bf8db3dfc…"
],
"width": 790
},
"pic_type": "pic"
}
],
"jump_url": "sslocal://webcast_lynxview?type=popup&url=https%3A%2F%2Flf-webcast-sourcecdn-tos…",
"product_format": [
{
"format": [
{
"message": [
{
"desc": "JIAOCHAN/娇婵"
}
],
"name": "品牌",
"pic_urls": null,
"property_id": "1687"
}
],
"media_elements": null
}
],
"tag_card": null,
"title_image": {
"height": 21,
"uri": "tos-cn-i-5mmsx3fupr/product_detail_head.png",
"url_list": [
"http://p26-item.ecombdimg.com/tos-cn-i-5mmsx3fupr/product_detail_head.png~tplv-5…"
],
"width": 149
}
},
"id": "3734619545235751048",
"mainImg": "https://p9-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_e0dd74cc60c22ee927610…",
"name": "【美白+补水+隔离+防晒乳】四效合一SPF50+PA++++防水(试用七天)",
"originalPrice": 3990,
"price_source": "buyin_pack_detail",
"price_verified": 3990,
"promotion_h5": {
"basic_info_data": {
"bottom_label_list": [
{
"coms": [
{
"border_radius": "",
"height": 13,
"margin": "0 4px 0 0",
"type": "icon",
"url": "https://p26-item.ecombdimg.com/img/tos-cn-i-5mmsx3fupr/year_rank_icon.png~tplv-5…"
}
],
"label_type": 70,
"link_info": {
"link": "sslocal://webcast_lynxview?url=https%3A%2F%2Flf-dy-sourcecdn-tos.bytegecko.com%2…"
},
"render_type": 0
}
],
"price_info": {
"price": {
"min_price": "3?",
"suffix": "起"
}
},
"product_id": "3734619545235751048",
"title_info": {
"title": "【美白+补水+隔离+防晒乳】四效合一SPF50+PA++++防水(试用七天)"
}
},
"collapse_detail": false,
"comment_data": {
"buyer_show": {
"title_bar": {
"link": "aweme://ecom_buyer_show?title=%E4%B9%B0%E5%AE%B6%E7%A7%80&product_id=37346195452…"
}
},
"good_comment": {
"comment_list": [
{
"avatar": "https://p3-ecom-commentpic.byteimg.com/tos-cn-i-fceoirpogb/229c77efc170705f8a6aa…",
"comment_id": "3651490945721270571",
"content": "用了两瓶了,第二次回购,真心好用,推荐给大家。扫码是正品,超赞!",
"name": "淡**z",
"tag_list": [
{}
]
}
],
"media_list": [
{
"image_info": {
"thumbnail": "https://p3-product-comment-sign.byteimg.com/tos-cn-i-8y5sebgt5i/fe48be9f083d4e82…",
"url": "https://p3-product-comment-sign.byteimg.com/tos-cn-i-8y5sebgt5i/fe48be9f083d4e82…"
},
"type": 1,
"video_info": {}
}
],
"tag_list": [
{
"num": 206,
"sentiment": 1,
"text": "回头客"
}
],
"title_bar": {
"link": "sslocal://ec_goods_comment/?comment_entrance=product_flow_page&product_id=373461…",
"sum": 4268
}
},
"good_evaluation": {},
"shop_extra_comment": {
"title_bar": {}
},
"style_type": 0
},
"footer_data": {
"big_button_list": [
{
"bg_color": "#FE2C550D",
"button_status": "normal",
"button_type": -3,
"sub_text_info": {},
"text_info": {
"color": "#FE2C55",
"content": "加入购物车"
}
}
],
"small_button_list": [
{
"icon_url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/ljylttvjl_lmp/ljhwZthlaukjlkulzlp/…",
"name": "店铺"
}
]
},
"head_figure_data": {
"container_size": 0,
"media_list": [
{
"content_list": [
{
"combination_info": {
"combination_jump": {}
},
"height": 0,
"url": "https://p3-item.ecombdimg.com/img/ecom-shop-material/jpeg_m_e0dd74cc60c22ee92761…",
"width": 0
}
],
"name": "商品",
"type": "image"
}
],
"style_type": 0
},
"init_popup_data": {
"find_sim": {}
},
"pack_detail": {
"style_type": 0
},
"page_data": {},
"product_support_info_data": {
"header_content": {
"background": "#FFFFFF",
"content_color": "#161823",
"service_tag": {}
},
"logistics_content": {
"content_list": [
{
"coms": [
{
"border_radius": "",
"type": "icon",
"url": "https://lf3-static.bytednsdoc.com/obj/eden-cn/rjhw.ajbkvyweh7tvjl/ljhwZthlaukjlk…"
}
],
"label_type": 0,
"link": "sslocal://webcast_lynxview?add_safe_area_height=0&gravity=bottom&height_percent=…"
}
],
"title": "物流"
},
"safety_content": {
"content_list": [
{
"coms": [
{
"text": "运费险",
"type": "text"
}
],
"label_type": 1,
"render_type": 0
}
],
"safety_popup_content": [
{
"content": "发货90天内退/换货,使用上门取件可享3公斤内免运费,使用快递柜或驿站邮寄可享1公斤内免运费。若选择自行寄回,享受和上门取件同样的免运费金额,需上传真实的运单号…",
"left_icon": "http://p3-item.ecombdimg.com/tos-cn-i-5mmsx3fupr/second_page_priority_icon_blue.…",
"title": "运费险",
"url": "sslocal://webcast_webview?radius=20&up_height_percent=73&up_offset_height=400&up…"
}
],
"service_type": "2,6,9,10"
}
},
"redirect_location_v2": "",
"shop_coupon_data": {},
"shop_info": {
"basic_info": {
"account_url": "",
"background": "",
"brand_icon": "",
"grade_info": {
"is_new_style": true,
"score": 4.8
},
"new_brand_icon": "",
"shop_extra_info": null,
"shop_icon_list": null,
"shop_link_button": {
"background": "#FE2C55FF",
"link": "sslocal://goods/store?entrance_location=product_detail_live&pass_through_api=%7B…",
"text": "进店逛逛"
}
},
"style_type": 0
}
},
"salePrice": 3990,
"sellNum": 63976
}
| Field | Meaning |
|---|---|
id | The item ID of the product. It matches the itemId you sent. |
name | The product title shown on the Douyin Shop page. |
originalPrice / price_verified | Price values for the item, both 3990 in the example. The response does not label the unit. |
price_source | A label for where the verified price came from, for example buyin_pack_detail. |
mainImg | URL of the main product image. |
category.firstCName / secondCName / thirdCName / fourthCName | Category names from level 1 to level 4, in Chinese. An empty string means the item has no level at that depth. |
category.firstCid / secondCid / thirdCid / fourthCid | Numeric category IDs that match the category names. 0 means the level is not used. |
detail_info.product_format[].format[].name | The name of a product attribute, such as brand or target group. The value is in message[].desc. |
detail_info.detail_imgs[].url_list | Image URLs for the product detail page. Each image has more than one URL, plus width and height. |
promotion_h5.comment_data.good_comment.tag_list[].text / num | A buyer comment tag and the number next to it, such as 回头客 with 206. |
promotion_h5.comment_data.good_comment.comment_list[].content | The text of a sample buyer comment. Each comment also has comment_id, a masked name and an avatar URL. |
itemId is a numeric string, such as 3734619545235751048. The same value comes back in id and in promotion_h5.basic_info_data.product_id.name, category names and comments are in Chinese.$0.035714 per successful call. Failed calls are not charged.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/ec/item-skus" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"itemId": "3734619545235751048"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
itemIdstring필수The unique ID of the item on Douyin E-commerce.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Douyin | $0.035714 / 호출 | JSON |
Douyin | $0.025714 / 호출 | JSON |
Douyin | $0.025714 / 호출 | JSON |
Douyin | $0.035714 / 호출 | JSON |
Douyin | $0.028571 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/ec/item-skus에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.035714, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: itemId (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Douyin Shop Item SKUs은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.