Skip to content

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
ParameterTypeRequiredDescription
querystringyesPartial 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
FieldTypePresentDescription
textstringalways
typestring | nullalwaysTikTok's own grouping, when it labels one.

Cost and behaviour

Credits1 per live request, 0 on a cache hit
Cacheableyes: cache_max_age accepts a cached copy
Batchableyes: usable as a target in POST /v1/jobs/batch
Subscribableno

Other TikTok endpoints