urlstringobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
urlstringobligatoireTikTok 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.
Par défaut : "top"
Valeurs possibles : 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.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
TikTok Shop Store ProductsCette API TikTok Shop | À partir de $0.0012 par appel | JSON |
TikTok Shop | À partir de $0.0012 par appel | JSON |
TikTok Shop | À partir de $0.0055 par appel | JSON |
TikTok Shop | À partir de $0.0012 par appel | JSON |
TikTok Shop | À partir de $0.00095 par appel | JSON |
TikTok Shop | À partir de $0.00095 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/tiktok-shop/shop-products avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.0012 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : url (string). Facultatif : cursor (string), region (string), sortBy (l’un de top, new_releases) et requireFields (array). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. TikTok Shop Store Products fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API TikTok Shop séparément.