Get the phrases TikTok would suggest for a partial query. The response is a compact list of suggested words with their group IDs, which makes it cheap to call and easy to feed straight into an autocomplete box. It doubles as keyword research, because the suggestions show how real users phrase a topic on TikTok before you commit budget to a search term.
curl -X GET "https://api.primeapi.co/searched-suggest?keyword=cat" \
-H "X-PrimeAPI-Key: YOUR_API_KEY"
import requests
url = "https://api.primeapi.co/searched-suggest?keyword=cat"
headers = {"X-PrimeAPI-Key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
print(response.json())
print("Credits left:", response.headers.get("X-PrimeAPI-Balance"))
{
"data": [
{
"word": "cat video",
"group_id": "6565890822647088948"
},
{
"word": "funny cats",
"group_id": "7331764905621384285"
},
{
"word": "funny cat videos",
"group_id": "4500082299060709780"
},
{
"word": "Cute Pets",
"group_id": "8508675516378449830"
},
{
"word": "cute cats \u2661",
"group_id": "8946733227425319536"
},
{
"word": "cat sound",
"group_id": "5712805666633963231"
},
{
"word": "cat memes",
"group_id": "7651206132787265574"
},
{
"word": "cute cat",
"group_id": "2446865835936315736"
},
{
"word": "cat videos",
"group_id": "3880967187261938438"
},
{
"word": "funny cat",
"group_id": "4142006007841221389"
}
],
"status_code": 0,
"status_msg": "",
"log_id": "20250118001834E58D3C78F0358542A235"
}