urlstringwajib
TikTok Shop store URL (e.g. https://www.tiktok.com/shop/store/...).
https://api.sandbase.ai/v1/api/tiktok-shop/shop-productsList every product of a TikTok Shop store by URL (title, price, sales, and rating per product plus shop-level stats) with cursor pagination.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
This API returns the products of a TikTok Shop store, with title, price, sold count, and rating for each product. It also returns shop-level stats such as the shop name, shop rating, and total units sold. It needs a TikTok Shop store URL.
price against originalPrice.sortBy to new_releases.curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/shop-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | TikTok Shop store URL (e.g. https://www.tiktok.com/shop/store/...). |
cursor | string | No | Opaque pagination cursor from a previous response's nextCursor. |
region | string | No | Two-letter country code of the store's market (e.g. 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 shopRating, and it is served only by a source that returns every one |
sortBy | string | No | Product ordering within the store. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"hasMore": true,
"nextCursor": "cur_up8aGtbgaWa2lUhcuYJUcQ",
"productCount": 53,
"products": [
{
"currency": "USD",
"discountPct": 21,
"image": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/2bc69aa…",
"originalPrice": 24.7,
"price": 19.47,
"productId": "1729527313880355335",
"rating": 4.5,
"reviewCount": 94624,
"sellerId": "7495794203056835079",
"soldCount": 1306640,
"title": "Goli Ashwagandha & Vitamin D Gummy - Mixed Berry, KSM-66, Vegan, Plant Based, No…",
"url": "https://www.tiktok.com/shop/pdp/1729527313880355335"
}
],
"shopName": "Goli Nutrition",
"shopRating": 4.6,
"soldCount": 5815669
},
"found": true
}
| Field | Meaning |
|---|---|
data.shopName | Display name of the store. |
data.shopRating | Average rating of the whole shop. |
data.soldCount | Total units sold by the shop, as a shop-level figure. |
data.productCount | Number of products the store lists. |
data.products[].title / data.products[].url | Product title and the link to its TikTok Shop product page. |
data.products[].price / data.products[].originalPrice | Current price and the price before discount, in the currency given in currency. |
data.products[].discountPct | Discount as a percentage off originalPrice. |
data.products[].rating / data.products[].reviewCount | Average rating of the product and the number of reviews behind it. |
data.products[].soldCount | Units sold for this product. |
data.products[].productId / data.products[].sellerId | Product ID and the ID of the store that sells it. |
sellerId in the products.data.hasMore is true, pass data.nextCursor as cursor in the next request to get the next page.sortBy accepts top (default) or new_releases.productId or url to TikTok Shop Product, or read its reviews with TikTok Shop Product Reviews.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/shop-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079",
"sortBy": "top"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
urlstringwajibTikTok Shop store URL (e.g. https://www.tiktok.com/shop/store/...).
cursorstringOpaque pagination cursor from a previous response's nextCursor.
regionstringTwo-letter country code of the store's market (e.g. US).
sortBystringProduct ordering within the store.
Default: "top"
Nilai yang mungkin: top, new_releases
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 `shopRating`, 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 store that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
TikTok Shop Store ProductsAPI ini TikTok Shop | Dari $0.0012 per panggilan | JSON |
TikTok Shop | Dari $0.0012 per panggilan | JSON |
TikTok Shop | Dari $0.0055 per panggilan | JSON |
TikTok Shop | Dari $0.0012 per panggilan | JSON |
TikTok Shop | Dari $0.00095 per panggilan | JSON |
TikTok Shop | Dari $0.00095 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/tiktok-shop/shop-products dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Mulai dari $0.0012 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: url (string). Opsional: cursor (string), region (string), sortBy (salah satu dari top, new_releases) dan requireFields (array). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. TikTok Shop Store Products berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API TikTok Shop secara terpisah.