querystringआवश्यक
Seed keyword to expand (e.g. ashwagandha gummies).
https://api.sandbase.ai/v1/api/tiktok-shop/search-suggestionsGet TikTok Shop search autocomplete terms for a keyword: the long-tail queries shoppers actually type, for keyword and demand research.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
This API returns TikTok Shop search autocomplete suggestions for a seed keyword. It needs a query and can also take a country code and a language tag.
ashwagandha gummies into the long-tail searches shoppers type.country.curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/search-suggestions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "ashwagandha gummies", "country": "US"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Seed keyword to expand (e.g. ashwagandha gummies). |
country | string | No | Two-letter country code of the TikTok Shop market (e.g. US). |
language | string | No | Language tag for the suggestions (e.g. en-US). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"suggestions": [
"ashwagandha gummies"
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.suggestions[] | Autocomplete terms for the seed keyword, as plain strings. Each string is a search phrase that can include the seed keyword plus extra words, such as ashwagandha gummies for men. |
data.suggestions[0] | In this response, the first suggestion repeats the seed keyword exactly. |
found | Boolean flag. It is true when the lookup returned data. |
outputs[0].data. A lookup that finds nothing still succeeds and returns found: false.country defaults to US and language defaults to en-US.Billed at the actual cost of each call, about $0.00095 for the request above. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/search-suggestions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "ashwagandha gummies",
"country": "US",
"language": "en-US"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
querystringआवश्यकSeed keyword to expand (e.g. ashwagandha gummies).
countrystringTwo-letter country code of the TikTok Shop market (e.g. US).
डिफ़ॉल्ट: "US"
languagestringLanguage tag for the suggestions (e.g. en-US).
डिफ़ॉल्ट: "en-US"
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
TikTok Shop | $0.00095 प्रति कॉल से | JSON |
TikTok Shop | $0.0012 प्रति कॉल से | JSON |
TikTok Shop | $0.0055 प्रति कॉल से | JSON |
TikTok Shop | $0.0012 प्रति कॉल से | JSON |
TikTok Shop | $0.00095 प्रति कॉल से | JSON |
TikTok Shop | $0.00095 प्रति कॉल से | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/tiktok-shop/search-suggestions पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.00095 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: query (string)। वैकल्पिक: country (string) और language (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। TikTok Shop Search Suggestions SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok Shop API access के लिए आवेदन करने की आवश्यकता नहीं है।