shopIdstringจำเป็น
The unique ID of the shop on Douyin E-commerce.
https://api.sandbase.ai/v1/api/douyin/ec/shop-itemsList the products of a Douyin shop by shop ID, page by page, with price and sales for each item.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns one page of products listed by a Douyin shop. Each item has a title, price, monthly sales, cover image and ID. The only required input is the shop ID in shopId.
month_sales across its products.product_id values to feed into item detail, SKU or comment lookups.curl -X POST "https://api.sandbase.ai/v1/api/douyin/ec/shop-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"shopId": "42853938"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
shopId | string | Yes | The unique ID of the shop on Douyin E-commerce. |
page | string | No | Page number for pagination. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"page": 1,
"products": [
{
"cover": "https://lf26-cm.ecombdstatic.com/obj/ecom-shop-material/jpeg_m_64c6f372c524bd699…",
"month_sales": 705482,
"price": 39.9,
"product_id": "3680294078299373976",
"product_tags": [
"运费险"
],
"promotion_id": "3680296553450441933",
"title": "娇婵美白补水修颜隔离防晒乳SPF50+PA++++防紫外线补水"
}
],
"shop_id": "42853938",
"total": 81,
"total_pages": 9
}
| Field | Meaning |
|---|---|
products[].product_id | ID of the product. Use it to look up the item in other Douyin shop APIs. |
products[].title | Product title as shown in the shop, in Chinese. |
products[].price | Listed price of the product as a number, for example 39.9. |
products[].month_sales | Sales count for the product, named as a monthly figure. |
products[].cover | URL of the product cover image. |
products[].product_tags | List of tags shown on the product, such as shipping insurance and return policy labels. |
products[].promotion_id | ID of the promotion linked to the product. |
page / total_pages | Current page number and the total number of pages for this shop. |
total | Total number of products found for the shop. |
shop_id | ID of the shop that was queried. |
page. The first request without page returns page 1. Stop when page reaches total_pages.product_id is a long numeric string. Keep it as a string to avoid rounding.product_id for full item data, or Douyin Shop Item SKUs for its variants.$0.028571 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/douyin/ec/shop-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"shopId": "42853938"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
shopIdstringจำเป็นThe unique ID of the shop on Douyin E-commerce.
pagestringPage number for pagination.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Douyin Shop ItemsAPI นี้ Douyin | $0.028571 ต่อการเรียก | JSON |
Douyin | $0.025714 ต่อการเรียก | JSON |
Douyin | $0.025714 ต่อการเรียก | JSON |
Douyin | $0.035714 ต่อการเรียก | JSON |
Douyin | $0.035714 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/ec/shop-items โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.028571 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: shopId (string). ตัวเลือก: page (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin Shop Items ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก