urlstringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
urlstringobrigatórioTikTok 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.
Padrão: "top"
Valores possíveis: 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.
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
TikTok Shop Store ProductsEsta API TikTok Shop | A partir de $0.0012 por chamada | JSON |
TikTok Shop | A partir de $0.0012 por chamada | JSON |
TikTok Shop | A partir de $0.0055 por chamada | JSON |
TikTok Shop | A partir de $0.0012 por chamada | JSON |
TikTok Shop | A partir de $0.00095 por chamada | JSON |
TikTok Shop | A partir de $0.00095 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/tiktok-shop/shop-products com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
A partir de $0.0012 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: url (string). Opcionais: cursor (string), region (string), sortBy (um de top, new_releases) e requireFields (array). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. TikTok Shop Store Products funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do TikTok Shop separadamente.