keywordstringจำเป็น
Search keyword.
https://api.sandbase.ai/v1/api/douyin/ec/search-itemsSearch products sold in Douyin shops by keyword, with price, sales and shop info; pages after the first use searchId.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
This API searches products sold in Douyin shops by keyword. It returns a list of matching products with title, category, price, monthly sales, commission and shop info. The only required input is keyword.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/ec/search-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "防晒霜"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword. |
page | string | No | Page number for pagination. |
searchId | string | No | Search ID; use the search_id value returned by the last response for subsequent pages. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extra": {
"channel_id": "200",
"material_type": "promotion_id",
"recall_type": "Search",
"search_id": "5cc89a0f6d6f25e2a230f777abb7c0e1738a5293bf29fad48e179265ec906629de617091322357ff…",
"session_id": "2240ef2d…"
},
"has_more": true,
"log_id": "2026110315320086EF1597058215346880",
"promotions": [
{
"base_info": {
"category": {
"first_category": {
"category_id": 1000003462,
"category_name": "个人护理"
},
"fourth_category": {
"category_id": 0,
"category_name": ""
},
"leaf_layer": 3,
"second_category": {
"category_id": 1000003463,
"category_name": "面部洗护"
},
"third_category": {
"category_id": 1000003485,
"category_name": "防晒霜"
}
},
"detail_url": "https://haohuo.jinritemai.com/ecommerce/trade/detail/index.html?id=3851366241944…",
"main_img": {
"uri": "ecom-shop-material/jpeg_m_f2116c4fc8416ddd62fd6a127d888a82_sx_863881_www1024-102…",
"url_list": [
"https://p9-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_f2116c4fc8416ddd62fd6…"
]
},
"price": null,
"title": "【AK专属】【美白+防晒+隔离+保湿】高倍防晒乳持妆防水清爽四季*50g"
},
"product_id": "3851366241944076623",
"promotion_id": "3851368256174686561"
}
],
"promotions_pc": null,
"shops": null,
"summary_authors": [],
"summary_promotions": [
{
"base_model": {
"extend_info": {
"data_report": {
"channel_id": "200",
"commodity_id": "3851368256174686561",
"first_tags": "big_promotion_11_tag",
"log_pb": "2026110315320086EF1597058215346880",
"material_type": "promotion_id",
"product_id": "3851366241944076623",
"query": "防晒霜",
"recall_type": "Search"
},
"is_in_cart": false
},
"marketing_info": {
"price_desc": {
"price": {
"decimal": "9",
"integer": "34",
"origin": 3490,
"suffix": ""
},
"price_text": "到手价"
}
},
"product_info": {
"category": {
"first_category": {
"category_id": 1000003462,
"category_name": "个人护理"
},
"fourth_category": {
"category_id": 0,
"category_name": ""
},
"leaf_layer": 3,
"second_category": {
"category_id": 1000003463,
"category_name": "面部洗护"
},
"third_category": {
"category_id": 1000003485,
"category_name": "防晒霜"
}
},
"detail_url": "https://haohuo.jinritemai.com/ecommerce/trade/detail/index.html?id=3851366241944…",
"good_ratio": {
"decimal": "3",
"integer": "83",
"origin": 83.33333333333333,
"suffix": "%"
},
"main_img": {
"uri": "ecom-shop-material/jpeg_m_f2116c4fc8416ddd62fd6a127d888a82_sx_863881_www1024-102…",
"url_list": [
"https://p9-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_f2116c4fc8416ddd62fd6…"
]
},
"month_sale": {
"origin": 1507
},
"month_sale_text": "月销",
"name": "【AK专属】【美白+防晒+隔离+保湿】高倍防晒乳持妆防水清爽四季*50g",
"product_status": {
"check_status": 3,
"status": 0
}
},
"promotion_info": {
"cooper_author_num": {
"decimal": "",
"integer": "",
"origin": 79,
"suffix": ""
},
"cos_info": {
"cos": {
"cos_fee": {
"decimal": "75",
"integer": "1",
"origin": 175,
"suffix": ""
},
"cos_ratio": {
"decimal": "",
"integer": "5",
"origin": 5,
"suffix": "%"
}
},
"cos_type": 3,
"tiered_cos_info": {}
},
"promotion_status": 2,
"ticket_tip_info": {
"type": 1
}
},
"shop_info": {
"shop_id": 298439640,
"shop_logo": {
"url_list": [
"https://p6-ecom-qualification-sign.ecombdimg.com/tos-cn-i-6vegkygxbk/3663ffe5396…"
]
},
"shop_name": "娇芝妍美妆护肤优选",
"shop_score_info": {
"has_data": true,
"shop_score": {
"percentage": 0,
"rating": "",
"rise_than_7d_ago": 0,
"score": 84
}
}
},
"tag_info": {
"main_tags": [
{
"pic": "https://lf3-static.bytednsdoc.com/obj/eden-cn/lm-ljuhpssh/ljhwZthlaukjlkulzlp/d2…",
"tag_type": 1,
"text": {
"text": ""
},
"type": "big_promotion_11_tag"
}
],
"second_tags": [
{
"border_color": "rgba(255, 51, 68, 0.25)",
"tag_type": 2,
"text": {
"color": "#FF3B52",
"text": "消费券"
},
"text_right": {
"color": "#FF3B52"
},
"type": "big_promote_coupon"
}
],
"tag_codes": [
"big_promotion_11_tag"
]
}
},
"custom_model": {
"selection_square_model": {
"card_resource_info": {
"CardPictureTag": {
"tag_list": [
{
"style_config": "{\"pic\":\"https://lf3-static.bytednsdoc.com/obj/eden-cn/lm-ljuhpssh/ljhwZthlaukjlk…",
"style_templ": 1
}
]
},
"CardTextTag": {
"tag_list": [
{
"style_config": "{\"text\":{\"text\":\"消费券\",\"color\":\"#FF3B52\"},\"type\":\"big_promote_coupon\",\"tag_type\":…",
"style_templ": 1
}
]
}
},
"hit_ranking_list": false,
"is_adv_approve": false,
"recommend_reason": {
"recommend_reason": {
"extra": {
"ab_tag": "",
"alli_cate_id": "0",
"cur_date_type": "本周榜单",
"cur_genre_type": "直播带货",
"cur_rank": "4",
"cur_rank_type": "趋势榜",
"date_type": "7d",
"ftr_score": "0.0"
},
"icon": "https://lf26-cm.ecombdstatic.com/obj/cmp-ecom-alliance/iconboard.png",
"rec_type": 2,
"text": "防晒霜直播带货趋势榜·第4名"
}
},
"sell_point": {}
}
},
"product_id": "3851366241944076623",
"promotion_id": "3851368256174686561"
}
],
"summary_shops": [],
"total": 500
}
| Field | Meaning |
|---|---|
promotions[].product_id / promotions[].promotion_id | IDs of the product and of its promotion listing. Both are long numeric strings. |
promotions[].base_info.title | Product title as shown in the shop. |
promotions[].base_info.detail_url | Link to the product detail page. |
summary_promotions[].base_model.marketing_info.price_desc.price.origin | Price value as an integer, for example 3490 next to the display value 34.9. The price_text field next to it reads 到手价, which is the final price after discounts. |
summary_promotions[].base_model.product_info.month_sale.origin | Monthly sales count for the product. month_sale_text holds the label 月销. |
summary_promotions[].base_model.product_info.good_ratio.origin | Good review ratio as a percentage, for example 83.33. |
summary_promotions[].base_model.product_info.category.third_category.category_name | Leaf category name of the product. The same block also has first_category and second_category. |
summary_promotions[].base_model.shop_info.shop_id / summary_promotions[].base_model.shop_info.shop_name | ID and name of the shop selling the product. |
summary_promotions[].base_model.shop_info.shop_score_info.shop_score.score | Score of the shop, for example 84. |
summary_promotions[].base_model.promotion_info.cos_info.cos.cos_ratio.origin | Commission ratio for the promotion, shown with suffix %. cos_fee gives the commission amount. |
promotions[].base_info.price field is null in this response. Read the price from summary_promotions[].base_model.marketing_info.price_desc.extra.search_id value from the last response as searchId, and set page. The has_more field shows whether more results exist.product_id from the results with Douyin Shop Item Details or Douyin Shop Item SKUs to get more data on one product.shop_id with Douyin Shop Items to list other products from the same shop.$0.035714 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/douyin/ec/search-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "防晒霜"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordstringจำเป็นSearch keyword.
pagestringPage number for pagination.
searchIdstringSearch ID; use the search_id value returned by the last response for subsequent pages.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Douyin Shop Product SearchAPI นี้ Douyin | $0.035714 ต่อการเรียก | JSON |
Douyin | $0.025714 ต่อการเรียก | JSON |
Douyin | $0.025714 ต่อการเรียก | JSON |
Douyin | $0.035714 ต่อการเรียก | JSON |
Douyin | $0.028571 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/ec/search-items โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.035714 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: keyword (string). ตัวเลือก: page (string) และ searchId (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin Shop Product Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก