querystringzorunlu
Search keyword for TikTok Shop products (e.g. wireless earbuds).
https://api.sandbase.ai/v1/api/tiktok-shop/searchSearch TikTok Shop products by keyword across 15 countries: price, sales, rating, and seller info per product, in one normalized response.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Returns a list of TikTok Shop products that match a search keyword. Each product has a price, a sold count, the shop name, and a product link. You send a query and can pick a country market.
soldCount.shopName and sellerId.query with different country values to check which markets carry a product.curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit": 3, "query": "phone case"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword for TikTok Shop products (e.g. wireless earbuds). |
country | string | No | Country code of the TikTok Shop market to search (e.g. US). |
limit | integer | No | Maximum products to return, honoured on US searches up to 30. Other countries and larger values return every product TikTok Shop gives for the query, typically about 30 and occasionally more than 50. The price per call i |
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 currency, and it is served only by a source that returns every one o |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"currency": "USD",
"image": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/b369a4c…",
"price": 1.89,
"productId": "1732493173845955041",
"sellerId": "7494773196461475297",
"shopName": "L-PureShell",
"soldCount": 29,
"title": "Magnetic Fit Slim Clear-1 Protector Cover for iPhone 17,16 Pro Max,16,15,14,13,1…",
"url": "https://www.tiktok.com/shop/pdp/1732493173845955041"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].title | Product title as listed in the shop. Long titles may be cut. |
data.items[].price / data.items[].currency | Listed price of the product and the currency code for that price, such as USD. |
data.items[].soldCount | Number of units sold for the product. |
data.items[].rating | Product rating, for example 4.7. Some products have no rating in the response. |
data.items[].productId | ID of the product on TikTok Shop. Use it to look up more product detail. |
data.items[].shopName / data.items[].sellerId | Name and ID of the shop that sells the product. |
data.items[].url | Link to the product page on TikTok Shop. |
data.items[].image | Link to the product image. |
found | true when the search returned products. |
productId to TikTok Shop Product for full product detail, or to TikTok Shop Product Reviews for reviews.sellerId with TikTok Shop Store Products to list more products from the same shop.limit to cap the number of products. It is honoured only on US searches up to 30. Other countries return every product found.rating is missing on some products, so handle items without it. To require currency or reviewCount in the output, list them in requireFields.Billed at the actual cost of each call, about $0.00095 for the request above. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 3,
"query": "phone case",
"country": "US"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
querystringzorunluSearch keyword for TikTok Shop products (e.g. wireless earbuds).
limitintegerMaximum products to return, honoured on US searches up to 30. Other countries and larger values return every product TikTok Shop gives for the query, typically about 30 and occasionally more than 50. The price per call is the same either way.
countrystringCountry code of the TikTok Shop market to search (e.g. US).
Varsayılan: "US"
Olası değerler: US, VN, TH, PH, MY, ID, GB, SG, ES, MX, DE, IT, FR, BR, JP
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 `currency`, 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.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
TikTok Shop SearchBu API TikTok Shop | Kullanım başına $0.00095'den itibaren | JSON |
TikTok Shop | Kullanım başına $0.0012'den itibaren | JSON |
TikTok Shop | Kullanım başına $0.0055'den itibaren | JSON |
TikTok Shop | Kullanım başına $0.0012'den itibaren | JSON |
TikTok Shop | Kullanım başına $0.00095'den itibaren | JSON |
TikTok Shop | Kullanım başına $0.00095'den itibaren | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/tiktok-shop/search adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.00095'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: query (string). İsteğe bağlı: limit (integer), country (US, VN, TH, PH, MY, ID, GB, SG, ES, MX, DE, IT, FR, BR, JP arasından biri) ve requireFields (array). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. TikTok Shop Search, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. TikTok Shop API erişimi için ayrıca başvuru yapmanız gerekmez.