Search terms TikTok suggests for a seed keyword, with language and relative weight: what users type around a topic.
2 credits/ call
Never more than 3 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/tiktok.search_suggestions" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"dogs"}'{
"output": {
"found": true,
"data": {
"suggestions": [
{
"score": 0.011535803,
"position": 0,
"text": "dogs cute",
"language": "en"
}
]
}
},
"credits": 2
}Input and output
2 fields
dogs.4 fields
Good to know
A seed with no suggestions returns found: false. A miss is an answer, not an error.
The same key and credits work for every API.