shopIdstringbắt buộc
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.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
shopIdstringbắt buộcThe unique ID of the shop on Douyin E-commerce.
pagestringPage number for pagination.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin Shop ItemsAPI này Douyin | $0.028571 mỗi lần gọi | JSON |
Douyin | $0.025714 mỗi lần gọi | JSON |
Douyin | $0.025714 mỗi lần gọi | JSON |
Douyin | $0.035714 mỗi lần gọi | JSON |
Douyin | $0.035714 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/ec/shop-items với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.028571 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: shopId (string). Tùy chọn: page (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Douyin Shop Items chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.