# TikTok Autocomplete — Zapi reference > TikTok search suggestions — video-culture vocabulary the search engines do not surface. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/autocomplete/tiktok - Endpoint catalog: https://zpi.web.id/category/autocomplete - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## TikTok Autocomplete **Category:** autocomplete · **Slug:** `tiktok` **Detail page:** https://zpi.web.id/api/autocomplete/tiktok TikTok search suggestions — video-culture vocabulary the search engines do not surface. **Tags:** tiktok, social, trends, suggest ### Autocomplete Completions for a seed query. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/autocomplete:tiktok/autocomplete` - **Cache TTL:** 600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `q` | string | query | yes | Seed text to complete | | `count` | number | query | no | Cap the list. Default: everything the upstream returns | **cURL:** ```bash curl "https://api.zpi.web.id/v1/autocomplete:tiktok/autocomplete?q=kucing&count=10" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/autocomplete:tiktok/autocomplete?q=kucing&count=10", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/autocomplete:tiktok/autocomplete?q=kucing&count=10", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "count": 8, "items": [ { "text": "kucing", "groupId": "3240705525907998029" }, { "text": "KUCING LUCU", "groupId": "2268664385593907840" }, { "text": "kucing lucu kucing lucu terbaru 2026 homestay", "groupId": "3046108270621440140" }, { "text": "kucing meong meong", "groupId": "565904191545475047" }, { "text": "kucing oren", "groupId": "1290971289867481180" }, { "text": "KUCING MEONG MEONG CUPLIKAN", "groupId": "948772630415099724" }, { "text": "Kucing Meong Meong Lucu", "groupId": "3169249122804362108" }, { "text": "kucing joget", "groupId": "255711722976585418" } ], "query": "kucing", "provider": "tiktok" } ``` --- ### Expand Expand one seed into the many real queries people type — the seed with every letter, question word and preposition appended, deduplicated. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/autocomplete:tiktok/expand` - **Cache TTL:** 1800s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `q` | string | query | yes | Seed to expand | | `modifiers` | enum(all|alphabet|questions|prepositions|digits) | query | no | Which modifier sets to append. Default all | | `lang` | enum(id|en) | query | no | Language for the question and preposition sets. Default id | | `count` | number | query | no | Cap the returned list. Default: every unique result found | **cURL:** ```bash curl "https://api.zpi.web.id/v1/autocomplete:tiktok/expand?q=kucing&modifiers=all&lang=id&count=200" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/autocomplete:tiktok/expand?q=kucing&modifiers=all&lang=id&count=200", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/autocomplete:tiktok/expand?q=kucing&modifiers=all&lang=id&count=200", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "seed": "kucing", "count": 331, "items": [ { "via": "alphabet", "text": "Kucing bengal" }, { "via": "alphabet", "text": "Kucing besar" }, { "via": "alphabet", "text": "kucing bulu" }, { "via": "alphabet", "text": "Kucing Bernyanyi" }, { "via": "alphabet", "text": "kucing bau" }, { "via": "alphabet", "text": "kucing botak" }, { "via": "alphabet", "text": "kucing bisa ngomong" }, { "via": "alphabet", "text": "kucing british shorthair" } ], "locale": "id", "provider": "tiktok", "modifiers": "all", "truncated": false, "variantsTried": 44, "variantsFailed": 0 } ``` --- _Generated: 2026-08-02T14:25:09.275Z_