handlestring必須
The handle of the TikTok user (e.g. mrtiktokreviews).
https://api.sandbase.ai/v1/api/tiktok-shop/user-showcaseList the TikTok Shop products a creator showcases (title, price, rating, and sales per product).
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
This API returns the TikTok Shop products a creator showcases on their profile. Each product has a title, price, discount, rating, review count, and units sold. It needs the creator's TikTok handle.
soldCount and rating across a creator's showcase to find their top performing items.curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/user-showcase" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle": "mrtiktokreviews"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | The handle of the TikTok user (e.g. mrtiktokreviews). |
cursor | string | No | Pagination token for retrieving subsequent product pages. |
region | string | No | Geographical region for proxy placement (defaults to US). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"nextCursor": "cur_eL5R6xsw_RY1c_-LVf6VnQ",
"products": [
{
"currency": "USD",
"discountPct": 50,
"imageUrl": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/8d1f118…",
"originalPrice": "30",
"price": "15",
"productId": "1729401442164511030",
"rating": 4.4,
"reviewCount": 36828,
"sellerId": "7495079418085345590",
"soldCount": 544937,
"title": "BASED Hair Texture Powder | Instant Volume & Texture | Lightweight, Matte Finish…",
"url": "https://www.tiktok.com/shop/pdp/1729401442164511030"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.products[].title | Product name as listed on TikTok Shop. |
data.products[].productId | ID of the product. Use it to look up the product in other TikTok Shop APIs. |
data.products[].price / data.products[].originalPrice | Current price and the price before the discount. Both are strings, such as "15" and "30". |
data.products[].discountPct | Discount as a percentage, such as 50 for a product that dropped from 30 to 15. |
data.products[].currency | Currency code of the prices, such as USD. |
data.products[].rating / data.products[].reviewCount | Average product rating and the number of reviews. |
data.products[].soldCount | Number of units sold for the product. |
data.products[].sellerId | ID of the seller that lists the product. |
data.products[].url / data.products[].imageUrl | Link to the product page on TikTok Shop and a product image URL. |
data.nextCursor | Token for the next page of products. |
@, for example mrtiktokreviews.data.nextCursor from the response as cursor in the next request, with the same handle.productId to TikTok Shop Product for product details, or to TikTok Shop Product Reviews for its reviews.sellerId to TikTok Shop Store Products to see the other products from that seller.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/user-showcase" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"handle": "mrtiktokreviews"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
handlestring必須The handle of the TikTok user (e.g. mrtiktokreviews).
cursorstringPagination token for retrieving subsequent product pages.
regionstringGeographical region for proxy placement (defaults to US).
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
TikTok Shop | 1回あたり $0.0012 から | JSON |
TikTok Shop | 1回あたり $0.0012 から | JSON |
TikTok Shop | 1回あたり $0.0055 から | JSON |
TikTok Shop | 1回あたり $0.0012 から | JSON |
TikTok Shop | 1回あたり $0.00095 から | JSON |
TikTok Shop | 1回あたり $0.00095 から | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok-shop/user-showcase に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.0012 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: handle (string)。 任意: cursor (string) と region (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Shop User Showcase は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok Shop の API アクセスを別途申請する必要はありません。