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.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォーム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キーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
shopIdstring必須The unique ID of the shop on Douyin E-commerce.
pagestringPage number for pagination.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin Shop Itemsこの API Douyin | $0.028571 / 回 | JSON |
Douyin | $0.025714 / 回 | JSON |
Douyin | $0.025714 / 回 | JSON |
Douyin | $0.035714 / 回 | JSON |
Douyin | $0.035714 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/ec/shop-items に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.028571、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: shopId (string)。 任意: page (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Shop Items は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。