urlstring必填
TikTok Shop product detail page URL (e.g. https://www.tiktok.com/shop/pdp/.../1729587769570529799).
https://api.sandbase.ai/v1/api/tiktok-shop/productFetch TikTok Shop product details (title, price, sales, seller, and ratings) from a product URL.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns details for one TikTok Shop product: title, brand, category, current and original price, rating, review count, units sold, seller, images, and specifications. It needs the product detail page url, and an optional region country code for region-specific products.
price and originalPrice of a competitor's product to watch discounts.soldCount, rating, and reviewCount across products to judge which ones sell well.sellerId, sellerName, and sellerLocation.curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.tiktok.com/shop/pdp/goli-ashwagandha-gummies-with-vitamin-d-ksm-66-vegan-non-gmo/1729587769570529799"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | TikTok Shop product detail page URL (e.g. https://www.tiktok.com/shop/pdp/.../1729587769570529799). |
region | string | No | Two-letter country code for the proxy location used to access region-specific products (e.g. US, GB, FR). Defaults to US. |
requireFields | array | No | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example sellerLocation, and it is served only by a source that returns every |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"brand": "Goli",
"category": "Health",
"currency": "USD",
"images": [
"https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/b0d9acd…"
],
"originalPrice": "$74.10",
"price": "$58.47",
"productId": "1729587769570529799",
"rating": 4.7,
"reviewCount": 71752,
"sellerId": "7495794203056835079",
"sellerLocation": "United States of America",
"sellerName": "Goli Nutrition"
},
"found": true
}
| Field | Meaning |
|---|---|
data.title | Product listing title as shown on TikTok Shop. |
data.price / data.originalPrice | Current price and the original price, as formatted strings with a currency symbol (for example $58.47). Compare them to see the discount. |
data.currency | Currency code for the prices, for example USD. |
data.soldCount | Number of units sold for the product. |
data.rating / data.reviewCount | Average rating and the number of reviews. |
data.sellerId / data.sellerName / data.sellerLocation | Identifier, display name, and country of the seller. |
data.brand / data.category | Brand name and category of the product. |
data.specifications[].name / data.specifications[].value | Product attributes as name and value pairs, such as Flavor and Container type. |
data.images[] | URLs of the product images. |
data.productId / data.url | Product ID and the short canonical product page URL. |
found | true when the product was found. |
url from a TikTok Shop product page. The product ID is the number at the end of the path, for example 1729587769570529799.region with a two-letter code such as GB or FR to access region-specific products. It defaults to US.requireFields to demand fields such as sellerLocation or specifications. This can change which source serves the call, and so the price.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/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.tiktok.com/shop/pdp/goli-ashwagandha-gummies-with-vitamin-d-ksm-66-vegan-non-gmo/1729587769570529799"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
urlstring必填TikTok Shop product detail page URL (e.g. https://www.tiktok.com/shop/pdp/.../1729587769570529799).
regionstringTwo-letter country code for the proxy location used to access region-specific products (e.g. US, GB, FR). Defaults to US.
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `sellerLocation`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a product that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
TikTok Shop Product此 API TikTok Shop | 每次呼叫 $0.0012 起 | JSON |
TikTok Shop | 每次呼叫 $0.0012 起 | JSON |
TikTok Shop | 每次呼叫 $0.0055 起 | JSON |
TikTok Shop | 每次呼叫 $0.00095 起 | JSON |
TikTok Shop | 每次呼叫 $0.00095 起 | JSON |
TikTok Shop | 每次呼叫 $0.00095 起 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/tiktok-shop/product。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次起 $0.0012,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:url (string)。 選填:region (string) 和 requireFields (array)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。TikTok Shop Product 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 TikTok Shop API 存取權。