TikTok Search Suggestions API
TikTok's typeahead completions for a partial query: what the platform thinks people are looking for. Useful for keyword research. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.
Try it
Prefilled with the request that produced the example below. No key yet? Get a free key.
Request
GET
/v1/tiktok/search/suggestions| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Partial search term |
Also accepts cache_max_age (a hit costs 0 credits) and include_raw (returns the untouched upstream payload under raw).
curl
curl "$API/v1/tiktok/search/suggestions?query=nike&cache_max_age=7d" \
-H "x-api-key: $KEY"JavaScript
const query = new URLSearchParams({
query: 'nike',
cache_max_age: '7d',
});
const response = await fetch(`${API}/v1/tiktok/search/suggestions?${query}`, {
headers: { 'x-api-key': KEY },
});
const body = await response.json();
if (!body.success) throw new Error(body.error.code);
// 1 credit, 0 on a cache hit
console.log(body.data, body.meta.creditsCharged);Python
import os, httpx
r = httpx.get(
f"{os.environ['API']}/v1/tiktok/search/suggestions",
params={
"query": "nike",
"cache_max_age": "7d",
},
headers={"x-api-key": os.environ["KEY"]},
timeout=30,
)
body = r.json()
if not body["success"]:
raise RuntimeError(body["error"]["code"])
print(body["data"], body["meta"]["creditsCharged"])Example response
Captured on , with raw removed and lists cut to two items. A live call returns current data.
response
{
"success": true,
"data": {
"items": [
{
"text": "nike after dark los angeles 2026 hotel",
"type": null
},
{
"text": "nike air force 1",
"type": null
}
]
},
"meta": {
"platform": "tiktok",
"endpoint": "tiktok.searchSuggestions",
"creditsCharged": 1,
"cached": false,
"cacheAgeSeconds": null,
"durationMs": 838,
"requestId": "req_zjdrl8ow83nqf57efj4x"
}
}Returns
Returns a list of object in data.items.
Fields
| Field | Type | Present | Description |
|---|---|---|---|
| text | string | always | |
| type | string | null | always | TikTok's own grouping, when it labels one. |
Cost and behaviour
| Credits | 1 per live request, 0 on a cache hit |
| Cacheable | yes: cache_max_age accepts a cached copy |
| Batchable | yes: usable as a target in POST /v1/jobs/batch |
| Subscribable | no |
Other TikTok endpoints
- /v1/tiktok/ad-library/ad One TikTok ad
- /v1/tiktok/ad-library/search Search the TikTok Ads Library
- /v1/tiktok/collection/videos Collection videos
- /v1/tiktok/comment-replies Replies to a comment
- /v1/tiktok/comments Comments on a video
- /v1/tiktok/creators/popular Popular creators
- /v1/tiktok/followers Accounts following a creator
- /v1/tiktok/following Accounts a creator follows